joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060860
Capabilities:
Create pipe
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
movaps xmmword [rbp], xmm6
mov qword [rbp - 0x20], rcx
loopne 0x1400608cc
mov esi, 0xe1a92ae0
jp 0x1400608e2
pop rbp
in al, 0x49
mov esp, 0x4873303
mov al, 0x9f
outsd dx, dword es:[rsi]

Function at 0x14006144b
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov rbp, rsp
mov rdi, rdx
mov rsi, rcx
mov eax, 0x10
call fcn.140074a70
sub rsp, rax
mov rbx, rsp
mov eax, 0x10
call fcn.140074a70
sub rsp, rax
mov r15, rsp
mov eax, 0x10
call fcn.140074a70
sub rsp, rax
mov r12, rsp
cmp qword [rdx], 0
jne 0x1400615f2
mov r14, qword [rdi + 0x18]
mov r8, qword [r14]
mov rdx, qword [r14 + 0x10]
cmp r8, rdx
jne 0x1400614e8
movabs rax, 0x82403c3558afc288
lea rcx, [rax + 0x10]
xor rcx, rax
movabs rax, 0x6d766873497ee4ac
lea rdx, [rax + 1]
xor rdx, rax
test r8, r8
cmove rdx, rcx
sub rsp, 0x20
mov rcx, r14
call fcn.1400216ed
add rsp, 0x20
mov r8, qword [r14]
mov rdx, qword [r14 + 0x10]
sub r8, rdx
add rdx, qword [r14 + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbx], 0
mov rcx, qword [rdi + 0x20]
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov r9, rbx
call qword [sym.imp.kernel32.dll_ReadFile]
add rsp, 0x30
test eax, eax
jne 0x140061579
sub rsp, 0x20
call qword [sym.imp.kernel32.dll_GetLastError]
add rsp, 0x20
shl rax, 0x20
movabs rdx, 0xb4832bfe7eb45b5
lea rcx, [rdx + 2]
xor rcx, rdx
or rcx, rax
movabs rax, 0xffffffff00000000
and rax, rcx
movabs rdx, 0x6d00000000
cmp rax, rdx
je 0x14006158b
movabs r8, 0x3e500000000
mov rdx, r15
cmp rax, r8
je 0x1400615a2
jmp 0x1400615c8
mov ecx, dword [rbx]
mov eax, 2
test rcx, rcx
jne 0x1400615d5
mov byte [rsi + 1], 0
jmp 0x1400615e0
movabs rax, 0xb64c012880115b0c
lea rdx, [rax + 1]
xor rdx, rax
mov qword [r15], rdx
mov rdx, r12
mov qword [rdx], 0
sub rsp, 0x20
call fcn.14004df29
add rsp, 0x20
mov rax, qword [r15]
mov rcx, qword [r12]
test rax, rax
je 0x1400615d0
cmp rax, 2
jne 0x14006157b
mov qword [rsi + 8], rcx
mov al, 1
jmp 0x1400615e2
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
ud2

Function at 0x140067f3d
Capabilities:
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
mov eax, 0x10
call fcn.140074a70
sub rsp, rax
mov r9, rsp
cmp rcx, 0xffffffffffffffff
je 0x140067fb5
mov dword [r9], 1
sub rsp, 0x30
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
add rsp, 0x30
cmp eax, 0xffffffff
jne 0x140067fae
sub rsp, 0x20
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
add rsp, 0x20
mov ecx, eax
shl rcx, 0x20
movabs rdx, 0x65340da5b24fe708
lea rax, [rdx + 2]
xor rax, rdx
or rax, rcx
jmp 0x140067fb0
xor eax, eax
mov rsp, rbp
pop rbp
ret
ud2
Function at 0x14006bfb9
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov edi, r9d
mov rbx, r8
movabs rax, 0x8000000000000000
cmp qword [rcx], rax
jne 0x14006c039
mov r15, qword [rcx + 8]
xor ecx, ecx
mov eax, 2
lock cmpxchg qword [r15 + 0x10], rcx
je 0x14006c085
test rbx, rbx
jne 0x14006bffd
test edi, edi
je 0x14006c085
lea rsi, [r15 + 0x20]
mov cl, 1
xor eax, eax
lock cmpxchg byte [r15 + 0x20], cl
jne 0x14006c108
mov ecx, 1
xor eax, eax
lock cmpxchg qword [r15 + 0x10], rcx
jne 0x14006c059
lea r14, [r15 + 0x18]
call fcn.14005a6a3
mov r9d, 0x3b9aca00
add rax, rbx
jae 0x14006c091
jmp 0x14006c0be
cmp qword [rdx], 0
je 0x14006c115
mov r8, rbx
mov r9d, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14006340d
movabs rcx, 0x10b5b7f239a52078
lea rdx, [rcx + 2]
xor rdx, rcx
cmp rax, rdx
jne 0x14006c115
xor eax, eax
xchg qword [r15 + 0x10], rax
xor ecx, ecx
mov al, 1
lock cmpxchg byte [r15 + 0x20], cl
jne 0x14006c0f5
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
add edx, edi
cmp edx, 0x3b9aca00
jb 0x14006c0bb
cmp rax, 0xffffffffffffffff
je 0x14006c0be
movabs rcx, 0x9c09e45ab3121ed6
lea r8, [rcx + 1]
xor r8, rcx
add rax, r8
add edx, 0xc4653600
mov r9d, edx
mov rcx, r14
mov rdx, rsi
mov r8, rax
call fcn.14004bf9f
xor eax, eax
xchg qword [r15 + 0x10], rax
dec rax
movabs rcx, 0x78ceaaa00b6ce51d
lea rdx, [rcx + 2]
xor rdx, rcx
cmp rax, rdx
jae 0x14006c115
xor ecx, ecx
mov al, 1
lock cmpxchg byte [rsi], cl
je 0x14006c085
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14008824c
mov rcx, rsi
call fcn.140087d85
jmp 0x14006c011
ud2
Function at 0x14006cf70
Capabilities:
Get number of processors

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp qword [rcx + 0x20], 0
jne 0x14006d0ad
movabs rax, 0x366edfb515e3c444
lea rdx, [rax + 0x40]
xor rdx, rax
movabs rcx, 0xeb93adb0a90af85e
lea rax, [rcx + 0x120]
xor rax, rcx
cmp qword [rsi], 0
mov rcx, qword [rsi + 8]
cmove rax, rdx
cmp dword [rcx + rax + 0x80], 0x3b9aca00
je 0x14006d0bc
mov edi, dword [rcx + rax + 0x60]
mov eax, dword [0x1400a5be8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x108]
test rax, rax
je 0x14006cff1
cmp eax, 1
je 0x14006d01e
jmp 0x14006d04e
mov eax, dword [0x1400a5be8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rbx, [rax + 0xb8]
lea rdx, [0x1400670f3]
mov rcx, rbx
call fcn.14005aa99
mov byte [rbx + 0x50], 1
mov eax, dword [0x1400a5be8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0xf0]
test rcx, rcx
je 0x14006d04e
xor eax, eax
cmp qword [rcx], 0
je 0x14006d055
mov rax, qword [rcx + 8]
mov eax, dword [rax + 0x18]
jmp 0x14006d055
mov ecx, edi
call fcn.140069b00
test edi, edi
je 0x14006d0bc
xor edx, edx
div edi
mov edi, edx
cmp qword [rsi + 0x20], 0
je 0x14006d076
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14006d076
mov rcx, qword [rsi + 0x50]
call qword [rax + 0x18]
movabs rax, 0xbb7393767623722e
lea rcx, [rax + 1]
xor rcx, rax
mov qword [rsi + 0x20], rcx
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
mov qword [rsi + 0x40], 0xffffffffffffffff
movups xmmword [rsi + 0x48], xmm0
movups xmmword [rsi + 0x51], xmm0
mov dword [rsi + 0x68], edi
add rsi, 0x28
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
ud2

Function at 0x140074f78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140074fc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140074fc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140074fc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140074fc2
cmp dword [rcx + 0x84], 0xe
jbe 0x140074fc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140074fc4
xor al, al
add rsp, 0x28
ret

Function at 0x14007af80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14007ad7c
Function at 0x14007e1f4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14007e224
xor eax, eax
jmp 0x14007e2e7
mov rbp, rbx
cmp word [rax], si
je 0x14007e249
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007e230
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007e22c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14007e114
movsxd r14, eax
test eax, eax
jne 0x14007e287
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14007e21d
mov rcx, r14
call fcn.14007f0d0
mov rdi, rax
test rax, rax
jne 0x14007e2a0
xor ecx, ecx
call fcn.14007c774
jmp 0x14007e27c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14007e114
test eax, eax
jne 0x14007e2d1
mov rcx, rdi
call fcn.14007c774
jmp 0x14007e2db
xor ecx, ecx
call fcn.14007c774
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140081a40
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007d1e4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140081aca
cmp byte [rbp - 0x21], r15b
je 0x140081ac5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140081b00
call fcn.14007f8e0
test eax, eax
jne 0x140081aec
cmp byte [rbp - 0x21], r15b
je 0x140081ae4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140081b00
cmp byte [rbp - 0x21], r15b
je 0x140081afd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14007c7c4
test eax, eax
jne 0x140081ba0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007d1e4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140081b3f
cmp byte [rbp - 0x21], r15b
je 0x140081b74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140081b74
call fcn.14007f8e0
test eax, eax
jne 0x140081b60
cmp byte [rbp - 0x21], r15b
je 0x140081b59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140081b74
cmp byte [rbp - 0x21], r15b
je 0x140081b71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14007c7c4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140081ba0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140081ba3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140081bb1
mov rcx, rdi
call fcn.14007c774
cmp byte [rbp + 0x3f], r15b
je 0x140081bc0
mov rcx, qword [rbp + 0x27]
call fcn.14007c774
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140084740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140084768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140084768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405620]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405630]
mov dword [rax], 1
mov rax, qword [0x00405640]
mov dword [rax], 1
mov rax, qword [0x00405610]
mov dword [rax], 1
mov rax, qword [0x00405500]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00405600]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004055c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004054b0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401550
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
mov eax, 0x1070
call fcn.00402e10
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1000], rcx
mov qword [rbp + 0x1008], rdx
mov dword [rbp + 0xfec], 0
lea rax, [rbp - 0x40]
mov r8d, 0x1000
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rcx, str.File_Downloader
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xfe0], rax
cmp qword [rbp + 0xfe0], 0
jne 0x4015f0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.InternetOpen_failed_with_error_code__lu._n
call sym.printf
mov eax, 0
jmp 0x4017d5
mov rax, qword [rbp + 0xfe0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x1000]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfd8], rax
cmp qword [rbp + 0xfd8], 0
jne 0x40166c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.InternetOpenUrl_failed_with_error_code__lu._n
call sym.printf
mov rax, qword [rbp + 0xfe0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x4017d5
mov rax, qword [rbp + 0x1008]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0xfd0], rax
cmp qword [rbp + 0xfd0], 0xffffffffffffffff
jne 0x401753
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.CreateFile_failed_with_error_code__lu._n
call sym.printf
mov rax, qword [rbp + 0xfd8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfe0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, 0
jmp 0x4017d5
mov r8d, dword [rbp + 0xfcc]
lea rdx, [rbp + 0xfc8]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp + 0xfd0]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
jne 0x401753
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.WriteFile_failed_with_error_code__lu._n
call sym.printf
jmp 0x40178c
lea rdx, [rbp + 0xfcc]
lea rax, [rbp - 0x40]
mov rcx, qword [rbp + 0xfd8]
mov r9, rdx
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x40178c
mov eax, dword [rbp + 0xfcc]
test eax, eax
jne 0x401705
mov dword [rbp + 0xfec], 1
mov rax, qword [rbp + 0xfd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0xfd8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfe0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov eax, dword [rbp + 0xfec]
add rsp, 0x1070
pop rbp
ret
Function at 0x4017de
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], rcx
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x80]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x401883
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.CreateProcess_failed_with_error_code__lu._n
call sym.printf
jmp 0x4018b9
mov rax, qword [rbp - 0x30]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe8
pop rdi
pop rbp
ret

Function at 0x4018c3
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
test eax, eax
je 0x4018ee
lea rcx, str.File_deleted_successfully.
call sym.puts
jmp 0x401905
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Failed_to_delete_file_with_error_code__lu._n
call sym.printf
nop
add rsp, 0x20
pop rbp
ret
Function at 0x402a50
Capabilities:
Parse pe header

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

Function at 0x402a70
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 0x402ab1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402aa8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402ab3
add rax, 0x28
cmp rax, r9
jne 0x402a94
xor eax, eax
ret

Function at 0x402b50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405500]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402bbd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402bbd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402bbd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402bb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402bbf
add rax, 0x28
cmp rax, r9
jne 0x402ba0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402cc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405500]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402ce0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cd8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402d3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d44
add rax, 0x28
cmp rax, r9
jne 0x402d20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402d60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405500]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402dce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402dce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402dce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402dce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402dc5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402dd5
add rcx, 0x28
cmp rcx, rax
jne 0x402db0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402de8
jmp 0x402dce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402df6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402dce
test r9d, r9d
jg 0x402de0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x140010110
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001016d
lea rbx, [0x14025d580]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140010154
cmp r10, 2
jb 0x140010154
cmp byte [r9], r8b
jne 0x140010154
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140010130
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400101af
lea rbx, [0x14025d580]
cmp r8b, 0x23
jne 0x140010193
cmp byte [r9], r8b
jne 0x140010193
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140010180
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400102b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x1400102ce
mov qword [r8], r14
lea rdx, [0x14025d010]
call fcn.1400101c0
mov rbx, rax
test rax, rax
jne 0x1400102f3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001041d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001041d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001041d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001041d
cmp rdi, 0xffffffffffffffff
je 0x14001041d
mov rcx, rdi
call fcn.1400167c0
mov rbp, rax
test rax, rax
je 0x14001041d
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14001040a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1402dc618]
test r8, r8
je 0x1400103ff
movsx rdx, word [r8 + 0x62b0]
lea rcx, [r8 + 0x62b4]
mov r9d, dword [r8 + 0x40a0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400103f4
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x62b0], cx
movsx rax, cx
lea rcx, [r8 + 0x62b4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x62ac]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140010426
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140010418
mov qword [rsi], rdi
mov rax, rbp
jmp 0x140010428
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret