joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400101c8
Capabilities:
Access peb ldr_data
Delete registry key
Delete registry value
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov dword [rbp - 0x50], 0x240022
lea rax, str.SymbolicLinkValue
mov qword [rbp - 0x48], rax
xor r15d, r15d
mov rax, qword gs:[0x30]
xorps xmm0, xmm0
mov esi, 0x22
mov rcx, qword [rax + 0x60]
lea rax, [rbp - 0x60]
mov r14, qword [rcx + 0x30]
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x20], r15
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r15
mov dword [rbp - 0x18], 0x40
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x140010309
movzx edi, word [rbp - 0x3e]
lea edx, [rsi - 0x1a]
add rdi, rsi
mov rcx, r14
mov r8, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x1400102fd
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x60]
mov word [rbp - 0x60], r15w
mov word [rbp - 0x5e], di
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov ebx, eax
test eax, eax
js 0x1400102ef
lea rdx, str.SoftwareKureND
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
js 0x1400102ef
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], 0x140
mov edx, 0xf003f
lea rcx, [rbp + 0x20]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x1400102ef
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov ebx, eax
test eax, eax
js 0x1400102e5
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov ebx, eax
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntdll.dll_NtClose]
mov r8, rsi
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140010328
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x90
lea rbp, [rsp + 0x30]
and qword [rbp + 0x90], 0
lea rax, str.REGISTRYMACHINESOFTWAREMicrosoftWindows_NTCurrentVersionUACCOMAutoApprovalList
mov qword [rbp + 0x80], rbx
xor edi, edi
mov qword [rbp + 0x98], rsi
mov rbx, rdx
mov dword [rbp], 0xae00ac
mov r14, rcx
mov qword [rbp + 8], rax
test rdx, rdx
je 0x140010370
and dword [rdx], edi
and qword [rbp + 0x38], rdi
lea rax, [rbp]
xorps xmm0, xmm0
mov qword [rbp + 0x40], rax
lea r8, [rbp + 0x30]
mov dword [rbp + 0x30], 0x30
mov edx, 1
mov dword [rbp + 0x48], 0x40
lea rcx, [rbp + 0x90]
movdqu xmmword [rbp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
not esi
shr esi, 0x1f
test esi, esi
je 0x140010449
mov rdx, r14
lea rcx, [rbp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, 0x1000
call fcn.140017b40
sub rsp, rax
lea r14, [rsp + 0x30]
mov rcx, qword [rbp + 0x90]
lea rax, [rbp + 0x88]
mov qword [rsp + 0x28], rax
mov r9, r14
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
mov edx, edi
call qword [sym.imp.ntdll.dll_NtEnumerateValueKey]
test eax, eax
js 0x14001043c
movzx eax, word [r14 + 8]
lea rdx, [rbp + 0x10]
mov word [rbp + 0x12], ax
lea rcx, [rbp + 0x20]
lea rax, [r14 + 0xc]
mov r8b, 1
mov qword [rbp + 0x18], rax
movzx eax, word [r14 + 8]
mov word [rbp + 0x10], ax
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
jne 0x140010436
inc edi
jmp 0x1400103d6
mov dword [rbx], 1
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rbp + 0x80]
mov eax, esi
mov rsi, qword [rbp + 0x98]
lea rsp, [rbp + 0x60]
pop r14
pop rdi
pop rbp
ret
Function at 0x140010b30
Capabilities:
Terminate process

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, 0x30
lea r12, str.HKEY_CURRENT_USER
mov rsi, r9
mov r10, r12
mov rbp, r8
mov r15, rdx
xor ebx, ebx
add r10, 2
cmp word [r10], bx
jne 0x140010b62
sub r10, r12
mov rcx, r15
sar r10, 1
test r15, r15
jne 0x140010b7f
mov rcx, rbx
jmp 0x140010b93
cmp word [rdx], bx
je 0x140010b8d
add rcx, 2
cmp word [rcx], bx
jne 0x140010b84
sub rcx, r15
sar rcx, 1
mov r14, qword [rsp + 0x70]
mov rax, r14
test r14, r14
jne 0x140010ba5
mov rax, rbx
jmp 0x140010bba
cmp word [r14], bx
je 0x140010bb4
add rax, 2
cmp word [rax], bx
jne 0x140010bab
sub rax, r14
sar rax, 1
lea r8, [rax + 1]
add r8, r10
add r8, rcx
test rsi, rsi
je 0x140010be4
mov rax, rsi
cmp word [r9], bx
je 0x140010bdb
add rax, 2
cmp word [rax], bx
jne 0x140010bd2
sub rax, rsi
sar rax, 1
add r8, rax
test rbp, rbp
je 0x140010c04
mov rax, rbp
cmp word [rbp], bx
je 0x140010bfb
add rax, 2
cmp word [rax], bx
jne 0x140010bf2
sub rax, rbp
sar rax, 1
add r8, rax
mov rcx, qword [0x14002e920]
lea r8, [r8*2 + 0x410]
mov edx, 8
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140010d4d
mov rdx, qword [0x14002e920]
mov rcx, rdi
add rdx, 0x276
call fcn.1400017f8
lea rdx, str.reg.exe
call fcn.14000174c
lea rdx, str._add
mov rcx, rdi
call fcn.14000174c
mov rdx, r12
mov rcx, rdi
call fcn.14000174c
lea rdx, [0x1400253f4]
mov rcx, rdi
call fcn.14000174c
mov rdx, r15
mov rcx, rdi
call fcn.14000174c
test rbp, rbp
je 0x140010cb2
lea rdx, str.__v__
mov rcx, rdi
call fcn.14000174c
mov rdx, rbp
mov rcx, rdi
call fcn.14000174c
lea rdx, [0x140025a90]
mov rcx, rdi
call fcn.14000174c
test rsi, rsi
je 0x140010cd1
lea rdx, [0x140027460]
mov rcx, rdi
call fcn.14000174c
mov rdx, rsi
mov rcx, rdi
call fcn.14000174c
lea rdx, str.__d__
mov rcx, rdi
call fcn.14000174c
mov rdx, r14
mov rcx, rdi
call fcn.14000174c
lea rdx, str.___f
mov rcx, rdi
call fcn.14000174c
mov rcx, rdi
call fcn.14000ee28
mov rsi, rax
test rax, rax
je 0x140010d35
mov edx, 0x1388
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140010d2a
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, qword [0x14002e920]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140010d6c
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x58], 0
lea rdx, str.SoftwareMicrosoftNET_Framework_SetupNDP_v4Full
and dword [rsp + 0x40], 0
mov eax, 4
mov dword [rsp + 0x48], eax
mov r9d, 0x20019
mov dword [rsp + 0x50], eax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010dec
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Release
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 0x80ea8
setae al
add rsp, 0x38
ret

Function at 0x140011570
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011598
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140011598
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400117a8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140011817
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011817
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011817
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011817
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011817
cmp dword [rcx + 0x84], 0xe
jbe 0x140011817
cmp dword [rcx + 0xf8], 0
je 0x140011817
mov ecx, ebx
call fcn.1400118c8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400116a4
nop
cmp dword [rbp + 0x20], 0
je 0x140011865
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011870
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400117a8
Function at 0x1400386e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400386ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400386fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400386e5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140038715
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140038702
sub eax, 3
jb 0x14003872f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140038766
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140038756
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140038754
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140038743
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400386a2
jmp 0x1400386ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xee00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400387b2
cmp rsi, rcx
jae 0x1400387ba
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140038799
cmp al, 0x8f
ja 0x140038799
cmp byte [rsi - 2], 0xf
je 0x14003879f
sub al, 0xe8
cmp al, 1
ja 0x140038783
cmp rsi, rcx
jae 0x1400387ba
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140038789
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400387ba
lodsb al, byte [rsi]
jmp 0x140038799
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x36000]
mov eax, dword [rdi]
or eax, eax
je 0x140038817
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4ddb4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400387c7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140038811
mov qword [rbx], rax
add rbx, 8
jmp 0x1400387e7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140038851
cmp al, 0xef
ja 0x140038843
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140038823
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140038832
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400388a5
sub rsp, 0xffffffffffffff80
jmp 0x140002358
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400044a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044b0]
mov dword [rax], 1
mov rax, qword [0x1400044c0]
mov dword [rax], 1
mov rax, qword [0x140004450]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004490]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004560]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004400]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400018e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001950
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008104]
mov rbx, rcx
test esi, esi
jle 0x140001a80
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000199b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001980
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001aa2
mov rax, qword [0x140008108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a30
add dword [0x140008104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019a8
mov rax, qword [0x140008108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002010
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x14000206c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002063
test rsi, rsi
je 0x140002063
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002048
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002298
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400022b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022ff
add rax, 0x28
cmp rax, r9
jne 0x1400022e0
xor eax, eax
ret

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002390
mov rdx, qword [0x140004450]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000237e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000237e
cmp word [rax + 0x18], 0x20b
jne 0x14000237e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002390
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002369
add rbx, 0x28
cmp rbx, rdi
je 0x140002390
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002360
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400023a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004450]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000241d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002414
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023c0
add rax, 0x28
cmp rax, r9
jne 0x140002400
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004450]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000243f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002448
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000243f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004450]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002480
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002488
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002480
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024c7
test rcx, rcx
je 0x140002480
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024b8
xor eax, eax
ret
Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004450]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002508
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004450]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002540
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002540
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002594
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025a0
add rdx, 0x28
cmp r9, rdx
jne 0x140002580
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400025b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004450]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002635
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002648
add rdx, 0x28
cmp rdx, r10
jne 0x140002620
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002657
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002667
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000263e
test ecx, ecx
jg 0x140002650
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140150000
add rsp, 0x28
jmp 0x14000c43c