joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001a6f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
cmp qword [0x18007b9a8], 0
jne 0x18001a81b
cmp qword [0x18007b980], 0
jne 0x18001a81b
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x336e6977
mov dword [rbp - 0x4c], 0x642e7532
mov word [rbp - 0x48], 0x6c6c
mov byte [rbp - 0x46], 0
mov dword [rbp - 0x20], 0x7355744e
mov dword [rbp - 0x1c], 0x65537265
mov dword [rbp - 0x18], 0x72754374
mov dword [rbp - 0x14], 0x50726f73
mov word [rbp - 0x10], 0x736f
mov byte [rbp - 0xe], 0
mov dword [rbp - 0x40], 0x72657375
mov dword [rbp - 0x3c], 0x642e3233
mov word [rbp - 0x38], 0x6c6c
mov byte [rbp - 0x36], 0
mov dword [rbp - 0x30], 0x43746553
mov dword [rbp - 0x2c], 0x6f737275
mov dword [rbp - 0x28], 0x736f5072
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18001a7ff
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [rax], 0xff
jne 0x18001a7b5
cmp byte [rax + 1], 0x25
je 0x18001a7c1
cmp byte [rax + 1], 0xff
jne 0x18001a7e1
cmp byte [rax + 2], 0x25
jne 0x18001a7e1
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18007b980], rax
jmp 0x18001a7ff
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18007b9a8], rax
cmp qword [0x18007b9a8], 0
jne 0x18001a81b
cmp qword [0x18007b980], 0
jne 0x18001a81b
xor eax, eax
add rsp, 0x70
pop rbp
ret
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x18001fac0
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rdx, qword [0x18007c0c8]
mov rax, qword [0x18007c0c0]
xor ecx, ecx
sub rdx, rax
sar rdx, 2
test edx, edx
je 0x18001fce1
cmp dword [rax], 0x6435437f
je 0x18001fb05
inc ecx
add rax, 4
cmp ecx, edx
jb 0x18001fae8
mov eax, 1
add rsp, 0x60
pop rbp
ret
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x6e65706f
mov dword [rbp - 0x1c], 0x32336c67
mov dword [rbp - 0x18], 0x6c6c642e
mov byte [rbp - 0x14], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18001fce1
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x40], 0x65526c67
mov dword [rbp - 0x3c], 0x69506461
mov qword [rbp - 0x38], 0x736c6578
mov qword [rbp - 0x30], 0
mov dword [rbp - 0x28], 0
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x40], 0x536c6777
mov dword [rbp - 0x3c], 0x42706177
mov dword [rbp - 0x38], 0x65666675
mov qword [rbp - 0x34], 0x7372
mov qword [0x18007bae0], rax
mov qword [rbp - 0x2c], 0
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x40], 0x536c6777
mov dword [rbp - 0x3c], 0x4c706177
mov dword [rbp - 0x38], 0x72657961
mov dword [rbp - 0x34], 0x66667542
mov qword [0x18007bb28], rax
mov qword [rbp - 0x30], 0x737265
mov dword [rbp - 0x28], 0
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x40], 0x436c6777
mov dword [rbp - 0x3c], 0x74616572
mov dword [rbp - 0x38], 0x6e6f4365
mov qword [rbp - 0x34], 0x74786574
mov qword [0x18007bb48], rax
mov qword [rbp - 0x2c], 0
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x40], 0x446c6777
mov dword [rbp - 0x3c], 0x74656c65
mov dword [rbp - 0x38], 0x6e6f4365
mov qword [rbp - 0x34], 0x74786574
mov qword [0x18007bad8], rax
mov qword [rbp - 0x2c], 0
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x40], 0x4d6c6777
mov dword [rbp - 0x3c], 0x43656b61
mov dword [rbp - 0x38], 0x65727275
mov qword [rbp - 0x34], 0x746e
mov qword [0x18007baf8], rax
mov qword [rbp - 0x2c], 0
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18007bb40], rax
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x18001fec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rdx, qword [0x18007c0c8]
mov rax, qword [0x18007c0c0]
xor ecx, ecx
sub rdx, rax
sar rdx, 2
test edx, edx
je 0x18001ffce
cmp dword [rax], 0x264d4161
je 0x18001ff05
inc ecx
add rax, 4
cmp ecx, edx
jb 0x18001fee8
mov eax, 1
add rsp, 0x60
pop rbp
ret
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x6562696c
mov dword [rbp - 0x3c], 0x642e6c67
mov word [rbp - 0x38], 0x6c6c
mov byte [rbp - 0x36], 0
mov dword [rbp - 0x20], 0x4762696c
mov dword [rbp - 0x1c], 0x7653454c
mov dword [rbp - 0x18], 0x6c642e32
mov word [rbp - 0x14], 0x6c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18001ffce
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18001ffce
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x10], 0x536c6765
mov dword [rbp - 0xc], 0x42706177
mov dword [rbp - 8], 0x65666675
mov word [rbp - 4], 0x7372
mov byte [rbp - 2], 0
mov dword [rbp - 0x30], 0x65526c67
mov dword [rbp - 0x2c], 0x69506461
mov dword [rbp - 0x28], 0x736c6578
mov byte [rbp - 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x20]
mov qword [0x18007bac0], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18007bb08], rax
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x1800201a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, qword [0x18007c0c8]
mov rax, qword [0x18007c0c0]
xor ebx, ebx
sub rdx, rax
mov rdi, rcx
mov r8d, ebx
sar rdx, 2
test edx, edx
je 0x1800201e4
mov rcx, rax
nop
cmp dword [rcx], 0x5f141e32
je 0x180020228
inc r8d
add rcx, 4
cmp r8d, edx
jb 0x1800201d0
mov dword [0x18007ba5c], ebx
mov r8d, ebx
test edx, edx
je 0x180020208
mov rcx, rax
cmp dword [rcx], 0x4766a246
je 0x180020234
inc r8d
add rcx, 4
cmp r8d, edx
jb 0x1800201f4
mov r8d, ebx
test edx, edx
je 0x180020286
mov rcx, rax
cmp dword [rcx], 0x5f141e32
je 0x180020234
inc r8d
add rcx, 4
cmp r8d, edx
jb 0x180020212
jmp 0x180020286
mov dword [0x18007ba5c], 1
jmp 0x1800201ea
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x61726464
mov dword [rsp + 0x24], 0x6c642e77
mov word [rsp + 0x28], 0x6c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18002027f
mov ecx, dword [rdi + 0x1000438]
call fcn.18001db30
mov qword [0x18007baf0], rax
mov ecx, dword [rdi + 0x100043c]
call fcn.18001db30
mov qword [0x18007bb30], rax
mov rax, qword [0x18007c0c0]
mov rcx, qword [0x18007c0c8]
sub rcx, rax
sar rcx, 2
test ecx, ecx
je 0x180020315
cmp dword [rax], 0x4766a2c9
je 0x1800202ba
inc ebx
add rax, 4
cmp ebx, ecx
jb 0x180020298
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x39643364
mov dword [rsp + 0x24], 0x6c6c642e
mov byte [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180020315
mov ecx, dword [rdi + 0x100042c]
call fcn.18001dbd0
mov qword [0x18007bb10], rax
mov ecx, dword [rdi + 0x1000430]
call fcn.18001dbd0
mov qword [0x18007bad0], rax
mov ecx, dword [rdi + 0x1000434]
call fcn.18001dbd0
mov qword [0x18007bae8], rax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180026380
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x48
xor r8d, r8d
lea rax, [r11 + 8]
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rax
mov qword [r11 + 8], r8
test edx, edx
je 0x1800263f8
lea rax, [r11 + 0x10]
mov dword [r11 + 0x10], r8d
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov dword [r11 - 0x28], r8d
lea r8, [0x180026420]
xor edx, edx
xor ecx, ecx
mov qword [r11 - 8], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp eax, 0xffffffff
je 0x1800263e9
test rax, rax
je 0x1800263e9
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
call rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x180026d20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x98
mov ebx, 0xc00000
mov rsi, rcx
mov r15, rdx
mov ecx, ebx
xor r14d, r14d
mov qword [rbp - 0x59], rbx
call fcn.180003210
mov r13, rax
test rax, rax
jne 0x180026d76
add rsp, 0x98
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret
cmp rsi, r15
ja 0x180026f28
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x88], r12
nop
xor eax, eax
lea rdx, [rbp - 0x49]
mov ecx, esi
lea r8d, [rax + 0x30]
mov qword [rbp - 0x49], 0
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x180026f18
cmp dword [rbp - 0x29], 0x1000
mov rdi, qword [rbp - 0x31]
mov r12, qword [rbp - 0x49]
mov qword [rbp - 0x51], rdi
jne 0x180026f07
test dword [rbp - 0x25], 0x101
jne 0x180026f07
cmp rbx, rdi
jae 0x180026e22
mov edx, edi
mov rcx, r13
mov rbx, r13
call fcn.180003cd4
mov r13, rax
test rax, rax
jne 0x180026e1e
test rbx, rbx
je 0x180026e15
mov rcx, rbx
call fcn.1800031d0
lea rsi, [rdi + r12]
jmp 0x180026f0b
mov qword [rbp - 0x59], rdi
mov r8d, edi
mov rdx, r13
mov rcx, r12
call fcn.1800280b0
test eax, eax
je 0x180026f07
mov eax, dword [rbp + 0x4f]
sub esi, r12d
mov r15d, edi
sub r15d, eax
add esi, r13d
add r15d, r13d
cmp esi, r15d
jae 0x180026f03
nop word [rax + rax]
mov ecx, dword [rbp + 0x67]
mov r8, qword [rbp + 0x5f]
mov rdx, qword [rbp + 0x57]
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov ecx, esi
mov ebx, esi
call qword [rbp + 0x8f]
cmp eax, 1
jne 0x180026eed
mov eax, r13d
sub rbx, rax
add rbx, r12
cmp rbx, qword [rbp + 0x47]
ja 0x180026eed
lea eax, [r14 + 0x12]
mov dword [rbp - 0x61], 0x3649257c
mov word [rbp - 0x5d], 0x5834
mov byte [rbp - 0x5b], 0
mov dword [rbp + 0x3f], 0x34364925
mov word [rbp + 0x43], 0x58
cmp eax, 0xf4240
jae 0x180026eed
mov edi, r14d
mov r9, rbx
mov edx, 0x12
add rdi, qword [rbp + 0x6f]
lea r8, [rbp - 0x61]
mov rcx, rdi
test r14d, r14d
jne 0x180026ed8
lea r8, [rbp + 0x3f]
call fcn.180003964
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x180026ee1
add r14d, eax
add esi, dword [rbp + 0x87]
mov eax, dword [rbp + 0x4f]
cmp esi, r15d
jb 0x180026e60
mov rdi, qword [rbp - 0x51]
mov r15, qword [rbp + 0x47]
lea rsi, [r12 + rdi]
mov rbx, qword [rbp - 0x59]
cmp rsi, r15
jbe 0x180026d90
mov rdi, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
test r13, r13
je 0x180026f35
mov rcx, r13
call fcn.1800031d0
mov eax, 1
add rsp, 0x98
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800274e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp rcx, rdx
ja 0x180027568
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r9
mov r9, rcx
mov ecx, dword [r8]
lea eax, [rcx + 0x12]
mov rbx, r8
mov dword [rsp + 0x38], 0x3649257c
mov word [rsp + 0x3c], 0x5834
mov byte [rsp + 0x3e], 0
mov dword [rsp + 0x30], 0x34364925
mov word [rsp + 0x34], 0x58
cmp eax, 0xf4240
jae 0x18002755e
mov edx, 0x12
lea r8, [rsp + 0x38]
test ecx, ecx
jne 0x18002753f
lea r8, [rsp + 0x30]
add rcx, rdi
call fcn.180003964
mov edx, dword [rbx]
or rax, 0xffffffffffffffff
lea rcx, [rdi + rdx]
inc rax
cmp byte [rcx + rax], 0
jne 0x180027551
add eax, edx
mov dword [rbx], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
repz ret

Function at 0x180028020
Capabilities:
Allocate or change rwx memory

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
movsxd rsi, r8d
lea r9, [rsp + 0x58]
lea r8d, [rbx + 0x40]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002808c
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.1800029a0
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x58]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, 1
mov dword [rsp + 0x20], ebx
mov eax, ebx
jmp 0x180028094
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1800359e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
xor edi, edi
cmp dword [0x18007c0a0], 0x40
mov rbp, r8
mov rsi, rdx
mov r14, rcx
mov ebx, edi
jae 0x180035ba0
mov rax, qword [0x18007c0a8]
test rax, rax
je 0x180035a29
call rax
mov rbx, rax
test rax, rax
jne 0x180035b0f
add rsi, r14
mov eax, 0x80000000
cmp rsi, rax
jae 0x180035a3d
mov esi, 1
jmp 0x180035a44
sub rsi, 0x7fff0000
add rbp, r14
cmp rbp, 0xffffffff80000000
jae 0x180035a59
add rbp, 0x7ff80000
jmp 0x180035a60
mov rbp, 0xfffffffffff80000
xor edx, edx
lea rcx, [rsp + 0x6c]
mov dword [rsp + 0x68], edi
lea r8d, [rdx + 0x2c]
call fcn.180008040
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rsi, rbp
jae 0x180035ba0
nop dword [rax + rax]
lea rdx, [rsp + 0x38]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180035b06
cmp dword [rsp + 0x58], 0x10000
jne 0x180035af7
mov rax, qword [rsp + 0x50]
cmp rax, 0xa8
jb 0x180035af7
mov edx, dword [rsp + 0x90]
mov ecx, edx
cmp rax, rdx
jb 0x180035af7
lea eax, [rdx - 1]
xor edx, edx
add rax, rsi
div rcx
imul rax, rcx
test rax, rax
je 0x180035b33
cmp eax, 0x10000
jae 0x180035b33
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rdi
mov rsi, qword [rsp + 0x38]
add rsi, qword [rsp + 0x50]
cmp rsi, rbp
jb 0x180035a90
test rbx, rbx
je 0x180035ba0
lea rcx, [0x18007c180]
mov rax, rcx
nop dword [rax]
cmp qword [rax], 0
je 0x180035b80
inc edi
add rax, 8
cmp edi, 0x40
jb 0x180035b20
jmp 0x180035ba0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0xd8]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x30], 0xa8
mov dword [rsp + 0x20], 0x3000
call fcn.180012250
test eax, eax
js 0x180035af4
mov rbx, qword [rsp + 0xd8]
test rbx, rbx
jne 0x180035b0f
jmp 0x180035af7
inc dword [0x18007c0a0]
mov eax, edi
mov qword [rcx + rax*8], rbx
mov rax, qword [0x18007bf98]
test rax, rax
je 0x180035ba0
mov rdx, rbx
mov rcx, r14
call rax
lea r11, [rsp + 0xa0]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180036c50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15d, r8d
mov r13d, edx
movsxd rsi, ecx
mov eax, 1
xchg dword [0x18007c0a4], eax
cmp eax, 1
jne 0x180036cbb
nop word [rax + rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x18007c0a4], eax
cmp eax, 1
je 0x180036ca0
mov r14, rsi
lea r12, [0x180000000]
shl r14, 8
test r13d, r13d
je 0x180036cfb
lea rax, [r12 + 0x7c380]
add rax, r14
or rdi, 0xffffffffffffffff
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], 0
jne 0x180036ce0
test rcx, rcx
je 0x180036d1b
xor ebx, ebx
xchg dword [0x18007c0a4], ebx
jmp 0x180036e96
lea rax, [r12 + 0x7ce80]
add rax, r14
or rdi, 0xffffffffffffffff
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x180036d10
jmp 0x180036ce9
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp - 0x2f]
call fcn.180008040
mov dword [rbp - 0x30], 0x61636f4c
mov word [rbp - 0x2c], 0x5c6c
mov byte [rbp - 0x2a], 0
mov dword [rbp + 0x118], 0x4e565354
mov byte [rbp + 0x11c], 0
lea r8, [rbp + 0x118]
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x30]
call fcn.180003440
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
cmp byte [rbp - 0x30], bl
jne 0x180036d8b
mov r8d, ebx
jmp 0x180036d9b
lea rax, [rbp - 0x30]
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x180036d92
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x20]
call fcn.180001380
nop
test r15d, r15d
jne 0x180036dbf
mov word [rbp - 0x60], 0x6425
mov byte [rbp - 0x5e], r15b
lea rdx, [rbp - 0x60]
jmp 0x180036dfb
cmp r15d, 1
jne 0x180036ddb
mov dword [rsp + 0x60], 0x25256425
mov word [rsp + 0x64], 0x64
lea rdx, [rsp + 0x60]
jmp 0x180036dfb
cmp r15d, 2
jne 0x180036e07
mov dword [rsp + 0x40], 0x25256425
mov dword [rsp + 0x44], 0x64252564
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x40]
mov r8d, esi
lea rcx, [rbp - 0x80]
call fcn.180002430
cmp byte [rbp - 0x80], 0
jne 0x180036e12
mov rdi, rbx
jmp 0x180036e1f
lea rax, [rbp - 0x80]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180036e16
mov r8, rdi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180002490
lea r8, [rsp + 0x20]
mov edx, pe_nt_image_headers64
test r13d, r13d
lea rdi, [r12 + 0x7c380]
jne 0x180036e4f
lea rdi, [r12 + 0x7ce80]
cmp qword [rsp + 0x38], 0x10
cmovae r8, qword [rsp + 0x20]
add rdi, r14
mov rcx, rdi
call fcn.180003354
mov ecx, ebx
xchg dword [0x18007c0a4], ecx
cmp qword [rsp + 0x38], 0x10
jb 0x180036e80
mov rcx, qword [rsp + 0x20]
call fcn.180003020
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], 0
mov rax, rdi
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400039b0
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 0x1400039d8
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 0x1400039fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003a00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003a59
test ecx, ecx
jle 0x140003a39
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 0x140003a59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003a59
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 0x140003a80
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 0x140003aa2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003ab8
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 0x140003ad4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003ad6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003b12
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 0x140003bae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003b4d
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 0x140003b8e
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 0x140003bae
cmp rbx, rax
ja 0x140003b60
test rbx, rbx
je 0x140003bae
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 0x140003fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000400d
xor eax, eax
jmp 0x140004179
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004047
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004047
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 0x140004179
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000416c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000408a
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 0x1400040b5
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 0x140004171
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 0x140004124
sub eax, 1
je 0x140004124
cmp eax, 2
jne 0x14000416c
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 0x140004171
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004152
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 0x14000416c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004171
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001ea00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret