joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010120
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
movaps xmmword [rsp], xmm6
sub rsp, 0x10
movaps xmmword [rsp], xmm7
mov r10, rcx
mov r11, rdx
push r12
mov r12, r8
push rsi
push rdi
mov rsi, r12
mov rdx, r11
mov rdi, r10
mov eax, 2
movdqa xmm4, xmmword [rsi]
movdqa xmm5, xmmword [rsi + 0x10]
movdqa xmm6, xmmword [rsi + 0x20]
movdqa xmm7, xmmword [rsi + 0x30]
movdqa xmm0, xmm4
movdqa xmm1, xmm5
movdqa xmm2, xmm6
movdqa xmm3, xmm7
psraw xmm4, 0xf
psraw xmm5, 0xf
psraw xmm6, 0xf
psraw xmm7, 0xf
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
psubw xmm0, xmm4
psubw xmm1, xmm5
psubw xmm2, xmm6
psubw xmm3, xmm7
paddw xmm0, xmmword [rdx + 0x80]
paddw xmm1, xmmword [rdx + 0x90]
paddw xmm2, xmmword [rdx + 0xa0]
paddw xmm3, xmmword [rdx + 0xb0]
pmulhuw xmm0, xmmword [rdx]
pmulhuw xmm1, xmmword [rdx + 0x10]
pmulhuw xmm2, xmmword [rdx + 0x20]
pmulhuw xmm3, xmmword [rdx + 0x30]
pmulhuw xmm0, xmmword [rdx + 0x100]
pmulhuw xmm1, xmmword [rdx + 0x110]
pmulhuw xmm2, xmmword [rdx + 0x120]
pmulhuw xmm3, xmmword [rdx + 0x130]
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
psubw xmm0, xmm4
psubw xmm1, xmm5
psubw xmm2, xmm6
psubw xmm3, xmm7
movdqa xmmword [rdi], xmm0
movdqa xmmword [rdi + 0x10], xmm1
movdqa xmmword [rdi + 0x20], xmm2
movdqa xmmword [rdi + 0x30], xmm3
add rsi, 0x40
add rdx, 0x40
add rdi, 0x40
dec rax
jne 0x14001014f
pop rdi
pop rsi
pop r12
movaps xmm7, xmmword [rsp]
add rsp, 0x10
movaps xmm6, xmmword [rsp]
add rsp, 0x10
pop rbp
ret
Function at 0x140043fb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140043ffa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140043ffa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140043ffa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140043ffa
cmp dword [rcx + 0x84], 0xe
jbe 0x140043ffa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140043ffc
xor al, al
add rsp, 0x28
ret
Function at 0x140638058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406381df
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 0x140638089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063806f
add dl, dl
jne 0x140638096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406380f6
xor eax, eax
add dl, dl
jne 0x1406380a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406381ad
add dl, dl
jne 0x1406380b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406380c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406380d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406380dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406380ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14063807e
mov eax, 1
add dl, dl
jne 0x140638106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140638113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406380fb
sub eax, ebx
mov ebx, 1
jne 0x14063814c
mov ecx, 1
add dl, dl
jne 0x14063812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140638123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140638168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140638175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063815d
cmp eax, 0x7d00
jae 0x14063819b
cmp eax, 0x500
jb 0x140638196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063807e
cmp eax, 0x7f
ja 0x14063819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406381d2
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 0x14063807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001100
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov rsi, r8
mov rdi, rcx
mov dword [rsp + 0x44], ebx
xor r9d, r9d
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 1]
lea rcx, str.WinHTTP_Example___1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x1400012d9
mov r8d, 0x1f90
mov qword [rsp + 0x98], r12
xor r9d, r9d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x140001331
mov dword [rsp + 0x30], ebx
lea rdx, [0x140019a50]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x140001328
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000131f
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000131f
mov qword [rsp + 0x88], rbp
lea rdx, [rsp + 0x44]
mov rcx, rsi
mov qword [rsp + 0x50], r14
mov edi, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400012a6
nop word [rax + rax]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1400012a6
mov ecx, eax
call fcn.140001b78
mov r8d, dword [rsp + 0x44]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov r14, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400012f0
mov ecx, dword [rsp + 0x40]
inc ecx
add ecx, edi
call fcn.140001b78
mov rbp, rax
test rbx, rbx
je 0x14000126f
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.140010da0
mov rcx, rbx
call fcn.140001b70
mov r8d, dword [rsp + 0x40]
mov rdx, r14
mov ecx, edi
add rcx, rbp
call fcn.140010da0
add edi, dword [rsp + 0x40]
mov rcx, r14
mov rbx, rbp
call fcn.140001b70
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140001210
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rbx
mov rbp, qword [rsp + 0x88]
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001b50
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
mov rcx, r14
call fcn.140001b70
mov rcx, rbx
call fcn.140001b70
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x1400012c4
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x1400012d1
Function at 0x140002634
Capabilities:
Parse pe header

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

Function at 0x140006488
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006284
Function at 0x14000b758
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000b788
xor eax, eax
jmp 0x14000b84b
mov rbp, rbx
cmp word [rax], si
je 0x14000b7ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000b794
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000b790
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000b678
movsxd r14, eax
test eax, eax
jne 0x14000b7eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000b781
mov rcx, r14
call fcn.14000c2a4
mov rdi, rax
test rax, rax
jne 0x14000b804
xor ecx, ecx
call fcn.140008df0
jmp 0x14000b7e0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000b678
test eax, eax
jne 0x14000b835
mov rcx, rdi
call fcn.140008df0
jmp 0x14000b83f
xor ecx, ecx
call fcn.140008df0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000ed60
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000a7d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000edea
cmp byte [rbp - 0x21], r15b
je 0x14000ede5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ee20
call fcn.140009040
test eax, eax
jne 0x14000ee0c
cmp byte [rbp - 0x21], r15b
je 0x14000ee04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ee20
cmp byte [rbp - 0x21], r15b
je 0x14000ee1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140009db8
test eax, eax
jne 0x14000eec0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000a7d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000ee5f
cmp byte [rbp - 0x21], r15b
je 0x14000ee94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000ee94
call fcn.140009040
test eax, eax
jne 0x14000ee80
cmp byte [rbp - 0x21], r15b
je 0x14000ee79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000ee94
cmp byte [rbp - 0x21], r15b
je 0x14000ee91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140009db8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000eec0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000eec3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000eed1
mov rcx, rdi
call fcn.140008df0
cmp byte [rbp + 0x3f], r15b
je 0x14000eee0
mov rcx, qword [rbp + 0x27]
call fcn.140008df0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140010790
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400107b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400107b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140337790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x1404f2618]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, [0x1403fdd68]
call fcn.140352c70
mov rbx, rax
test rax, rax
je 0x140337894
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, rax
mov dword [rsi + 0x350], 1
call fcn.1403617a0
mov edi, eax
test eax, eax
js 0x140337884
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.140357ae8
test eax, eax
jne 0x14033787b
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x140337850
inc eax
movsxd rcx, eax
call fcn.140352c80
mov rbx, rax
test rax, rax
je 0x14033783f
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
call fcn.14035ef28
movsxd rcx, dword [rsp + 0x34]
cmp eax, ecx
jne 0x14033783f
mov byte [rcx + rbx], 0
mov rdx, rbx
mov rcx, rsi
call fcn.1403378b0
mov rcx, rbx
call fcn.140352810
mov ecx, edi
call fcn.14035e7ec
jmp 0x14033788f
call fcn.1403275b0
cmp eax, 2
jge 0x14033787b
mov ecx, 2
call fcn.14034e7e4
mov r9d, dword [rsp + 0x34]
lea rdx, [0x1403fdd80]
mov rcx, rax
mov r8, rbx
call fcn.140004130
mov ecx, edi
call fcn.14035e7ec
jmp 0x14033788f
mov rdx, rbx
mov rcx, rsi
call fcn.1403378b0
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140346fd0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x140358584
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403583b0
Function at 0x1800014f8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x50
mov eax, 0x400
lea r8, [rbp - 0x18]
lea rcx, [0x18000d0c0]
mov edx, 0xeaf27e
xor ebx, ebx
mov dword [rbp - 0x18], 0x3dc00
mov dword [rbp - 0x14], eax
mov word [rbp - 0x10], 8
mov dword [rbp - 0xc], 0xef7a
mov dword [rbp - 8], 1
mov dword [rbp - 0x30], 0xf10
mov dword [rbp - 0x2c], eax
mov word [rbp - 0x28], 8
mov dword [rbp - 0x24], 0x20e
mov dword [rbp - 0x20], 1
call fcn.1800013cc
mov r12, rax
test rax, rax
je 0x180001628
lea r8, [rbp - 0x30]
lea rcx, [0x180ebc340]
mov edx, 0x1778
call fcn.1800013cc
mov rsi, rax
test rax, rax
je 0x180001620
mov r13d, dword [rbp - 0x30]
lea r9d, [rbx + 0x40]
mov r8d, 0x3000
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800015c9
mov r8d, r13d
mov rdx, rsi
mov rcx, rax
call fcn.180005420
jmp 0x1800015cc
mov rdi, rbx
test rdi, rdi
je 0x180001618
mov r9d, dword [rbp - 0x18]
mov r8, r12
mov edx, 1
xor ecx, ecx
call rdi
test rax, rax
je 0x180001618
xor r9d, r9d
mov r8d, 0x378
mov rcx, rax
lea edx, [r9 + 2]
call rdi
test rax, rax
je 0x180001618
mov rcx, qword [0x180ebeb78]
mov edx, 0x2ee7
call rax
test rax, rax
mov qword [0x180ebeb80], rax
setne bl
mov rcx, rsi
call fcn.18000199c
mov rcx, r12
call fcn.18000199c
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x1800020c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000c070]
jne 0x18000187a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001876
repz ret
ror rcx, 0x10
jmp 0x18000201c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180ebdba0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180ebdc98]
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 0x1800020a1
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, [0x180ebdba0]
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 0x1800020c3
mov rax, qword [rsp + 0x88]
mov qword [0x180ebdc98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180ebdc38], rax
mov rax, qword [0x180ebdc98]
mov qword [0x180ebdb10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180ebdc20], rax
mov dword [0x180ebdb00], 0xc0000409
mov dword [0x180ebdb04], 1
mov rax, qword [0x18000c070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000c078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180ebdb98], eax
mov ecx, 1
call fcn.180004d84
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800082e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180ebdb98], 0
jne 0x18000214a
mov ecx, 1
call fcn.180004d84
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 0x180006af4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18000c070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000318c
xor ebx, ebx
cmp qword [0x180ebeb48], rbx
mov rdi, rax
jne 0x180006c07
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180006cde
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006cde
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180ebeb48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180ebeb50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180ebeb58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180ebeb68], rax
test rax, rax
je 0x180006bfe
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180ebeb60], rax
jmp 0x180006c0e
mov rax, qword [0x180ebeb60]
jmp 0x180006c15
mov rax, qword [0x180ebeb60]
mov r11, qword [0x180ebeb68]
cmp rax, rdi
je 0x180006c7c
cmp r11, rdi
je 0x180006c7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180ebeb68]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180006c7c
test rax, rax
je 0x180006c7c
call rsi
test rax, rax
je 0x180006c76
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180006c76
test byte [rsp + 0x40], 1
jne 0x180006c7c
bts ebp, 0x15
jmp 0x180006cbc
mov rcx, qword [0x180ebeb50]
cmp rcx, rdi
je 0x180006cbc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cbc
call rax
mov rbx, rax
test rax, rax
je 0x180006cbc
mov rcx, qword [0x180ebeb58]
cmp rcx, rdi
je 0x180006cbc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cbc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180ebeb48]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cde
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180006ce0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180001860
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x140005440]
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 0x140001f7b
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
mov eax, 0x2848
call fcn.140003710
sub rsp, rax
lea rbp, [rsp + 0x80]
mov ecx, 0x2004
call sym.malloc
mov qword [rbp + 0x27b8], rax
lea rax, [rbp + 0x1fb0]
mov edx, 0x800
mov rcx, rax
call sym.getcwd
mov rdx, rax
lea rax, [0x140005058]
mov rcx, rax
call sym.printf
mov ecx, 0
mov rax, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
call rax
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
mov edx, 0x2004
mov rcx, rax
call sym.fgets
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
lea rcx, [rax - 1]
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x27b8]
mov r8, rcx
mov rcx, rax
call sym.strncat
mov rax, qword [rbp + 0x27b8]
mov rcx, rax
call sym.strlen
mov rbx, rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
sub rbx, rax
mov rdx, rbx
lea rax, [rdx + 1]
add qword [rbp + 0x27b8], rax
mov rax, qword [rbp + 0x27b8]
mov rcx, rax
call sym.system
mov ecx, 0xa
call sym.putchar
mov rax, qword [rbp + 0x27b8]
mov rcx, rax
call sym.exit_verif
add rsp, 0x2848
pop rbx
pop rbp
ret

Function at 0x140002075
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call sym.__main
lea rax, str.chcp_65001___nul
mov rcx, rax
call sym.system
lea rax, str.Interprteur_de_commande___V.000.0.0_:_n
mov rcx, rax
call sym.puts
call sym.execcom
cmp eax, 1
je 0x1400020ac
jmp 0x1400020a0
nop
mov eax, 0
add rsp, 0x20
pop rbp
ret