joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400eec70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14015a8b0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14012cd70]
mov rbp, rcx
call fcn.1400ed1a0
xor edi, edi
test rax, rax
je 0x1400eed56
mov ebx, edi
call fcn.1400e1e78
mov r14d, dword [rax]
call fcn.1400e1e78
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400ffbf4
mov rsi, rax
test rax, rax
je 0x1400eece7
call fcn.1400e1e78
mov dword [rax], r14d
jmp 0x1400eed11
call fcn.1400e1e78
cmp dword [rax], 0x22
jne 0x1400eed4e
call fcn.1400e1e78
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400ffbf4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400eed4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400eed15
cmp rax, 3
je 0x1400eed30
mov rcx, rsi
call fcn.1400eebcc
test al, al
je 0x1400eed41
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400eed41
mov dil, 1
mov rcx, rbx
call fcn.1400e2144
mov al, dil
jmp 0x1400eed58
mov rcx, rbx
call fcn.1400e2144
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400d15a0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400f8a88
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140162120]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400f8ae6
cmp word [rdx], r12w
jne 0x1400f8ae6
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400f8aec
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400f8c47
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400f8c22
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400f8b25
mov rcx, r9
jmp 0x1400f8b48
cmp r9, rdx
jae 0x1400f8b5f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400f8b09
jmp 0x1400f8c47
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f8c1c
cmp dword [rsp + 0x80], edi
je 0x1400f8c1c
mov rdx, r14
lea r11, [0x140162120]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400f8bf5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400f8bc8
mov word [rbx], r12w
jmp 0x1400f8c43
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400f8bd1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400f8c43
cmp word [rsp + 0x70], r12w
jne 0x1400f8c02
cmp rbx, rsi
je 0x1400f8bc2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400eff90
cmp word [rsp + 0x70], r12w
je 0x1400f8c47
mov word [rbx], r13w
jmp 0x1400f8c43
lea r11, [0x140162120]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400f8c3f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400f8c47
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400fbf94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400fbfc6
call fcn.1400e1e78
mov dword [rax], socket
call fcn.1400e171c
jmp 0x1400fc0e5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400fc0e5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400fc0e5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400fbff5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400fc0e5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400fc009
call fcn.1400fd01c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400fa844
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400f8f34
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400fc0d3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400fc09e
mov rcx, rsi
call fcn.1400fa844
cmp eax, edi
je 0x1400fc089
mov rcx, rsi
call fcn.1400fa844
cmp eax, 0xfffffffe
je 0x1400fc089
mov rcx, rsi
call fcn.1400fa844
movsxd rbx, eax
lea r14, [0x140162120]
mov rcx, rsi
sar rbx, 6
call fcn.1400fa844
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400fc090
lea rdx, [0x14015ad70]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400fc09e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400fc0c2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400fc0c2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400fc0c2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400fc0e8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400ff738
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.1400eff90
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400eff90
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ff888
cmp rax, 0xffffffffffffffff
je 0x1400ff888
xor edi, edi
test rbp, rbp
jle 0x1400ff833
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400fc100
mov rbx, rax
test rax, rax
jne 0x1400ff7c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ff829
mov edx, 0x8000
mov ecx, r14d
call fcn.1400f6ed4
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.1400f9e78
cmp eax, 0xffffffff
je 0x1400ff809
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ff7d0
mov edx, r15d
mov ecx, r14d
call fcn.1400f6ed4
jmp 0x1400ff829
cmp byte [rsi + 0x38], dil
je 0x1400ff820
cmp dword [rsi + 0x34], 5
jne 0x1400ff820
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400ff829
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400fbd3c
jmp 0x1400ff89c
jns 0x1400ff89c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400eff90
cmp rax, 0xffffffffffffffff
jne 0x1400ff854
cmp byte [rsi + 0x30], dil
je 0x1400ff89c
mov edi, dword [rsi + 0x2c]
jmp 0x1400ff89c
mov ecx, r14d
call fcn.1400ff628
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ff89c
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 0x1400ff89c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ff895
mov eax, dword [rsi + 0x2c]
jmp 0x1400ff89a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400eff90
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 0x140103310
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140103340
xor eax, eax
jmp 0x140103403
mov rbp, rbx
cmp word [rax], si
je 0x140103365
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14010334c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140103348
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14010008c
movsxd r14, eax
test eax, eax
jne 0x1401033a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140103339
mov rcx, r14
call fcn.1400fd088
mov rdi, rax
test rax, rax
jne 0x1401033bc
xor ecx, ecx
call fcn.1400fbd3c
jmp 0x140103398
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14010008c
test eax, eax
jne 0x1401033ed
mov rcx, rdi
call fcn.1400fbd3c
jmp 0x1401033f7
xor ecx, ecx
call fcn.1400fbd3c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140103420
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401034a7
mov rsi, rbx
cmp word [rax], bp
je 0x140103466
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140103450
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14010344c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400fd088
mov rdi, rax
test rax, rax
je 0x140103494
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400d3d20
mov rbp, rdi
xor ecx, ecx
call fcn.1400fbd3c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401068f8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140106918
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e1dec
or eax, 0xffffffff
jmp 0x14010691a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14010952c
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.1400e0a90
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401095b6
cmp byte [rbp - 0x21], r15b
je 0x1401095b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401095ec
call fcn.1400fc498
test eax, eax
jne 0x1401095d8
cmp byte [rbp - 0x21], r15b
je 0x1401095d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401095ec
cmp byte [rbp - 0x21], r15b
je 0x1401095e9
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.1400ed908
test eax, eax
jne 0x14010968c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400e0a90
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14010962b
cmp byte [rbp - 0x21], r15b
je 0x140109660
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140109660
call fcn.1400fc498
test eax, eax
jne 0x14010964c
cmp byte [rbp - 0x21], r15b
je 0x140109645
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140109660
cmp byte [rbp - 0x21], r15b
je 0x14010965d
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.1400ed908
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14010968c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14010968f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14010969d
mov rcx, rdi
call fcn.1400fbd3c
cmp byte [rbp + 0x3f], r15b
je 0x1401096ac
mov rcx, qword [rbp + 0x27]
call fcn.1400fbd3c
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 0x14010aa80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14010aaa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14010aaa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40183c
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, qword [0x00406a30]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x4018a2
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x4018a7
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x401dde
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
sub dword [rbp + 0x18], 1
jmp 0x401e8c
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 8]
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 1
mov rdx, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
jne 0x401e45
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3e5
jne 0x401e9c
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 8]
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
lea rcx, [rbp - 8]
mov r9d, 1
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call rax
test eax, eax
je 0x401ea0
mov eax, dword [rbp - 8]
test eax, eax
je 0x401ea0
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0xa
je 0x401e9f
add dword [rbp - 4], 1
add qword [rbp + 0x10], 1
sub dword [rbp + 0x18], 1
cmp dword [rbp + 0x18], 0
jns 0x401e01
jmp 0x401ea0
nop
jmp 0x401ea0
nop
mov rax, qword [rbp + 0x10]
mov byte [rax], 0
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret

Function at 0x401eb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x458
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], rdx
mov qword [rbp + 0x400], r8
mov qword [rbp + 0x408], r9
lea rax, [rbp + 0x400]
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp + 0x3f8]
lea rax, [rbp - 0x40]
mov r9, rcx
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call fcn.00401c00
mov rax, qword [rbp + 0x3f0]
lea rbx, [rax + 8]
lea rax, [rbp - 0x40]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
mov rax, qword [rbp + 0x3f0]
mov rax, qword [rax]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rbx
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
jne 0x401f90
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3e5
jne 0x401f90
mov rax, qword [rbp + 0x3f0]
lea rdx, [rax + 8]
mov rax, qword [rbp + 0x3f0]
mov rax, qword [rax]
lea rcx, [rbp + 0x3cc]
mov r9d, 1
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call rax
mov rax, qword [rbp + 0x3f0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call rax
mov eax, dword [rbp + 0x3cc]
add rsp, 0x458
pop rbx
pop rbp
ret
Function at 0x402655
Capabilities:
Get session user name
Impersonate user

Disassembly:
push rbp
push rdi
push rbx
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x20], rcx
mov rax, rsp
mov rbx, rax
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 7
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x50], 0x38
mov dword [rbp - 0x54], 0x100
mov eax, dword [rbp - 0x54]
mov edx, eax
sub rdx, 1
mov qword [rbp - 8], rdx
mov edx, eax
mov r10, rdx
mov r11d, 0
mov edx, eax
mov r8, rdx
mov r9d, 0
mov eax, eax
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.004048a0
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x54]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x28]
lea rdx, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.USERENV.dll_LoadUserProfileA]
call rax
mov rsp, rbx
mov rsp, rbp
pop rbx
pop rdi
pop rbp
ret

Function at 0x403930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00409684]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x403a47
mov rax, qword [0x00409688]
xor edx, edx
add rax, 8
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x40397d
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rcx, r8
cmp rbx, rcx
jb 0x403a2d
add edx, 1
add rax, 0x18
cmp edx, ebp
jne 0x403961
mov rcx, rbx
call fcn.00404580
test rax, rax
mov r12, rax
je 0x403a7f
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00409688]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.004046f0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00409688]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403a62
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x403a26
sub eax, 4
and eax, 0xfffffffb
je 0x403a26
mov r9, rbp
add r9, qword [0x00409688]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x403a4e
add dword [0x00409684], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x403988
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004038c0
mov rax, qword [0x00409688]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.004038c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004038c0
nop
nop
Function at 0x4041e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00409940]
test rbx, rbx
je 0x404234
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40422b
test rsi, rsi
je 0x40422b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404210
lea rcx, [0x00409960]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x404580
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004068b0]
xor r9d, r9d
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x4045a1
mov rax, r9
add rsp, 0x28
ret
mov rcx, r8
call fcn.00404450
test eax, eax
je 0x404599
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x404599
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4045f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x404610
add rax, 0x28
cmp rax, r9
jne 0x4045e0
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
mov r9, rax
mov rax, r9
add rsp, 0x28
ret
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call fcn.1001a2000
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10000c1e0
add rsp, 0x28
jmp 0x10000bae0