joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14017f628
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400929f0
or dword [rbx + 0x1384], 0xffffffff
lea r8, [rbx + 8]
mov dword [rbx + 4], eax
mov ecx, 1
mov r9d, 0x26f
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
inc ecx
mov dword [r8], eax
lea r8, [r8 + 4]
sub r9, 1
jne 0x14017f64f
movabs rax, 0x3ff0000000000000
mov dword [rbx], 0x270
and qword [rbx + 0x1388], r9
mov qword [rbx + 0x1390], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140206c90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, send
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.1401f1fe0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140206ce5
mov eax, 7
jmp 0x140206dc0
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140206cfc
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call fcn.1401e6080
test eax, eax
je 0x140206d0c
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
jmp 0x140206d74
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x140206e80]
xor edx, edx
xor ecx, ecx
call fcn.1400c86f4
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x140206d74
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x140206db1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
call qword [str.PS_]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1402502d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14031fcd0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, r9d
mov ebp, r8d
mov r15, rdx
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
mov edi, esi
or eax, 0xffffffff
test r15, r15
jne 0x14025031f
cmp esi, eax
je 0x140250478
mov r14d, dword [rsp + 0xe0]
mov eax, dword [rsp + 0xe8]
mov r9d, r14d
mov r8d, edi
mov dword [rsp + 0x20], eax
mov rdx, r15
mov ecx, ebp
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
mov ebx, eax
xor edi, edi
or eax, 0xffffffff
cmp esi, eax
jne 0x140250352
mov edi, eax
jmp 0x14025036a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
cmp eax, esi
jbe 0x140250366
mov ebx, 0x102
jmp 0x14025036a
mov edi, esi
sub edi, eax
cmp ebx, ebp
jne 0x140250442
mov dword [rsp + 0x28], r14d
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rdx, r13
call fcn.14024f434
test eax, eax
je 0x140250327
cmp dword [rsp + 0x38], 0x12
je 0x14025042b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [rsp + 0x38], 0x20
jne 0x1402503d7
mov eax, 0xfffe
cmp word [rsp + 0x48], ax
je 0x1402503d7
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
jmp 0x1402503e2
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
test ebp, ebp
je 0x140250405
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov ebx, eax
cmp eax, 0x102
jne 0x14025043a
xor edi, edi
or eax, 0xffffffff
cmp esi, eax
jne 0x140250415
mov edi, eax
jmp 0x140250372
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
cmp eax, esi
ja 0x140250435
mov edi, esi
sub edi, eax
jmp 0x140250372
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov ebx, 0x102
cmp ebx, ebp
je 0x140250327
cmp ebx, 0xc0
je 0x140250327
mov edi, 0x102
cmp ebx, edi
jne 0x140250476
test ebp, ebp
je 0x140250476
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, edi
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b1670
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140251db4
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14031fcd0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov dword [rsp + 0x20], SafeArrayUnaccessData
lea rcx, [rsp + 0x28]
xor ebx, ebx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140251dfd
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140017810
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b1670
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140252064
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14031fcd0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
xor ebx, ebx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1402520b3
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140017810
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b1670
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1402559d8
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14031fcd0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x18], 8
movzx ebp, dx
mov rdx, rcx
mov rdi, r8
mov rbx, rcx
jb 0x140255a09
mov rdx, qword [rcx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
xor edx, edx
mov rsi, rax
test rax, rax
je 0x140255a76
cmp qword [rbx + 0x18], 8
jb 0x140255a25
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x50], rbx
jb 0x140255a34
mov rdi, qword [rdi]
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 2
mov dword [rsp + 0x30], edx
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
movzx edx, bp
mov qword [rsp + 0x58], rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400b1670
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x6d87d750
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d89e5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d87d8d8
mov rax, qword [0x6d89e5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d87d79c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d87d825
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d87d780
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d87d90d
mov rax, qword [0x6d89e5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d89e5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d87d8f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d87d81e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d87d880
add dword [0x6d89e5e4], 1
cmp edi, 8
jae 0x6d87d853
test dil, 4
jne 0x6d87d8c4
test edi, edi
je 0x6d87d848
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d87d8df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d87d848
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d87d86c
jmp 0x6d87d848
add rsi, qword [0x6d89e5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d87d81e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d87d848
xor esi, esi
jmp 0x6d87d7a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d87d848
mov rax, qword [0x6d89e5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d87e060
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d89e8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d89e8a0]
test rbx, rbx
je 0x6d87e0b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d87e0ab
test rsi, rsi
je 0x6d87e0ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d87e090
lea rcx, [0x6d89e8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d87e2f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d87e300
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d87e310
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d87e351
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d87e348
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d87e353
add rax, 0x28
cmp rax, r9
jne 0x6d87e334
xor eax, eax
ret

Function at 0x6d87e3f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d89b1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d87e45d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d87e45d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d87e45d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d87e454
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d87e45f
add rax, 0x28
cmp rax, r9
jne 0x6d87e440
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d87e560
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d89b1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d87e580
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d87e578
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d87e5dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d87e5d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d87e5e4
add rax, 0x28
cmp rax, r9
jne 0x6d87e5c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d87e600
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d89b1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d87e66e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d87e66e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d87e66e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d87e66e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d87e665
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d87e675
add rcx, 0x28
cmp rcx, rax
jne 0x6d87e650
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d87e688
jmp 0x6d87e66e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d87e696
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d87e66e
test r9d, r9d
jg 0x6d87e680
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d87ea00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400411fe
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x14008c5e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x1400f7040]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x14010a643]
call fcn.1400432e7
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, VariantTimeToDosDateTime
call fcn.1400429b4
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x14008c6ab
cmp qword [rbp + 8], 0
je 0x14008c673
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, VariantTimeToDosDateTime
call fcn.1400429b4
mov dword [rbp + 0x44], eax
jmp 0x14008c651
cmp dword [rbp + 0x44], 0
jge 0x14008c6d1
cmp qword [rbp + 8], 0
je 0x14008c6ca
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14008c800
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14008c6e7
xor eax, eax
jmp 0x14008c800
mov dword [rbp + 0x84], 0
jmp 0x14008c701
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x14008c7ec
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140041f78
mov rcx, qword [rbp + 0x210]
call fcn.1400412e4
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400412e4
mov rcx, qword [rbp + 0x1d8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x14008c7db
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.14004163b
mov rax, qword [rbp + 0x1c8]
jmp 0x14008c800
lea rcx, [rbp + 0xa8]
call fcn.14004163b
jmp 0x14008c6f3
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140042ccf
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.14004208b
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14004130c
Capabilities:
Write file on windows

Disassembly:
jmp 0x14007fde0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14010a127]
call fcn.1400432e7
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14007fe37
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14007ff43
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14007fedc
cmp qword [rbp + 0x28], 0
jle 0x14007fedc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14007fe7c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14004308a
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14007ff32
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14007ff32
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400416c7
Capabilities:
Create thread

Disassembly:
jmp 0x140096280
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1400f7040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14010a774]
call fcn.1400432e7
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140041a14
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.14004210d
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.140041749
nop
lea rcx, [rbp + 0x108]
call fcn.140041e15
lea rax, [0x1400426d0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.14004277a
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140096380
lea rcx, [rbp + 8]
call fcn.140041eab
jmp 0x140096399
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400417a3
nop
lea rcx, [rbp + 8]
call fcn.140041e15
lea rcx, [rbp - 0x30]
lea rdx, [0x1400e16a0]
call fcn.140042ccf
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.14004208b
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140041956
Capabilities:
Get common file path

Disassembly:
jmp 0x14008c430
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x1400f7040]
xor rax, rbp
mov qword [rbp + 0x408], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x14010a643]
call fcn.1400432e7
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x14008c4bd
cmp dword [rbp + 0x234], 0x105
jbe 0x14008c4e8
lea rdx, [0x1400db29c]
mov rcx, qword [rbp + 0x430]
call fcn.140041b2c
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
jmp 0x14008c55a
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x14008c534
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x14008c521
jmp 0x14008c526
call fcn.1400428fb
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x430]
call fcn.140041b2c
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400de740]
call fcn.140042ccf
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.14004208b
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x140042329
Capabilities:
Terminate process

Disassembly:
jmp 0x1400b7d70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14004236a
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14008c2b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x14010a643]
call fcn.1400432e7
mov rcx, qword [rbp + 0x180]
call fcn.140041f50
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x188]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x14008c32b
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jae 0x14008c3d3
mov eax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
call fcn.140041c94
test eax, eax
jne 0x14008c3ce
mov rax, qword [rbp + 0x88]
mov rcx, rax
call fcn.140041f50
cmp qword [rbp + 8], rax
jne 0x14008c3ce
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0xc], 0
jne 0x14008c398
xor eax, eax
jmp 0x14008c3d5
cmp qword [rbp + 0x190], 0
je 0x14008c3b5
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
jmp 0x14008c3d5
jmp 0x14008c323
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret