joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100020db8
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xc0
mov rax, qword [0x100033380]
xor rax, rsp
mov qword [rsp + 0xb0], rax
test rdx, rdx
mov rbx, rdx
mov r12, rcx
jne 0x100020df1
xor eax, eax
jmp 0x100020f65
cmp word [rdx], 0
je 0x100020dea
mov rcx, rdx
call fcn.10001f99c
test rax, rax
mov rdi, rax
je 0x100020e28
mov dx, 0x5c
mov rcx, rax
call fcn.10002132c
test rax, rax
je 0x100020e1e
and word [rax], 0
jmp 0x100020e28
mov rcx, rdi
call fcn.10001f924
xor edi, edi
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
call fcn.100028c50
lea r9, [rsp + 0x30]
lea r8, [0x100019624]
lea rdx, [0x100019f18]
lea rcx, [0x1000196a0]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
mov r11d, eax
je 0x100020ed9
test rdi, rdi
je 0x100020ec7
mov rcx, rdi
call fcn.10001f958
lea rsi, [rax + r11 + 2]
lea rcx, [rsi + rsi]
call fcn.10001f8ac
test rax, rax
mov rbx, rax
je 0x100020ec7
lea rax, [rsp + 0x30]
lea r8, [0x100019f08]
mov r9, rdi
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.10001ac04
test eax, eax
je 0x100020ebe
mov rcx, rbx
call fcn.10001f924
xor ebx, ebx
test rbx, rbx
jne 0x100020f50
lea rcx, [rsp + 0x30]
call fcn.10001f99c
test rax, rax
mov rbx, rax
jne 0x100020f50
lea rcx, [0x100019f30]
call fcn.10001f99c
test rdi, rdi
mov rbx, rax
je 0x100020f5d
mov rcx, rdi
call fcn.10001f958
mov rcx, rbx
mov r9, rax
call fcn.10001f958
lea rbp, [r9 + rax + 2]
cmp rbp, 2
jbe 0x100020f50
lea rcx, [rbp + rbp]
call fcn.10001f8ac
test rax, rax
mov rsi, rax
je 0x100020f50
lea r8, [0x100019f08]
mov r9, rdi
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.10001ac04
test eax, eax
jne 0x100020f48
mov rcx, rbx
call fcn.10001f924
mov rbx, rsi
jmp 0x100020f50
mov rcx, rsi
call fcn.10001f924
test rdi, rdi
je 0x100020f5d
mov rcx, rdi
call fcn.10001f924
mov qword [r12 + 0x10], rbx
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.100021240
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x100021218
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x5980c081
jmp 0x10000e0ce
dec rcx
jmp 0x10000e0e9
jne 0x10000e0ce
jmp 0x10000e9c8
jmp 0x10000eeb3
jmp 0x10000ef6c
jmp 0x10000efa2
jmp 0x10000efef
jmp 0x10000f031
jmp 0x10000f08b
jmp 0x10000f0cb
jmp 0x10000f134
jmp 0x10000f154
jmp 0x10000f1c5
jmp 0x10000f20d
jmp 0x10000f26c
jmp 0x10000f2d0
jmp 0x10000f2e8
jmp 0x10000f349
jmp 0x10000f3ad
jmp 0x10000f41c
jmp 0x10000f468
jmp 0x10000f48f
jmp 0x10000f4fb
xor rcx, rcx
mov rdx, 0x6c91
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x10000f51b
pop rsi
add rsi, 0xe54
mov rdi, rax
mov rcx, 0x6c91
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.100023850
add rsp, 0x28
xor rcx, rcx
jmp 0x10000c08d
Function at 0x100021e00
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.100026d00
nop
cmp dword [0x100034c9c], 1
je 0x100021eb3
mov dword [0x100034c98], 1
mov byte [0x100034c54], dil
test ebx, ebx
jne 0x100021e9f
mov rcx, qword [0x100037250]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x100037248]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x100021e8c
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x100021e8c
mov rcx, qword [rbx]
test rcx, rcx
je 0x100021e8a
call rcx
jmp 0x100021e72
lea rdx, [0x1000174a8]
lea rcx, [0x100017490]
call fcn.100021c50
lea rdx, [0x1000174b8]
lea rcx, [0x1000174b0]
call fcn.100021c50
nop
test edi, edi
je 0x100021ec1
mov ecx, 8
call fcn.100026bcc
test edi, edi
jne 0x100021ee9
mov dword [0x100034c9c], 1
lea ecx, [rdi + 8]
call fcn.100026bcc
mov ecx, r12d
call fcn.100021bd4
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x100021e00

Function at 0x100021f28
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.100026d00
nop
cmp dword [0x100034c9c], 1
je 0x100021eb3
mov dword [0x100034c98], 1
mov byte [0x100034c54], dil
test ebx, ebx
jne 0x100021e9f
mov rcx, qword [0x100037250]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x100037248]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x100021e8c
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x100021e8c
mov rcx, qword [rbx]
test rcx, rcx
je 0x100021e8a
call rcx
jmp 0x100021e72
lea rdx, [0x1000174a8]
lea rcx, [0x100017490]
call fcn.100021c50
lea rdx, [0x1000174b8]
lea rcx, [0x1000174b0]
call fcn.100021c50
nop
test edi, edi
je 0x100021ec1
mov ecx, 8
call fcn.100026bcc
test edi, edi
jne 0x100021ee9
mov dword [0x100034c9c], 1
lea ecx, [rdi + 8]
call fcn.100026bcc
mov ecx, r12d
call fcn.100021bd4
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x100021e00

Function at 0x100021f38
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x100021e00
Function at 0x1000226b4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x100033120]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x1000226e7
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1000226d7
cmp edi, 0x17
jae 0x100022895
mov ebp, 3
mov ecx, ebp
call fcn.100027898
cmp eax, 1
je 0x10002284d
mov ecx, ebp
call fcn.100027898
test eax, eax
jne 0x10002271d
cmp dword [0x100033100], 1
je 0x10002284d
cmp ebx, 0xfc
je 0x100022895
lea rbx, [0x100034ca0]
mov ebp, 0x314
lea r8, [0x100017ad0]
mov rcx, rbx
mov rdx, rbp
call fcn.10002781c
test eax, eax
je 0x100022760
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10002478c
lea rdx, [0x100034cb9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x100034dbd], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000227b1
lea r8, [0x100017ab8]
lea rcx, [0x100034cb9]
mov edx, 0x2fb
call fcn.10002781c
test eax, eax
je 0x1000227b1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10002478c
lea r8, [0x100034cb9]
mov rdx, rbp
mov rcx, rbx
call fcn.100027788
test eax, eax
je 0x1000227dc
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10002478c
lea r8, [0x100017ab0]
mov rdx, rbp
mov rcx, rbx
call fcn.100027788
test eax, eax
je 0x100022807
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10002478c
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.100027788
test eax, eax
je 0x100022836
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10002478c
lea rdx, [0x100017a88]
mov r8d, 0x12010
mov rcx, rbx
call fcn.100027554
jmp 0x100022895
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x100022895
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x100022895
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x100022fbc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
cmp rax, rbx
mov rdi, rax
jne 0x100022fe4
xor eax, eax
jmp 0x100023030
cmp word [rdi], bx
je 0x100022ffb
add rax, 2
cmp word [rax], bx
jne 0x100022fe9
add rax, 2
cmp word [rax], bx
jne 0x100022fe9
sub eax, edi
add eax, 2
movsxd rbp, eax
mov rcx, rbp
call fcn.100025618
cmp rax, rbx
mov rsi, rax
je 0x100023024
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.100022010
mov rbx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1000237ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x1000237f6
cmp rcx, 0xffffffffffffffff
je 0x1000237f6
cmp word [rcx], 0x5a4d
jne 0x1000237ee
cmp dword [rcx + 0x3c], edx
jl 0x1000237ee
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1000237ee
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1000237f6
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1000239b3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100033380]
jne 0x10002125a
rol rcx, 0x10
test cx, 0xffff
jne 0x100021256
repz ret
ror rcx, 0x10
jmp 0x10002390c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100035280]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x100035378]
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 0x100023991
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, [0x100035280]
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 0x1000239b3
mov rax, qword [rsp + 0x88]
mov qword [0x100035378], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100035318], rax
mov rax, qword [0x100035378]
mov qword [0x1000351f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100035300], rax
mov dword [0x1000351e0], 0xc0000409
mov dword [0x1000351e4], 1
mov rax, qword [0x100033380]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100033388]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100017af0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x10002478c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1000247f7
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x100024817
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100017b18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x100027554
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.100023334
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
cmp qword [0x100035a28], rbp
mov rdi, rax
jne 0x100027687
lea rcx, [0x100017ca8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rsi, rax
jne 0x1000275b3
xor eax, eax
jmp 0x100027767
lea rdx, [0x100017c98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1000275ac
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x100017c88]
mov rcx, rsi
mov qword [0x100035a28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x100017c70]
mov rcx, rsi
mov qword [0x100035a30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x100035a38], rax
call fcn.100021c8c
test eax, eax
je 0x10002763a
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10002478c
cmp dword [rsp + 0x88], 2
jne 0x100027687
lea rdx, [0x100017c50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
test rax, rax
mov qword [0x100035a48], rax
je 0x100027687
lea rdx, [0x100017c38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x100035a40], rax
mov rcx, qword [0x100035a40]
cmp rcx, rdi
je 0x100027719
cmp qword [0x100035a48], rdi
je 0x100027719
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rsi, rax
je 0x1000276e4
mov rcx, qword [0x100035a48]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x1000276e4
test byte [rsp + 0x40], 1
jne 0x100027719
lea rcx, [rsp + 0x30]
call fcn.100021cd8
test eax, eax
je 0x100027706
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.10002478c
cmp dword [rsp + 0x30], 4
jb 0x100027713
bts ebx, 0x15
jmp 0x10002774d
bts ebx, 0x12
jmp 0x10002774d
mov rcx, qword [0x100035a30]
cmp rcx, rdi
je 0x10002774d
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rbp, rax
je 0x10002774d
mov rcx, qword [0x100035a38]
cmp rcx, rdi
je 0x10002774d
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x100035a28]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x10002a154
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x100033380]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x10002a25a
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x10002a1e2
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x10002a25a
mov eax, edx
not eax
and ecx, eax
je 0x10002a1fd
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x10002a25a
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x10002a25a
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x10002a25a
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002a25a
mov eax, 1
jmp 0x10002a25c
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.100021240
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret
Function at 0x2fc4d4e70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5f50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5872
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d590a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d58ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d58e2
cmp qword [rbp - 0x10], 0
je 0x2fc4d58e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d58a8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d590b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5a10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d5a38
mov eax, 0
jmp 0x2fc4d5a86
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 0x2fc4d5a61
mov eax, 0
jmp 0x2fc4d5a86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d5a81
mov eax, 0
jmp 0x2fc4d5a86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5a8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d5b0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5b01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d5b01
mov rax, qword [rbp - 8]
jmp 0x2fc4d5b1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d5ad4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140006600
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, r9
xor sil, sil
lea r14, [r9 + 0x10]
mov qword [r14], 0
mov rax, r9
cmp qword [r9 + 0x18], 0x10
jb 0x140006637
mov rax, qword [r9]
mov byte [rax], sil
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov ebp, 1
mov r9d, ebp
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000002
call qword [0x1401f0038]
test eax, eax
jne 0x14000675a
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x78], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Common_AppData
mov rcx, rbx
call qword [0x1401f0008]
mov ecx, dword [rsp + 0x68]
dec ecx
cmp ecx, ebp
ja 0x140006751
test eax, eax
jne 0x140006751
mov edx, dword [rsp + 0x70]
xor r8d, r8d
mov rcx, rdi
call fcn.140009a80
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400066d2
mov rax, qword [rdi]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.Common_AppData
mov rcx, qword [rsp + 0x60]
call qword [0x1401f0008]
test eax, eax
jne 0x140006751
mov rsi, qword [r14]
mov rax, rsi
cmp qword [rdi + 0x18], 0x10
jb 0x14000671d
mov rdx, qword [rdi]
dec rdx
add rdx, rsi
sub rdx, qword [rdi]
mov rdi, qword [rdi]
jmp 0x140006727
lea rdx, [rdi - 1]
add rdx, rsi
sub rdx, rdi
sub rax, rdx
cmp rax, 1
cmovb rbp, rax
lea rcx, [rdi + rdx]
sub rsi, rbp
mov r8, rsi
sub r8, rdx
inc r8
lea rdx, [rcx + rbp]
call fcn.1400c7640
mov qword [r14], rsi
mov sil, 1
mov rcx, rbx
call qword [section..rdata]
movzx eax, sil
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140027360
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [rcx]
mov r9, rdx
mov dword [rdx], eax
xor r10d, r10d
mov rax, qword [rcx + 4]
mov r8d, r10d
mov qword [rdx + 4], rax
mov rax, qword [rcx + 0xc]
mov qword [rdx + 0xc], rax
mov rax, qword [rcx + 0x14]
mov qword [rdx + 0x14], rax
mov eax, dword [rcx + 0x1c]
mov dword [rdx + 0x1c], eax
mov eax, dword [rcx + 0x20]
mov dword [rdx + 0x20], eax
mov eax, dword [rcx + 0x24]
mov dword [rdx + 0x24], eax
mov eax, dword [rcx + 0x28]
mov dword [rdx + 0x28], eax
add rdx, 0x2c
sub rcx, r9
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rcx + rdx]
inc r8d
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x104
jb 0x1400273b0
lea rdx, [r9 + 0x234]
nop
movzx eax, word [rcx + rdx]
add r10d, 0xe
mov word [rdx], ax
movzx eax, word [rcx + rdx + 2]
mov word [rdx + 2], ax
movzx eax, word [rcx + rdx + 4]
mov word [rdx + 4], ax
movzx eax, word [rcx + rdx + 6]
mov word [rdx + 6], ax
movzx eax, word [rcx + rdx + 8]
mov word [rdx + 8], ax
movzx eax, word [rcx + rdx + 0xa]
mov word [rdx + 0xa], ax
movzx eax, word [rcx + rdx + 0xc]
mov word [rdx + 0xc], ax
movzx eax, word [rcx + rdx + 0xe]
mov word [rdx + 0xe], ax
movzx eax, word [rcx + rdx + 0x10]
mov word [rdx + 0x10], ax
movzx eax, word [rcx + rdx + 0x12]
mov word [rdx + 0x12], ax
movzx eax, word [rcx + rdx + 0x14]
mov word [rdx + 0x14], ax
movzx eax, word [rcx + rdx + 0x16]
mov word [rdx + 0x16], ax
movzx eax, word [rcx + rdx + 0x18]
mov word [rdx + 0x18], ax
movzx eax, word [rcx + rdx + 0x1a]
mov word [rdx + 0x1a], ax
lea rdx, [rdx + 0x1c]
cmp r10d, 0xe
jb 0x1400273d0
ret