joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005684
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140017150]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x1400043a4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140004442
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140004442
mov r8d, 0x24
lea rdx, str.DiagnosticsHub.StandardCollector.Service
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov qword [rbp - 0x38], rax
mov rbx, rax
test rax, rax
je 0x140004405
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
je 0x140004405
cmp dword [rbp - 0x2c], 1
je 0x14000442b
lea r8, [rbp - 0x30]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x140004422
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140004439
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140004439
lea rcx, str.SUCCESS:_The_service_was_stopped_successfully_n
jmp 0x140004432
lea rcx, str.WARNING:_The_service_is_already_stopped_n
call fcn.14000225c
xor ebx, ebx
lea rcx, [rbp - 0x38]
call fcn.140004208
lea rcx, [rbp - 0x40]
call fcn.140004208
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001510
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
ret
sub rsp, 0x48
mov r9d, dword [rdx]
mov r8d, r9d
sub r8d, 1
je 0x14000574c
sub r8d, 1
je 0x14000574c
sub r8d, 1
je 0x14000574c
sub r8d, 1
je 0x14000574c
sub r8d, 1
je 0x1400056db
sub r8d, 1
je 0x1400056db
sub r8d, 1
je 0x14000574c
cmp r8d, 1
je 0x14000574c
or eax, 0xffffffff
add rsp, 0x48
ret
cmp r9d, 5
jne 0x14000573f
and qword [rsp + 0x30], 0
lea rax, str.DiagnosticsHub.StandardCollector.Service
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [0x140005d00]
mov qword [rsp + 0x28], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x140005744
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x420
je 0x140005744
test eax, eax
jle 0x140005771
movzx eax, ax
or eax, 0x80070000
add rsp, 0x48
ret
call fcn.140005b68
xor eax, eax
add rsp, 0x48
ret
sub r9d, 3
je 0x14000576c
cmp r9d, 1
je 0x140005763
mov eax, 0x8000ffff
add rsp, 0x48
ret
add rsp, 0x48
jmp 0x140004348
call fcn.14000422c
add rsp, 0x48
ret
Function at 0x140005dc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 8], 0
je 0x140005de8
mov ebx, 0x80070005
jmp 0x140005e47
add rcx, 0x10
call fcn.140004a18
and qword [rbx + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140005e90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
jne 0x140005e41
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140005e47
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140005e47
mov qword [rbx + 8], rax
xor ebx, ebx
mov rcx, rdi
call fcn.140003a18
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140006434
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rdx]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
mov esi, eax
xor ebx, ebx
mov r11, rdi
lea edx, [rsi + rsi]
shr rdx, 3
lea rbp, [rdi + rdx*8]
cmp rdi, rbp
je 0x140006488
lea r8d, [rbx + 8]
mov rdx, r11
call fcn.140008788
xor rbx, rax
add r11, r8
cmp r11, rbp
jne 0x140006475
lea rdi, [rdi + rsi*2]
cmp r11, rdi
je 0x1400064aa
mov r8d, 2
mov rdx, r11
call fcn.140008788
xor rbx, rax
add r11, r8
cmp r11, rdi
jne 0x140006497
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400083b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rbx, rdx
mov rsi, rcx
lea rdi, [rcx + 0x28]
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x20], 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
nop
lea rcx, [rsi + 0x30]
mov rdx, rbx
call fcn.140008e3c
cmp qword [rsi + 0x40], 0
jne 0x1400084d2
mov ebx, 0x12c
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
and qword [rbp - 0x30], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftDDDiagnosticsHub
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400084bc
lea rcx, [rbp - 0x18]
call fcn.14000776c
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x18], rcx
test eax, eax
jne 0x1400084bc
and dword [rbp + 0x20], eax
mov dword [rbp + 0x30], 4
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x38]
xor r8d, r8d
lea rdx, str.CollectorService.IdleShutdownInSeconds
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400084bc
cmp dword [rbp + 0x38], 4
jne 0x1400084bc
mov ebx, dword [rbp + 0x20]
test ebx, ebx
jne 0x1400084bc
lea r8, str.Service_idle_shutdown_has_been_disabled
lea rdx, str.onecorecomdiagnostics_standardcollector_basecollection_standardcollector.service_standardcollectorhost.cpp
mov rcx, qword [0x140017848]
call fcn.14000b534
jmp 0x1400084c8
lea rcx, [rsi + 0x18]
mov edx, ebx
call fcn.140005d70
nop
lea rcx, [rbp - 0x18]
call fcn.14000776c
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
xor al, byte [rdx]
stc
jno 0x14002605e
movsd dword [rdi], dword [rsi]
xor dh, byte [rbp + 0x2f]
cdq
invalid
or ax, 0x31
or al, 0xdb
xchg edx, eax
or eax, esp
jb 0x14002605e
invalid

Function at 0x140008788
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs rcx, 0xcbf29ce484222325
test r8, r8
je 0x1400087b8
movzx eax, byte [r9 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc r9
imul rcx, r10
cmp r9, r8
jb 0x14000879a
mov rax, rcx
ret
Function at 0x14000c5ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14000c610
mov eax, 0x80004003
jmp 0x14000c6e2
lea rcx, [rsp + 0x30]
call fcn.140002ae0
nop
mov r8, rdi
lea rdx, str._sDiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x30]
call fcn.14000c40c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000c6c4
lea rcx, [rsp + 0x30]
call fcn.140003014
mov r8, rdi
lea rdx, str._s_amd64DiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x30]
call fcn.14000c40c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000c6c4
lea rcx, [rsp + 0x30]
call fcn.140003014
lea r9, str.Team_ToolsDiagnosticsHubCollector
mov r8, rdi
lea rdx, str._s_s_amd64DiagnosticsHub.StandardCollector.Proxy.dll
lea rcx, [rsp + 0x30]
call fcn.14000c40c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000c6c4
mov edi, 0x80070057
jmp 0x14000c6d7
mov rdx, rsi
mov rcx, rbx
call fcn.14000c4fc
mov edi, eax
test eax, eax
js 0x14000c6d7
xor edi, edi
lea rcx, [rbx - 0x18]
call fcn.1400036a0
mov eax, edi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c7f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x14000c84c
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
cmovne rbx, qword [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.140002d6c
mov rax, rbx
add rsp, 0x40
pop rbx
ret
Function at 0x140ffc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ffc1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ffc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ffc06f
add dl, dl
jne 0x140ffc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ffc0f6
xor eax, eax
add dl, dl
jne 0x140ffc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ffc1ad
add dl, dl
jne 0x140ffc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ffc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ffc07e
mov eax, 1
add dl, dl
jne 0x140ffc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ffc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ffc0fb
sub eax, ebx
mov ebx, 1
jne 0x140ffc14c
mov ecx, 1
add dl, dl
jne 0x140ffc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ffc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ffc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ffc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ffc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ffc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ffc15d
cmp eax, 0x7d00
jae 0x140ffc19b
cmp eax, 0x500
jb 0x140ffc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ffc07e
cmp eax, 0x7f
ja 0x140ffc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ffc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ffc1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ffc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404470]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00404480]
mov dword [rax], 1
mov rax, qword [0x00404490]
mov dword [rax], 1
mov rax, qword [0x00404410]
cmp word [rax], 0x5a4d
jne 0x40105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404460]
mov dword [0x00407020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404530]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x00404510]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004043c0]
cmp dword [rax], 1
je 0x4010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401110
cmp dx, 0x20b
jne 0x40105a
cmp dword [rax + 0x84], 0xe
jbe 0x40105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x40105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x40105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x40105a

Function at 0x401540
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call sym.__main
lea rax, str._echo_off
mov rcx, rax
call sym.system
lea rax, str.echo_IMPORTANTE___Finalizando_o_processo_de_liberao_da_Loja_MS...
mov rcx, rax
call sym.system
lea rax, str.net_start_klnagent
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x401860
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 dword [rax]
Function at 0x4018d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004070b4]
test esi, esi
mov rbx, rcx
jle 0x401a00
mov rax, qword [0x004070b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40191b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x4019a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401900
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401a22
mov rax, qword [0x004070b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004070b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40199e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x4019b0
add dword [0x004070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004070b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40199e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401928
mov rax, qword [0x004070b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x401fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x00407120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407100]
test rbx, rbx
je 0x40201c
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 0x402013
test eax, eax
jne 0x402013
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x401ff8
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 0x402240
Capabilities:
Parse pe header

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

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

Function at 0x4022c0
Capabilities:
Parse pe header

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

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

Function at 0x4023e0
Capabilities:
Parse pe header

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

Function at 0x402420
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00404410]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402440
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402448
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402440
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x402490
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x402487
test rcx, rcx
je 0x402440
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x402478
xor eax, eax
ret

Function at 0x4024a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00404410]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4024bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4024c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x4024e0
Capabilities:
Enumerate pe sections
Parse pe header

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

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

Disassembly:
mov r11, qword [0x00404410]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402592
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4025a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402592
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402592
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x402592
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]
cmp rax, r9
mov r8, r9
jb 0x4025f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402608
add rdx, 0x28
cmp r10, rdx
jne 0x4025e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402617
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402627
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4025fe
test ecx, ecx
jg 0x402610
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140010a28
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov rax, qword [0x140114ab8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov r9d, 0x104
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140010a9d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140010a9d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140010a7b
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x1400e1c68]
lea rcx, [rsp + 0x30]
call fcn.14000ec08
lea r8, [rsp + 0x30]
xor edx, edx
mov ebx, 0x1f0003
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
setne r12b
test rax, rax
jne 0x140010b1a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140010c08
mov rcx, qword [rbp + 0x178]
lea r8, [0x1400e1bac]
mov edx, 0xc9
call fcn.140010610
mov esi, eax
jmp 0x140010c0b
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.1400108a0
mov esi, eax
test eax, eax
jns 0x140010b57
mov rcx, qword [rbp + 0x178]
mov r9d, eax
lea r8, [0x1400e1bac]
mov edx, 0xcf
call fcn.1400105ec
jmp 0x140010c0b
lea r8, [0x1400e1c70]
lea rcx, [rsp + 0x30]
call fcn.14000ec08
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
setne r14b
test rax, rax
jne 0x140010ba8
mov rcx, qword [rbp + 0x178]
lea r8, [0x1400e1bac]
mov edx, 0xd5
call fcn.140010610
mov esi, eax
jmp 0x140010bd6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400108a0
mov esi, eax
test eax, eax
jns 0x140010be6
mov rcx, qword [rbp + 0x178]
mov r9d, eax
lea r8, [0x1400e1bac]
mov edx, 0xd7
call fcn.1400105ec
test r14b, r14b
je 0x140010c0b
mov rcx, rbx
call fcn.140010678
nop
jmp 0x140010c0b
test r14b, r14b
je 0x140010bf4
mov rcx, rbx
call fcn.140010678
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x140010c19
mov rcx, rdi
call fcn.140010678
nop
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400d2540
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret