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

Disassembly:
cld
pop r11
jmp 0x1400117fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001180d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400117f5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140011825
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140011812
sub eax, 3
jb 0x14001183f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140011876
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140011866
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140011864
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140011853
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400117b2
jmp 0x1400117fd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1a00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400118c2
cmp rsi, rcx
jae 0x1400118ca
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400118a9
cmp al, 0x8f
ja 0x1400118a9
cmp byte [rsi - 2], 0xf
je 0x1400118af
sub al, 0xe8
cmp al, 1
ja 0x140011893
cmp rsi, rcx
jae 0x1400118ca
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140011899
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400118ca
lodsb al, byte [rsi]
jmp 0x1400118a9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf000]
mov eax, dword [rdi]
or eax, eax
je 0x140011927
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x145f4]
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 0x1400118d7
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 0x140011921
mov qword [rbx], rax
add rbx, 8
jmp 0x1400118f7
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 0x140011961
cmp al, 0xef
ja 0x140011953
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140011933
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140011942
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 + 0x1af]
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
mov byte [fcn.1400119e0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400119e0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400119d0
sub rsp, 0xffffffffffffff80
jmp 0x1400013d0
Function at 0x140011ed4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140012760
add rsp, 0x28
jmp 0x140011ed4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
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]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14001f0e0], rbx
je 0x140011f1e
cmp rax, rbx
jne 0x140011f33
mov edi, 1
mov eax, dword [0x14001f0e8]
cmp eax, 1
jne 0x140011f40
lea ecx, [rax + 0x1e]
call fcn.140134000
jmp 0x140011fad
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140011f07
mov eax, dword [0x14001f0e8]
test eax, eax
jne 0x140011fa3
mov dword [0x14001f0e8], 1
lea r14, [0x140014e28]
lea rbx, [0x140014e10]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140011f95
test eax, eax
jne 0x140011f99
cmp qword [rbx], 0
je 0x140011f8a
mov rax, qword [rbx]
mov rcx, qword [0x140014db0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140011f6b
test eax, eax
je 0x140011fad
mov eax, 0xff
jmp 0x140012102
mov dword [0x14001e5f4], 1
mov eax, dword [0x14001f0e8]
cmp eax, 1
jne 0x140011fd5
lea rdx, [0x140014e08]
lea rcx, [0x140014db8]
call sub.msvcrt.dll__initterm
mov dword [0x14001f0e8], 2
test edi, edi
jne 0x140011fe2
xor eax, eax
xchg qword [0x14001f0e0], rax
cmp qword [0x14001f100], 0
je 0x140012016
lea rcx, [0x14001f100]
call fcn.1400126e0
test eax, eax
je 0x140012016
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001f100]
mov r9, qword [0x140014db0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x1400120a1
test cl, cl
je 0x140012038
test edi, edi
jne 0x1400120a1
dec cl
cmp cl, 0x1f
ja 0x14001204b
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x140012038
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400015d4
mov dword [0x14001e5f0], eax
cmp dword [0x14001e610], 0
jne 0x14001208a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001e5f4], 0
jne 0x14001209f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001e5f0]
jmp 0x140012102
cmp cl, 0x22
jne 0x1400120b3
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1400120c8
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140012029
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1800052d0
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov ebp, edx
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x58], xmm0
xor edx, edx
mov qword [rax - 0x48], rdx
lea r15d, [rbp - 0xa]
movzx ebx, byte [rax + 0x10]
cmp ebp, r15d
jbe 0x18000548d
lea r14d, [rbp - 0x10b]
lea r8, [0x180000000]
mov r12, qword [rsp + 0xc0]
mov r13d, dword [rsp + 0xb8]
mov esi, dword [rsp + 0xb8]
nop
cmp r14d, 0x10
ja case.0x180005345.7
mov ecx, dword [r8 + r14*4 + 0x54ec]
add rcx, r8
jmp rcx
mov dword [rsp + 0xb8], edx
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x58]
je case.0x180005345.7
nop
cmp dword [rax + 8], 0
jne 0x180005368
inc dword [rdi]
add rax, 0x20
cmp rax, qword [rsp + 0x58]
jne 0x180005360
jmp case.0x180005345.7
mov r12, rdx
mov r13d, edx
jmp case.0x180005345.7
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0xc0]
mov r8d, esi
mov edx, r13d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov bl, 1
jmp 0x18000546f
xor r8d, r8d
xor edx, edx
mov ecx, 0xe8
call fcn.180004990
test al, al
jne 0x18000546f
mov edx, 0xf3
mov rcx, rdi
call fcn.18000d5e0
jmp 0x18000548a
lea rdx, [rsp + 0x50]
mov ecx, 0x38
call fcn.180022710
test al, al
jne 0x18000543d
mov eax, 0xfe
nop
cmp eax, 0xfe
je 0x18000542b
cmp eax, 0x18ce
je 0x180005427
cmp eax, 0x309e
je 0x18000548d
jmp 0x180005431
xor bl, bl
jmp 0x180005431
mov dword [rdi], 1
add eax, 0x17d0
cmp eax, 0x4770
jbe 0x180005410
mov esi, 0xb
xor edx, edx
mov dword [rdi], edx
jmp 0x180005471
mov dword [rsp + 0xc0], 1
jmp case.0x180005345.7
mov dword [rsp + 0xc8], edx
jmp case.0x180005345.7
xor r8d, r8d
lea edx, [r8 + 0x7b]
mov rcx, rdi
call fcn.18000eec0
mov ebx, eax
xor edx, edx
lea r8, [0x180000000]
dec ebp
dec r14d
cmp ebp, r15d
jbe 0x18000548d
jmp 0x180005330
movzx eax, bl
movzx ebx, al
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800054d0
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800054cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800054cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180025494
movzx eax, bl
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008320
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, qword [rsp + 0x58]
lea ebp, [rcx - 5]
mov esi, ecx
cmp ecx, ebp
jbe 0x1800084b5
mov r15d, 0x53
lea r14, [0x18002da2c]
lea r12d, [r15 + 4]
nop dword [rax]
mov eax, esi
sub eax, 0xea
je 0x180008498
sub eax, 1
je 0x180008467
sub eax, 1
je 0x1800083e4
sub eax, 1
je 0x1800083c7
cmp eax, 5
jne 0x1800084ab
mov edi, 0x9a
nop
mov eax, edi
sub eax, 0x99
je 0x1800084b5
cmp eax, 1
jne 0x1800083b8
cmp byte [0x18003ca61], 0
je 0x1800084cf
call qword [0x18003ca38]
mov rbx, rax
dec edi
cmp edi, 0x98
ja 0x180008390
jmp 0x1800084ab
lea rcx, str.parasolCells_beta
call fcn.180025240
lea rcx, str.primarywindow__u__u
call fcn.180025240
jmp 0x1800084ab
mov rdx, qword [0x18003ca28]
lea rcx, str.City:__s_n
call fcn.180025240
mov ecx, dword [0x18003ae54]
mov r9d, 0x4e
mov eax, dword [0x18003ae58]
test ecx, ecx
cdq
mov r8d, eax
cmovs r9d, r15d
xor r8d, edx
mov eax, ecx
sub r8d, edx
lea rcx, str.std._A0x863ffa4f._Tuple_alloc
cdq
xor eax, edx
sub eax, edx
mov edx, eax
call fcn.180025240
mov ecx, dword [0x18003ae5c]
mov r9d, 0x45
mov eax, dword [0x18003ae60]
test ecx, ecx
cdq
mov r8d, eax
cmovg r9d, r12d
xor r8d, edx
mov eax, ecx
sub r8d, edx
lea rcx, str._s_I_2:_Git_revision______:__s
cdq
xor eax, edx
sub eax, edx
mov edx, eax
call fcn.180025240
jmp 0x1800084ab
mov r8d, dword [0x18003ae64]
lea rdx, [0x180030ee4]
test r8d, r8d
lea rcx, str._Z13convert_char4Dv4_c
cmovs rdx, r14
call fcn.180025240
lea rdx, str.osFrequency
lea rcx, str.content::RTCVideoEncoder::Impl::NotifyError
jmp 0x1800084a6
lea rdx, str.listStreams
lea rcx, str.Microsoft.DiagnosticHub.CollectorStartedEvent.
call fcn.180025240
dec esi
cmp esi, ebp
ja 0x180008360
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1800084b8
Function at 0x18000e6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x18003acf8]
xor rax, rsp
mov qword [rsp + 0x180], rax
movzx ebx, byte [rsp + 0x40]
mov r9, r8
mov qword [rsp + 0x58], r8
mov r13, rcx
lea r8d, [rdx + 8]
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x44], r8d
cmp edx, r8d
jae case.0x18000e77a.10
mov rsi, qword [rsp + 0x60]
lea r8d, [rdx - 0x7d]
movzx ebp, byte [rsp + 0x40]
lea r11, [0x180000000]
movzx edi, byte [rsp + 0x40]
xor r10d, r10d
mov r12, qword [rsp + 0x60]
movzx r15d, byte [rsp + 0x40]
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4c], r8d
cmp r8d, 0xa
ja case.default.0x18000e77a
mov ecx, dword [r11 + r8*4 + 0xe95c]
add rcx, r11
jmp rcx
cmp qword [r13 + 0x18], 0x10
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x68], r13
jb case.0x18000e77a.5
mov rax, qword [r13]
mov qword [rsp + 0x68], rax
jmp case.0x18000e77a.5
mov byte [rsp + 0x171], bpl
jmp case.0x18000e77a.5
xor bl, bl
jmp case.0x18000e77a.5
cmp qword [r13 + 0x10], 0
mov r14, r10
jbe case.0x18000e77a.5
mov qword [rsp + 0x38], r10
xor r8d, r8d
mov qword [rsp + 0x30], r10
xor edx, edx
mov qword [rsp + 0x28], r9
mov rcx, r13
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x20], 0xd8
call fcn.18001e4f0
test al, al
jne 0x18000e958
mov r9, qword [rsp + 0x58]
inc r14
mov r10d, 0
cmp r14, qword [r13 + 0x10]
jb 0x18000e7c1
jmp 0x18000e900
movzx edi, byte [rsp + 0x170]
movzx ebp, byte [rsp + 0x171]
jmp case.0x18000e77a.5
cmp r12, qword [r13 + 0x10]
jae 0x18000e8b7
nop
mov r13, qword [rsp + 0x68]
mov r8d, 0x9d
nop dword [rax + rax]
mov eax, r8d
sub eax, 0x9d
je 0x18000e888
sub eax, 1
je 0x18000e873
cmp eax, 1
jne 0x18000e897
movzx eax, bpl
movzx ecx, dil
movzx ecx, byte [rcx + rsi]
add cl, byte [rax + rsi]
movzx eax, cl
movzx ecx, byte [rax + rsi]
xor byte [r12 + r13], cl
inc r12
jmp 0x18000e897
movzx edx, bpl
movzx ecx, dil
movzx eax, byte [rdx + rsi]
mov byte [rcx + rsi], al
mov byte [rdx + rsi], r15b
jmp 0x18000e897
inc dil
movzx eax, dil
movzx r15d, byte [rax + rsi]
add bpl, r15b
inc r8d
cmp r8d, 0xa0
jb 0x18000e840
mov r13, qword [rsp + 0x60]
cmp r12, qword [r13 + 0x10]
jb 0x18000e830
mov edx, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x4c]
mov byte [rsp + 0x170], dil
jmp case.0x18000e77a.5
cmp qword [r9 + 0x18], 0x10
mov r12, r10
mov r8, r9
jb 0x18000e8d1
mov r8, qword [r9]
mov eax, dword [r9 + 0x10]
lea rcx, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
lea r9d, [rdx + 0x79]
call fcn.180024000
mov r9, qword [rsp + 0x58]
xor r10d, r10d
mov r8d, dword [rsp + 0x4c]
lea r11, [0x180000000]
mov edx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x44]
inc edx
inc r8d
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x4c], r8d
cmp edx, eax
jb 0x18000e765
movzx eax, bl
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800259a0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov al, 1
jmp 0x18000e92d
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405700]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00405710]
mov dword [rax], 1
mov rax, qword [0x00405720]
mov dword [rax], 1
mov rax, qword [0x004056f0]
mov dword [rax], 1
mov rax, qword [0x004055e0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004056e0]
mov dword [0x0040800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004056a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00405590]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Check for sandbox and av modules

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea rcx, str.sbiedll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x40158a
mov eax, 1
jmp 0x40158f
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x401595
Capabilities:
Get memory capacity

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp - 0x50], 0x40
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0x3fffffff
ja 0x4015cd
mov eax, 0
jmp 0x4015d2
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x402780
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x4027f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00408614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x402998
mov rax, qword [0x00408618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40283c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4028c7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x402820
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x4029d2
mov rax, qword [0x00408618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4029e1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4028c0
sub eax, 4
and eax, 0xfffffffb
jne 0x402950
add dword [0x00408614], 1
cmp ebx, 8
jae 0x4028f8
test bl, 4
jne 0x4029a0
test ebx, ebx
je 0x4028e9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4029c0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x4028e9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40292a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00408618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4028c0
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 edi, edi
jmp 0x402847
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x4028e9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x4028e9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00408618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4031c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x403214
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40320b
test r12, r12
je 0x40320b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4031f0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x403440
Capabilities:
Parse pe header

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

Function at 0x403460
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 0x4034a5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40349c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4034a7
add rax, 0x28
cmp rax, r9
jne 0x403488
xor eax, eax
ret

Function at 0x403550
Capabilities:
Enumerate pe sections

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

Function at 0x4036b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004055e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x40371f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40371f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x40371d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x403714
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403728
add rax, 0x28
cmp rax, r9
jne 0x403700
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x403740
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004055e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x4037b8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037b8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x4037b8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4037b8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x4037ac
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x4037c0
add rdx, 0x28
cmp rdx, r10
jne 0x403798
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x4037d0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x4037de
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4037b5
test r8d, r8d
jg 0x4037c8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14000a560
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000a56d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000a57d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000a565
lea eax, [rcx + 1]
jmp 0x14000a58b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14000a59e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000a584
sub eax, 3
jb 0x14000a5bc
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000a5f4
sar eax, 1
movsxd rbp, eax
jmp 0x14000a5bf
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000a5e0
inc ecx
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000a5db
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000a5ca
add ecx, 2
cmp rbp, 0xfffffffffffffb00
adc ecx, 1
call fcn.14000a522
jmp 0x14000a56d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000a650
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa1dc]
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 0x14000a600
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 0x14000a64a
mov qword [rbx], rax
add rbx, 8
jmp 0x14000a620
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 0x14000a68a
cmp al, 0xef
ja 0x14000a67c
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000a65c
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000a66b
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 + 0x227]
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 0x14000a6de
sub rsp, 0xffffffffffffff80
jmp 0x1400016d0