joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ed0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call sub.kernel32.dll_GetCommandLineW_1
mov rsi, rax
xor rax, rax
movzx rcx, word [rsi]
sub cx, 1
cmp cx, 0xffff
je 0x428f14
cmp cx, 0x20
jb 0x428f03
sub cx, 0x21
test cx, cx
jne 0x428f0e
jmp 0x428f09
test al, al
je 0x428f14
jmp 0x428f0e
test al, al
sete al
add rsi, 2
jmp 0x428ee4
nop
jmp 0x428f1b
add rsi, 2
movzx rcx, word [rsi]
lea rdx, [0x00428f44]
call fcn.0041b9f0
test al, al
jne 0x428f17
mov rcx, rbx
mov rdx, rsi
call fcn.0040b2f0
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x429060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call fcn.0040b250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42907e
test eax, 0x10
je 0x429083
xor rax, rax
jmp 0x429085
mov al, 1
add rsp, 0x28
ret
Function at 0x429960
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov rax, qword [rbp + 0x28]
movzx rbx, word [rax]
mov rax, qword [rbp + 0x28]
movzx rax, word [rax + 2]
mov word [rbp + 0x3c], ax
mov rax, qword [rbp + 0x28]
movzx rsi, word [rax + 4]
mov rax, qword [rbp + 0x28]
movzx rax, word [rax + 6]
mov word [rbp + 0x3e], ax
mov qword [rbp + 0x30], rdx
mov r13d, 1
mov rcx, rbp
mov edx, ebx
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.00429910
mov ebx, eax
mov rcx, qword [rbp + 0x30]
add rcx, 2
mov qword [rbp + 0x30], rcx
movzx rax, word [rbp + 0x3c]
add ax, word [rcx]
mov word [rbp + 0x3c], ax
add rcx, 2
mov qword [rbp + 0x30], rcx
add si, word [rcx]
add rcx, 2
mov qword [rbp + 0x30], rcx
mov rcx, rbp
movzx rdx, word [rbp + 0x3e]
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.00429910
mov word [rbp + 0x3e], ax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
mov edi, ebx
xor di, si
mov rcx, rbp
mov edx, edi
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.00429910
mov edi, eax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
movzx rax, word [rbp + 0x3c]
movzx rcx, word [rbp + 0x3e]
xor ax, cx
mov ecx, edi
add cx, ax
mov eax, ecx
mov rcx, rbp
mov edx, eax
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.00429910
mov rcx, qword [rbp + 0x30]
add rcx, 2
mov qword [rbp + 0x30], rcx
add di, ax
xor bx, ax
movzx rcx, word [rbp + 0x3e]
xor cx, di
mov word [rbp + 0x3e], cx
movzx rcx, word [rbp + 0x3c]
xor di, cx
xor si, ax
mov word [rbp + 0x3c], si
mov esi, edi
add r13d, 1
cmp r13d, 9
jne 0x4299a7
nop
mov rcx, rbp
mov edx, ebx
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.00429910
mov ebx, eax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x28]
mov word [rax], bx
mov rax, qword [rbp + 0x30]
add si, word [rax]
mov rax, qword [rbp + 0x28]
mov word [rax + 2], si
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
movzx rax, word [rbp + 0x3c]
mov rcx, qword [rbp + 0x30]
add ax, word [rcx]
mov rcx, qword [rbp + 0x28]
mov word [rcx + 4], ax
mov rax, qword [rbp + 0x30]
add rax, 2
mov qword [rbp + 0x30], rax
mov rcx, rbp
movzx rdx, word [rbp + 0x3e]
mov rax, qword [rbp + 0x30]
movzx r8, word [rax]
call fcn.00429910
mov rcx, qword [rbp + 0x28]
mov word [rcx + 6], ax
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x455fe0
Capabilities:
Parse pe header

Disassembly:
push rsi
push rbx
mov rax, rcx
movsxd r10, dword [rax + 0x3c]
lea rcx, [rcx + r10]
cmp word [rax], 0x5a4d
jne 0x455ffc
cmp dword [rcx], 0x4550
je 0x456004
mov eax, 1
jmp 0x456058
lea rax, [rcx + 0x108]
xor r10, r10
xor r11, r11
xor rbx, rbx
movzx esi, word [rcx + 6]
sub esi, 1
cmp ebx, esi
jg 0x45603f
add esi, 1
cmp dword [rax + 0x14], r10d
jbe 0x456034
mov r10d, dword [rax + 0x14]
mov r11d, dword [rax + 0x14]
add r11d, dword [rax + 0x10]
add rax, 0x28
add ebx, 1
cmp ebx, esi
jne 0x456022
nop
mov dword [rdx], r11d
lea rax, [rcx + 0xa8]
mov ecx, dword [rax]
mov dword [r8], ecx
mov eax, dword [rax + 4]
mov dword [r9], eax
xor rax, rax
pop rbx
pop rsi
ret
Function at 0x456060
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
mov qword [rbp + 0x90], r8
mov dword [rbp + 0x98], r9d
cmp byte [rbp + 0x88], 0
je 0x4560ac
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.00407ba0
mov qword [rbp + 0x80], rax
nop
cmp qword [rbp + 0x90], 0
jbe 0x4562ca
cmp dword [rbp + 0xa0], 0
jne 0x4560d9
mov rcx, qword [rbp + 0x90]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize_1
mov dword [rbp + 0xa0], eax
mov rcx, qword [rbp + 0x90]
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x80]
cmp qword [rax + 0x28], 0
jne 0x456145
mov rcx, qword [rbp + 0x80]
call fcn.00455780
mov rcx, qword [0x00454a58]
mov dl, 1
lea r8, [0x0045635c]
call fcn.00425230
mov rcx, rax
call fcn.004091f0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax + 0x28]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x80]
cmp qword [rax + 8], 0
jne 0x4561ac
mov rcx, qword [rbp + 0x80]
call fcn.00455780
mov rcx, qword [0x00454a58]
mov dl, 1
lea r8, [0x00456384]
call fcn.00425230
mov rcx, rax
call fcn.004091f0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax + 8]
lea rdx, [rbp + 0x54]
lea r8, [rbp + 0x50]
lea r9, [rbp + 0x4c]
call fcn.00455fe0
test eax, eax
jne 0x4561db
cmp dword [rbp + 0x50], 0
jbe 0x4561db
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0xa0], eax
mov dword [rbp + 0x58], 0xffffffff
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x45622a
add ecx, 1
mov rax, qword [rbp + 0x80]
mov rax, qword [rax + 8]
movsxd rdx, dword [rbp + 0x5c]
mov eax, dword [rax + rdx]
add eax, 1
cmp eax, 0x4034b51
jne 0x456221
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x45622a
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x4561fc
nop
cmp dword [rbp + 0x58], 0
jge 0x45627a
mov eax, dword [rbp + 0x98]
mov ecx, dword [rbp + 0xa0]
sub ecx, 5
mov dword [rbp + 0x5c], eax
cmp dword [rbp + 0x5c], ecx
jg 0x456279
add ecx, 1
mov rax, qword [rbp + 0x80]
mov rax, qword [rax + 8]
movsxd rdx, dword [rbp + 0x5c]
mov eax, dword [rax + rdx]
add eax, 1
cmp eax, 0x6054b51
jne 0x456270
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
jmp 0x456279
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], ecx
jne 0x45624b
nop
cmp dword [rbp + 0x58], 0
jge 0x4562a9
mov rcx, qword [rbp + 0x80]
call fcn.00455780
mov rcx, qword [0x00454a58]
mov dl, 1
lea r8, [0x004563b0]
call fcn.00425230
mov rcx, rax
call fcn.004091f0
mov rcx, qword [rbp + 0x80]
xor rdx, rdx
mov rax, qword [rbp + 0x80]
mov r8, qword [rax + 8]
mov r9d, dword [rbp + 0xa0]
call fcn.00455800
cmp byte [rbp + 0x88], 0
je 0x456325
mov rcx, qword [rbp + 0x80]
call fcn.00407be0
mov qword [rbp + 0x80], rax
jmp 0x456325
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x457b20
Capabilities:
Get common file path

Disassembly:
push rbp
mov eax, 0xfa0
sub rax, 0x1000
mov byte [rsp + rax], al
cmp rax, 0xffffffffffffbfa0
ja 0x457b27
sub rsp, 0x4060
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x3c], edx
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
nop
mov eax, 1
movsxd rcx, eax
mov word [rbp + rcx*2 + 0x5e], 0x20
add eax, 1
cmp eax, 0x2001
jne 0x457b71
nop
mov eax, dword [rbp + 0x3c]
sub eax, 1
cmp eax, 0xffffffff
je 0x457ba3
test eax, eax
je 0x457bd5
sub eax, 1
test eax, eax
jne 0x457c2e
jmp 0x457c15
mov ecx, 0x2000
lea rdx, [rbp + 0x60]
call sub.kernel32.dll_GetTempPathW
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x60]
mov r8d, 0x2000
call fcn.0040a1e0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x58]
call fcn.0041bec0
jmp 0x457c2e
xor rcx, rcx
mov edx, 0x1c
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call sub.SHFolder.dll_SHGetFolderPathW
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x60]
mov r8d, 0x2000
call fcn.0040a1e0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x50]
call fcn.0041bec0
jmp 0x457c2e
lea rcx, [rbp + 0x48]
xor rdx, rdx
call fcn.004058e0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x48]
call fcn.0041d0c0
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
call fcn.00426ce0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x40]
call fcn.0040a550
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.0040a070
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0x4060]
pop rbp
ret

Function at 0x457ca0
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x110
mov rbp, rsp
mov qword [rbp + 0x108], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x120], rcx
nop
lea rcx, [rbp + 0xe8]
mov edx, 0x18
xor r8, r8
call fcn.00406300
lea rcx, [rbp + 0x80]
mov edx, 0x68
xor r8, r8
call fcn.00406300
mov dword [rbp + 0x80], 0x68
mov dword [rbp + 0xe8], 0x18
mov dword [rbp + 0xbc], 1
mov word [rbp + 0xc0], 0
mov byte [rbp + 0x67], 0
mov dword [rbp + 0xf8], 0
mov rcx, qword [rbp + 0x120]
call fcn.0040b250
xor rcx, rcx
mov rdx, rax
lea r8, [rbp + 0xe8]
lea r9, [rbp + 0xe8]
cmp byte [rbp + 0x67], 0
setne al
movzx rax, al
neg eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x457dcd
lea rcx, [rbp + 0x108]
lea rdx, [0x004578e0]
call fcn.0040ea60
nop
mov rcx, qword [0x0046c5d8]
mov rdx, qword [rbp + 0x108]
call fcn.00406b60
mov rcx, rax
call fcn.00406cd0
call fcn.004055a0
nop
lea rcx, [rbp + 0x108]
call fcn.00409f90
jmp 0x457dfb
mov rcx, qword [rbp + 0x68]
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov rcx, qword [rbp + 0x68]
lea rdx, [rbp + 0x104]
call sub.kernel32.dll_GetExitCodeProcess
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle_1
mov rcx, qword [rbp + 0x70]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x108]
call fcn.00409f90
mov eax, dword [rbp + 0x104]
lea rsp, [rbp + 0x110]
pop rbp
ret
Function at 0x458340
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.0040a120
nop
mov rcx, qword [rbp + 0x68]
call fcn.0040b250
mov rcx, rax
mov edx, 0x40000000
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0x102
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
mov rcx, qword [rbp + 0x60]
mov qword [rcx + 0x50], rax
nop
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x50]
mov rax, qword [rbp + 0x60]
mov rdx, qword [rax + 0x58]
mov rax, qword [rbp + 0x60]
mov r8d, dword [rax + 0x60]
mov rax, qword [rbp + 0x60]
lea r9, [rax + 0x4c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
nop
mov rax, qword [rbp + 0x60]
mov rcx, qword [rax + 0x50]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x68]
call fcn.00409f90
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x458450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], r8b
mov qword [rbp + 0x48], rdx
mov rcx, qword [rbp + 0x48]
call fcn.0040a120
nop
xor rax, rax
mov byte [rbp + 0x2e], al
mov rcx, qword [rbp + 0x48]
call fcn.0040b250
mov rcx, qword [0x00471d58]
mov rdx, rax
mov r8d, 5
call sub.kernel32.dll_FindResourceW
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 8], 0
je 0x458660
mov rcx, qword [0x00471d58]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_LoadResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 0x10], 0
je 0x458660
lea rcx, [0x004586b0]
call fcn.00429810
call fcn.004297f0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_LockResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x18], rax
mov rcx, qword [0x00471d58]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_SizeofResource
mov eax, eax
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x40], rax
mov rcx, qword [rcx + 0x40]
call fcn.00405260
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x58], rax
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x458627
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x58]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x38], 0
jmp 0x4585be
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 0x30]
mov r8d, 8
call fcn.00405630
mov rax, qword [rbp + 0x20]
lea rcx, [rax + 0x30]
call fcn.00429b20
mov rax, qword [rbp + 0x20]
lea rcx, [rax + 0x30]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 0x28]
mov r8d, 8
call fcn.00405630
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x38]
add qword [rax], 8
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x20]
add qword [rax], 8
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x28]
add qword [rax], 8
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x40]
mov rcx, qword [rcx + 0x38]
neg rcx
lea rax, [rax + rcx]
cmp rax, 8
jge 0x458555
call fcn.004298f0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x58]
mov rcx, qword [rcx + 0x40]
lea rax, [rax + rcx - 1]
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x20]
movzx rax, byte [rax]
mov rcx, qword [rbp + 0x20]
mov byte [rcx + 0x48], al
mov al, 1
mov byte [rbp + 0x2e], al
mov rcx, qword [rbp + 0x20]
movzx rax, byte [rcx + 0x48]
mov ecx, dword [rcx + 0x40]
sub ecx, eax
sub ecx, 1
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x60], ecx
jmp 0x458653
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x18]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 0x58]
mov rax, qword [rbp + 0x20]
mov r8, qword [rax + 0x40]
call fcn.00405630
mov al, 1
mov byte [rbp + 0x2e], al
mov rcx, qword [rbp + 0x20]
mov eax, dword [rcx + 0x40]
mov dword [rcx + 0x60], eax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x48]
call fcn.00409f90
movzx rax, byte [rbp + 0x2e]
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14029e440]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x14029e450]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1402a1008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14029e3b0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001930
mov rcx, qword [0x14029e4d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14029e430]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001740
mov ebx, dword [0x1402a1028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x1402a1020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1402a1020], rbp
call fcn.140001540
mov rax, qword [0x14029e3c0]
mov r8, qword [0x1402a1018]
mov ecx, dword [0x1402a1028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1402a1020]
call fcn.140002ad0
mov ecx, dword [0x1402a100c]
mov dword [0x1402a1010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1402a1008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14029e450]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.1400026e0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x14029e470]
mov rcx, qword [0x14029e460]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1402a1010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [str._0_]
mov rcx, qword [0x14029e480]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x14029e3e0]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001750
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002550
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400017c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402a1094]
mov rbx, rcx
test esi, esi
jle 0x1400018f0
mov rax, qword [0x1402a1098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000180b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001895
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017f0
mov rcx, rbx
call fcn.140002230
mov rdi, rax
test rax, rax
je 0x140001912
mov rax, qword [0x1402a1098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002370
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402a1098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000188e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400018a0
add dword [0x1402a1094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402a1098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000188e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001750
nop dword [rax]
xor esi, esi
jmp 0x140001818
mov rax, qword [0x1402a1098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001750
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001750
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ea0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402a1100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402a10e0]
test rbx, rbx
je 0x140001efc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001ef3
test eax, eax
jne 0x140001ef3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ed8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002230
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14029e380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002250
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002258
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002250
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002250
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14029e380]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14029e380]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000238f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002398
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret