joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002490
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x40]
mov byte [rsp + 0x20], 0
mov byte [rsp + 0x21], 0
mov byte [rsp + 0x22], 1
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x40], 2
jne 0x14000261d
lea rdx, [0x1400047e4]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
je 0x140002507
lea rdx, [0x140004834]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
jne 0x140002516
call fcn.1400019d0
mov byte [rsp + 0x22], 0
jmp 0x14000261d
lea rdx, [0x140004bc0]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
je 0x14000254a
lea rdx, str._version
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
jne 0x140002559
call fcn.140001ad0
mov byte [rsp + 0x22], 0
jmp 0x14000261d
lea rdx, [0x140004be0]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
je 0x14000258d
lea rdx, str._enable
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
jne 0x1400025bc
mov byte [rsp + 0x22], 0
mov byte [rsp + 0x20], 1
mov cl, 1
call fcn.140001610
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x1400025ba
call fcn.140001000
movzx eax, al
test eax, eax
jne 0x1400025ba
call fcn.140001ce0
jmp 0x14000261d
lea rdx, [0x140004bf0]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
je 0x1400025f0
lea rdx, str._disable
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
call qword [sym.imp.MSVCR100.dll__stricmp]
test eax, eax
jne 0x14000261d
mov byte [rsp + 0x22], 0
mov byte [rsp + 0x21], 1
xor ecx, ecx
call fcn.140001610
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14000261d
call fcn.140001000
movzx eax, al
test eax, eax
jne 0x14000261d
call fcn.1400023c0
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140002630
call fcn.1400019d0
jmp 0x1400026ba
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140002642
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400026ba
cmp dword [rsp + 0x24], 0
je 0x140002656
lea rcx, str.There_was_an_error._n_n
call qword [sym.imp.MSVCR100.dll_printf]
lea rcx, str.The_Java_Access_Bridge_has
call qword [sym.imp.MSVCR100.dll_printf]
cmp dword [rsp + 0x24], 0
je 0x140002677
lea rcx, str.not
call qword [sym.imp.MSVCR100.dll_printf]
lea rcx, str.been
call qword [sym.imp.MSVCR100.dll_printf]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000269c
lea rcx, str.enabled._n
call qword [sym.imp.MSVCR100.dll_printf]
jmp 0x1400026a9
lea rcx, str.disabled._n
call qword [sym.imp.MSVCR100.dll_printf]
cmp dword [rsp + 0x24], 0
je 0x1400026ba
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.MSVCR100.dll_exit]
jmp 0x1400026be
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140002dc3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140007020]
jne 0x1400029ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400029c6
repz ret
ror rcx, 0x10
jmp 0x140002d1c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140007140]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140007238]
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 0x140002da1
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, [0x140007140]
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 0x140002dc3
mov rax, qword [rsp + 0x88]
mov qword [0x140007238], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400071d8], rax
mov rax, qword [0x140007238]
mov qword [0x1400070b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400071c0], rax
mov dword [0x1400070a0], 0xc0000409
mov dword [0x1400070a4], 1
mov rax, qword [0x140007020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140007028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140007138], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140005840]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140007138], 0
jne 0x140002e4a
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
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 0x140002818
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002862
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002862
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002862
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002862
cmp dword [rcx + 0x84], 0xe
jbe 0x140002862
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002864
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140050ad0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140050ae0]
mov dword [rax], 1
mov rax, qword [0x140050af0]
mov dword [rax], 1
mov rax, qword [0x140050a40]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140050ac0]
mov dword [0x14006200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140050bc0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140050ba0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400509e0]
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140050b20]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140050b30]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140062008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140050a80]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140050b10]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140062028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140062020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140062020], rbp
call dbg.__main
mov rax, qword [0x140050aa0]
mov r8, qword [0x140062018]
mov ecx, dword [0x140062028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140062020]
call sym.main
mov ecx, dword [0x14006200c]
mov dword [0x140062010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140062008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140050b30]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140050b70]
mov rcx, qword [0x140050b60]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sym._cexit
mov eax, dword [0x140062010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140050b90]
mov rcx, qword [0x140050b80]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop

Function at 0x1400070a0
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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140007110
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140062094]
mov rbx, rcx
test esi, esi
jle 0x140007240
mov rax, qword [0x140062098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000715b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400071e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140007140
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140007262
mov rax, qword [0x140062098]
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 [0x140062098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140007247
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400071de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400071f0
add dword [0x140062094], 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 [0x140062098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400071de
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 0x140007168
mov rax, qword [0x140062098]
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 0x140007800
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140062100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400620e0]
test rbx, rbx
je 0x14000785c
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 rsi, rsi
je 0x140007853
test eax, eax
jne 0x140007853
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140007838
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 0x140007a70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140007a88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140007a90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140007aa0
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 0x140007aed
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 0x140007ae4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140007aef
add rax, 0x28
cmp rax, r9
jne 0x140007ad0
xor eax, eax
ret

Function at 0x140007af0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140007b80
mov rdx, qword [0x140050a40]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140007b6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140007b6e
cmp word [rax + 0x18], 0x20b
jne 0x140007b6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140007b80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140007b59
add rbx, 0x28
cmp rbx, rdi
je 0x140007b80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140007b50
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 0x140007b90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140050a40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007bb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007bb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007bb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140007c0d
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 0x140007c04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140007bb0
add rax, 0x28
cmp rax, r9
jne 0x140007bf0
xor eax, eax
ret

Function at 0x140007c10
Capabilities:
Parse pe header

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

Function at 0x140007c50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140050a40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140007c70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140007c78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140007c70
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140007cc0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140007cb7
test rcx, rcx
je 0x140007c70
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140007ca8
xor eax, eax
ret
Function at 0x140007cd0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140050a40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007d30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007d38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007d30
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140007d30
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 0x140007d84
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140007d90
add rdx, 0x28
cmp r9, rdx
jne 0x140007d70
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140050a40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140007dc2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140007dd0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007dc2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140007dc2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140007dc2
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 0x140007e25
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140007e38
add rdx, 0x28
cmp r10, rdx
jne 0x140007e10
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140007e47
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140007e57
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140007e2e
test ecx, ecx
jg 0x140007e40
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001eae0]
mov dword [rax], 1
mov rax, qword [0x14001eaf0]
mov dword [rax], 1
mov rax, qword [0x14001eb00]
mov dword [rax], 1
mov rax, qword [0x14001ea70]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007cd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007d0b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007d30
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007d48
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007cfe
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d3b2]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007e14
test al, 0x10
je 0x140007d14
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007d14
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007dc0
jmp 0x140007d14

Function at 0x14000e490
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015650
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e530
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e4cc
jmp 0x14000e4e0
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e4e0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e4c0
jmp 0x14000e517
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e4f5
cmp word [rsi + 2], 0x3a
je 0x14000e517
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e580
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e598
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e5ba
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e4b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e504
xor eax, eax
jmp 0x14000e51c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e517
mov rcx, rbx
call fcn.140007c10
nop
nop word cs:[rax + rax]
nop