joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140152ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, 0x20
call fcn.140168660
sub rsp, rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
call fcn.1401529a0
test rax, rax
je 0x140152b79
cmp dword [rsp + 0x38], 0
jg 0x140152b79
cmp dword [rsp + 0x3c], 0
jg 0x140152b79
mov rcx, qword [rbx + 0x98]
movzx eax, word [rcx + 0x1bc]
add ax, ax
mov word [rcx + 0x1bc], ax
mov rax, qword [rbx + 0x98]
cmp word [rax + 0x1bc], 0x3c
jbe 0x140152b20
mov ecx, 0x3c
mov word [rax + 0x1bc], cx
mov rcx, rbx
call fcn.140152ea0
mov rcx, rbx
call fcn.140152570
test eax, eax
jns 0x140152b3d
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x98]
inc dword [rax + 0x1a8]
mov rax, qword [rbx + 0x98]
cmp dword [rax + 0x1a8], 2
jbe 0x140152b64
mov dword [rax + 0x1a8], 1
mov rcx, rbx
call fcn.140152ea0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140159470
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140159070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x30
call fcn.140168660
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x1401590b8
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov edx, 0x153
lea ecx, [rax - 0x1c]
lea r8d, [rax + 0x14]
call fcn.1400a9b30
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.140152b90
test eax, eax
je 0x1401590e2
mov rcx, rbx
call fcn.140070c00
mov rcx, rbx
test eax, eax
jne 0x1401590ef
call fcn.1400de260
mov rcx, rax
mov edx, 1
call fcn.1400a7950
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140152ab0
Function at 0x140162fc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc0
call fcn.140168660
sub rsp, rax
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [rdx + 8]
xor r12d, r12d
mov dword [rsp + 0x20], eax
mov r13, rdx
sub eax, r8d
mov edi, r8d
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov ebp, r12d
mov dword [rsp + 0x24], eax
cmp dword [rdx + 0xc], r8d
jae 0x140163030
mov r8d, 0x4d4
lea rdx, [0x1401d7210]
lea rcx, str.assertion_failed:_rec__orig_len___md_size
call fcn.1400b0810
cmp edi, 0x40
jbe 0x14016304e
mov r8d, 0x4d5
lea rdx, [0x1401d7210]
lea rcx, str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.1400b0810
mov ecx, dword [r13 + 0xc]
lea rax, [rsp + 0x30]
neg rax
lea r14, [rsp + 0x30]
and eax, 0x3f
add r14, rax
lea eax, [rdi + 0x100]
cmp ecx, eax
jbe 0x140163079
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov r8, rdi
xor edx, edx
mov rcx, r14
mov ebx, r12d
mov r15, rdi
call fcn.140169620
mov r10d, dword [r13 + 0xc]
mov r9d, r12d
cmp ebp, r10d
jae 0x140163126
mov esi, dword [rsp + 0x20]
mov r11d, esi
mov r15, qword [r13 + 0x18]
neg r11d
mov r13d, dword [rsp + 0x24]
nop
mov eax, ebp
lea ecx, [r11 + rbp]
xor ecx, esi
xor eax, r13d
lea r8d, [rax - 1]
not eax
shr eax, 0x1f
shr r8d, 0x1f
and r8d, eax
mov eax, ebp
xor eax, esi
neg r8d
or ecx, eax
or r12d, r8d
xor ecx, ebp
mov eax, ebp
shr ecx, 0x1f
and r8d, r9d
neg ecx
or ebx, r8d
and r12d, ecx
inc ebp
movzx edx, byte [rax + r15]
movzx eax, r12b
mov ecx, r9d
and al, dl
inc r9d
or byte [rcx + r14], al
mov ecx, r9d
sub ecx, edi
mov eax, edi
xor ecx, edi
xor eax, r9d
or ecx, eax
xor ecx, r9d
shr ecx, 0x1f
neg ecx
and r9d, ecx
cmp ebp, r10d
jb 0x1401630b0
mov rsi, qword [rsp + 0x28]
mov r15, rdi
test edi, edi
je 0x140163166
nop word [rax + rax]
mov ecx, ebx
lea rsi, [rsi + 1]
mov eax, ebx
inc ebx
xor rax, 0x20
movzx eax, byte [rax + r14]
movzx eax, byte [rcx + r14]
mov ecx, ebx
sub ecx, edi
mov byte [rsi - 1], al
xor ecx, edi
mov eax, edi
xor eax, ebx
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
sub r15, 1
jne 0x140163130
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140168070
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140163c30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x20
call fcn.140168660
sub rsp, rax
mov rax, qword [rcx + 8]
lea esi, [r9 + 1]
mov rbx, rdx
mov r10, rcx
mov r9, qword [rax + 0xc0]
test byte [r9 + 0x68], 1
je 0x140163c8e
mov edx, dword [rdx + 8]
lea eax, [rsi + r8]
cmp eax, edx
jbe 0x140163c77
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov eax, r8d
sub edx, r8d
add qword [rbx + 0x18], rax
add qword [rbx + 0x20], rax
sub dword [rbx + 0xc], r8d
mov dword [rbx + 8], edx
jmp 0x140163c93
cmp esi, dword [rdx + 8]
ja 0x140163c6a
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
dec ecx
mov qword [rsp + 0x38], rdi
movzx edi, byte [rcx + rax]
mov rcx, qword [r10 + 0x110]
call fcn.1400cc200
mov rcx, rax
call fcn.1400b2cb0
bt eax, 0x15
jae 0x140163cdc
or eax, 0xffffffff
sub eax, edi
mov rdi, qword [rsp + 0x38]
add dword [rbx + 8], eax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov r10d, dword [rbx + 8]
lea ecx, [rdi + rsi]
mov esi, 0x100
mov r8d, r10d
sub r8d, ecx
mov eax, r10d
xor r8d, ecx
xor eax, ecx
or r8d, eax
xor r8d, r10d
shr r8d, 0x1f
dec r8d
cmp r10d, esi
cmovb esi, r10d
xor r9d, r9d
test esi, esi
je 0x140163d60
mov r11d, edi
mov qword [rsp + 0x30], rbp
mov rbp, qword [rbx + 0x18]
shr r11d, 0x1f
mov eax, r9d
mov ecx, edi
sub ecx, r9d
shr eax, 0x1f
shr ecx, 0x1f
xor cl, al
xor al, r11b
or cl, al
mov eax, r10d
sub eax, r9d
xor cl, r11b
dec cl
dec eax
movzx edx, cl
inc r9d
movzx ecx, byte [rax + rbp]
xor ecx, edi
and edx, ecx
not edx
and r8d, edx
cmp r9d, esi
jb 0x140163d21
mov rbp, qword [rsp + 0x30]
not r8d
movzx eax, r8b
lea ecx, [rax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x38]
neg ecx
and eax, ecx
sub r10d, eax
mov eax, ecx
and eax, 1
mov dword [rbx + 8], r10d
mov rbx, qword [rsp + 0x40]
not ecx
or eax, ecx
add rsp, 0x20
pop rsi
ret
Function at 0x14016a768
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14016a53c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016a53c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016a53c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016a53c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016a53c
cmp dword [rcx + 0x84], 0xe
jbe 0x14016a53c
cmp dword [rcx + 0xf8], esi
je 0x14016a53c
mov ecx, r14d
call fcn.14016a684
mov ecx, 2
call fcn.14017b8e8
nop
cmp byte [0x14021f1f0], 0
jne 0x14016a606
mov r15d, 1
mov eax, r15d
xchg dword [0x14021f1e0], eax
test ebx, ebx
jne 0x14016a5af
mov rdi, qword [0x14021c510]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14021f1e8]
cmp rcx, rax
je 0x14016a5a6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140002e60]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14021f498]
jmp 0x14016a5bb
cmp ebx, r15d
jne 0x14016a5c1
lea rcx, [0x14021f4b0]
call fcn.14017b540
nop
test ebx, ebx
jne 0x14016a5d8
lea rdx, [0x140194bd8]
lea rcx, [0x140194bb8]
call fcn.14017af7c
lea rdx, [0x140194be8]
lea rcx, [0x140194be0]
call fcn.14017af7c
movzx eax, byte [0x14021f1f0]
test esi, esi
cmove eax, r15d
mov byte [0x14021f1f0], al
jmp 0x14016a606
mov ecx, 2
call fcn.14017b93c
test esi, esi
jne 0x14016a61d
mov ecx, r14d
call fcn.14016a638
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14016a4cc

Function at 0x140176ce8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140176d08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016f09c
or eax, 0xffffffff
jmp 0x140176d0a
xor eax, eax
add rsp, 0x28
ret

Function at 0x140176d10
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140176d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016f09c
or eax, 0xffffffff
jmp 0x140176d32
xor eax, eax
add rsp, 0x28
ret
Function at 0x140180148
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14017ffe8
call fcn.14016f10c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14016ec2c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14017ffd0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14017ffd0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14018001a
lock or dword [rax + 0x14], 0x10
jmp 0x14017ffd0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140180037
mov rcx, qword [rbp + 0x10]
call fcn.140186608
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140179e70
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14017c9b0
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14018008e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14017ffd0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401800fa
mov rcx, qword [rbp + 0x10]
call fcn.140179e70
cmp eax, 0xffffffff
je 0x1401800e1
mov rcx, qword [rbp + 0x10]
call fcn.140179e70
cmp eax, 0xfffffffe
je 0x1401800e1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140179e70
movsxd rdi, eax
lea rsi, [0x14021f890]
mov rcx, rbx
sar rdi, 6
call fcn.140179e70
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401800e8
lea rax, [0x14021c820]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401800fa
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140180130
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14018012c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14018012c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14017ffd3
jmp 0x14017ffa0

Function at 0x140180194
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140180171
call fcn.14016f10c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14016ec2c
or eax, 0xffffffff
jmp 0x14018018e
sub dword [rcx + 0x10], 1
jns 0x140180180
add rsp, 0x28
jmp fcn.140180148
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140180150
Function at 0x1400295c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400295cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400295dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400295c5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400295f5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400295e2
sub eax, 3
jb 0x14002960f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140029646
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140029636
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140029634
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140029623
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140029582
jmp 0x1400295cd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x17800
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140029696
cmp rsi, rcx
jae 0x14002969e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002967d
cmp al, 0x8f
ja 0x14002967d
cmp byte [rsi - 2], 0xf
je 0x140029683
sub al, 0xe8
cmp al, 1
ja 0x140029667
cmp rsi, rcx
jae 0x14002969e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002966d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002969e
lodsb al, byte [rsi]
jmp 0x14002967d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x27000]
mov eax, dword [rdi]
or eax, eax
je 0x1400296fb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x29228]
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 0x1400296ab
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 0x1400296f5
mov qword [rbx], rax
add rbx, 8
jmp 0x1400296cb
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 0x140029735
cmp al, 0xef
ja 0x140029727
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140029707
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140029716
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.1400297b4], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400297b4
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400297a4
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x1400057f0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140005820
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000581f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005825
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000581f
mov eax, 0
jmp 0x14000581f

Function at 0x140005ea0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005e50
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010080
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409be630]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400100ef
mov rcx, r9
call fcn.14000ff50
test eax, eax
je 0x1400100ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400100ed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400100e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400100ef
add rdx, 0x28
cmp rdx, r9
jne 0x1400100d0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
push rsp
xor al, 0x97
xor al, 0xa3
xor al, 0xa1
xor al, 0xa4
xor al, 0xa0
xor al, 0x99
xor al, 0xa8
xor al, 0x99
xor al, 0x98
xor al, 0x62
xor al, 0x34
xor al, 0x34
xor al, 0x60
xor eax, 0x3435f447
xor al, 0x34
invalid
fstp xword [rcx]
jnp 0x100411c92
fdiv dword [rdi + 0x6ced379d]
test eax, 0x3f34cddb
cmp byte [rsp + rsi], dh
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x34
xor al, 0x22
mov byte [rcx], al
loop 0x100411c79
Function at 0x140001bfc
Capabilities:
Parse pe header

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

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
push r9
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00474440]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00474450]
mov dword [rax], 1
mov rax, qword [0x00474460]
mov dword [rax], 1
mov rax, qword [0x00474430]
mov dword [rax], 1
mov rax, qword [0x004742c0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00474420]
mov dword [0x00487008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00474360]
mov qword [rdx], rax
mov rdx, qword [0x00474350]
mov qword [rdx], rax
mov rax, qword [0x004743e0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00473be0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x40e9f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00487164]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40eb0a
mov rax, qword [0x00487168]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40ea3e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40eaf0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40ea22
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40eb42
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00487168]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00487168]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40eb25
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40eae9
sub eax, 0x40
and eax, 0xffffffbf
je 0x40eae9
mov r9, rbp
add r9, qword [0x00487168]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40eb11
add dword [0x00487164], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40ea4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00487168]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x40f720
Capabilities:
Parse pe header

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

Function at 0x40f740
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 0x40f781
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40f778
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40f783
add rax, 0x28
cmp rax, r9
jne 0x40f764
xor eax, eax
repz ret

Function at 0x40f830
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004742c0]
cmp word [rbx], 0x5a4d
je 0x40f850
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40f844
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection