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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, rdx
mov rsi, rcx
mov qword [rax + 0x18], rbp
mov dword [rax + 0x10], ebp
cmp rdx, rbp
jne 0x100008ac4
lea r8d, [rbp + 4]
lea rdx, [rax + 0x18]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
jne 0x100008ac0
lea rdx, [0x1000035c8]
mov ecx, 4
call fcn.100006e7c
mov eax, 0x80004005
jmp 0x100008b30
xor eax, eax
jmp 0x100008b30
mov edx, 0x3fffffff
mov rcx, rdi
mov rax, rdx
cmp word [rcx], bp
je 0x100008ade
add rcx, 2
sub rax, 1
jne 0x100008acf
cmp rax, rbp
je 0x100008b2b
sub rdx, rax
mov ecx, 0xffffffff
lea rax, [rdx + rdx]
mov qword [rsp + 0x50], rax
cmp rax, rcx
ja 0x100008ab9
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
je 0x100008aa8
mov r8d, dword [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
jmp 0x100008a94
mov eax, 0x80070057
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x10000a3e4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x50
cmp qword [0x100026e30], 0
mov rsi, rcx
jne 0x10000a405
mov eax, 0x80004005
jmp 0x10000a4f3
and dword [rsp + 0x78], 0
xor eax, eax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], r8d
call fcn.10000a2d0
mov ebx, eax
test eax, eax
jns 0x10000a44f
lea rdx, [0x1000035c8]
mov ecx, 4
call fcn.100006e7c
jmp 0x10000a4f1
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a4cc
cmp ebx, 1
je 0x10000a4e2
cmp dword [rsp + 0x30], 0
jl 0x10000a4e2
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x48]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a4cc
mov r8d, dword [rsp + 0x48]
test r8d, r8d
je 0x10000a4e2
mov rdx, qword [rsp + 0x40]
and qword [rsp + 0x20], 0
imul r8d, r8d, 0x2c
lea r9, [rsp + 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a4e2
lea rdx, [0x1000035c8]
mov ecx, 4
call fcn.100006e7c
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a4f1
call fcn.100011990
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rsi
ret
Function at 0x10000a504
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push r12
push r13
push r14
sub rsp, 0x50
and dword [rax - 0x34], 0
and dword [rax - 0x38], 0
and dword [rax - 0x30], 0
cmp qword [0x100026e28], 0
mov r14d, r9d
mov r13d, r8d
mov r12d, edx
mov rsi, rcx
jne 0x10000a549
mov eax, 0x80004005
jmp 0x10000a6e3
test rcx, rcx
je 0x10000a6de
test edx, edx
je 0x10000a6de
and qword [rsp + 0x20], 0
mov dword [rsp + 0x3c], r8d
mov ebp, 4
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x3c]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a591
lea rdx, [0x1000035c8]
mov ecx, ebp
call fcn.100006e7c
jmp 0x10000a53f
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
mov edx, r13d
mov ecx, r12d
mov dword [rsp + 0x20], r14d
call fcn.10000a1ac
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov r8d, ebp
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a60a
lea rdx, [0x1000035c8]
mov ecx, ebp
call fcn.100006e7c
and dword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a581
mov eax, 1
jmp 0x10000a6e3
cmp ebx, 1
je 0x10000a5db
test ebx, ebx
js 0x10000a5db
mov ebp, dword [rsp + 0x38]
lea eax, [rbp + 0x7f]
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.1000118f0
mov rbx, rax
test rax, rax
jne 0x10000a63b
lea rdx, [0x100003be0]
mov ebp, 4
jmp 0x10000a6b5
mov r9d, dword [rsp + 0x30]
mov r8d, ebp
mov edx, r13d
mov ecx, r12d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call fcn.10000a0c4
test eax, eax
jns 0x10000a665
lea rdx, [0x100003bf0]
jmp 0x10000a634
and qword [rsp + 0x20], 0
mov dword [rsp + 0x30], ebp
mov ebp, 4
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a6ae
mov r8d, dword [rbx + 8]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x18]
lea r9, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a6d2
lea rdx, [0x1000035c8]
mov ecx, ebp
call fcn.100006e7c
test rbx, rbx
je 0x10000a5db
mov rcx, rbx
call fcn.100011990
jmp 0x10000a5db
mov rcx, rbx
call fcn.100011990
xor eax, eax
jmp 0x10000a6e3
mov eax, 0x80070057
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x10000a704
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
and dword [rsp + 0x78], 0
xor eax, eax
mov rbx, rcx
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x28], rax
mov dword [r11 + 0x20], eax
lea rax, [r11 + 0x20]
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], 0xd
mov qword [r11 - 0x30], rax
lea rcx, [r11 - 0x38]
mov ebp, 4
mov rdi, r8
mov dword [rsp + 0x40], ebp
call qword [0x100026e38]
test eax, eax
jne 0x10000a7ee
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x88]
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10000a78a
lea rdx, [0x1000035c8]
jmp 0x10000a7f5
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, 8
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a781
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea rdx, [rdi + 8]
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a781
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10000a781
xor eax, eax
jmp 0x10000a801
lea rdx, [0x100003c18]
mov ecx, ebp
call fcn.100006e7c
mov eax, 0x80004005
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000ae18
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rcx
call fcn.100009fd8
test eax, eax
js 0x10000b044
lea rcx, [rsp + 0x38]
call fcn.10000d964
mov rdi, rax
mov qword [rsp + 0x40], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x38]
test rax, rax
je 0x10000ae7d
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.100009a7c
mov rdi, qword [rsp + 0x40]
jmp 0x10000ae82
mov eax, 0x80070057
test eax, eax
je 0x10000aec9
lea rdx, [0x100003c70]
mov ecx, 4
call fcn.100006e7c
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x10000aeb7
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rdi
jne 0x10000aea7
mov rcx, rdi
call fcn.100011990
mov eax, 0x80004005
jmp 0x10000b044
mov rbx, qword [rdi]
cmp rbx, rdi
jne 0x10000af0c
lea rdx, [0x100003ca0]
mov ecx, 4
call fcn.100006e7c
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x10000af02
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rdi
jne 0x10000aef2
mov esi, 0x80004005
jmp 0x10000b03a
mov ecx, 0x100004
call fcn.1000118f0
mov rbp, rax
test rax, rax
jne 0x10000af47
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x10000af3d
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rdi
jne 0x10000af2d
mov esi, 0x8007000e
jmp 0x10000b03a
xor edx, edx
mov r8d, 0x100004
mov rcx, rax
call fcn.100017eb0
mov dword [rbp], 0x100000
and dword [rsp + 0x50], 0
xor edx, edx
lea r8d, [rdx + 0x1c]
lea rcx, [rsp + 0x54]
call fcn.100017eb0
mov dword [rsp + 0x58], 9
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], 0x100004
lea rcx, [rsp + 0x50]
call qword [0x100026e28]
test eax, eax
jns 0x10000afe1
mov r8d, eax
lea rdx, [0x100003bc8]
mov ecx, 4
call fcn.100006e7c
mov rcx, rbp
call fcn.100011990
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x10000afda
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rdi
jne 0x10000afca
mov esi, 0x80004005
jmp 0x10000b03a
and dword [rsp + 0x30], 0
mov r8d, dword [rbp]
add r8d, 4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb ecx, ecx
not ecx
mov esi, 0x80004005
and esi, ecx
mov rcx, rbp
call fcn.100011990
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x10000b03a
mov rbx, qword [rcx]
call fcn.100011990
mov rcx, rbx
cmp rbx, rdi
jne 0x10000b02a
mov rcx, rdi
call fcn.100011990
mov eax, esi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100010784
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x100024390]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rdi, qword [0x100026e58]
mov byte [0x100025e38], 1
cmp byte [rdi], 0
je 0x10001085a
xor esi, esi
xor ebp, ebp
cmp qword [rdi + 0x10], 0
je 0x1000108fe
mov rax, qword [rdi + 0x18]
sub rax, qword [rdi + 0x10]
sar rax, 4
cmp rsi, rax
jae 0x1000108fe
mov rbx, qword [rdi + 0x10]
lea rax, [rsp + 0x38]
lea r8, [0x100010cbc]
mov r9, qword [rbx + rbp + 8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, qword [r9 + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + rbp], rax
mov rax, qword [rdi + 0x10]
cmp qword [rax + rbp], 0
je 0x10001082d
inc rsi
add rbp, 0x10
jmp 0x1000107c8
lea rax, [0x100004c58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
call fcn.1000123ec
lea rdx, [0x1000221f8]
lea rcx, [rsp + 0x40]
call fcn.100012738
int3
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x1c0
call fcn.100017eb0
cmp qword [rdi + 0x48], 8
jb 0x100010879
mov rax, qword [rdi + 0x30]
jmp 0x10001087d
lea rax, [rdi + 0x30]
and qword [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
lea rax, [0x100010ce8]
mov qword [rsp + 0x1f0], rax
lea rax, [fcn.10000e404]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x208], rax
call qword [sym.imp.ADVAPI32.dll_OpenTraceW]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x1000108e9
lea rax, [0x100004c78]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
call fcn.1000123ec
lea rdx, [0x1000221f8]
lea rcx, [rsp + 0x40]
call fcn.100012738
int3
xor r9d, r9d
lea rcx, [rsp + 0x38]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ProcessTrace]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.100011c90
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100010930
Capabilities:
Terminate thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rbx, rcx
mov byte [0x100025e38], 0
cmp byte [rcx], 0
je 0x100010af6
cmp qword [rcx + 0x10], 0
je 0x100010af6
mov rax, qword [rcx + 0x18]
sub rax, qword [rcx + 0x10]
sar rax, 4
test rax, rax
je 0x100010af6
mov byte [0x100025e38], 0
and qword [r11 + 8], 0
cmp qword [rcx + 0x10], 0
jne 0x10001099a
xor edx, edx
jmp 0x1000109a6
mov rdx, qword [rcx + 0x18]
sub rdx, qword [rcx + 0x10]
sar rdx, 4
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x50]
call fcn.100011254
nop
xor edi, edi
xor esi, esi
mov rbp, qword [rsp + 0x58]
cmp qword [rbx + 0x10], 0
je 0x100010a0e
mov rax, qword [rbx + 0x18]
sub rax, qword [rbx + 0x10]
sar rax, 4
cmp rdi, rax
jae 0x100010a0e
mov rax, qword [rbx + 0x10]
mov rcx, qword [rsi + rax]
mov qword [rbp + rdi*8], rcx
mov rax, qword [rbx + 0x10]
mov rcx, qword [rsi + rax + 8]
mov r9d, 1
mov r8, qword [rcx]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlTraceW]
inc rdi
add rsi, 0x10
jmp 0x1000109c2
test rbp, rbp
je 0x100010aa6
mov rdi, qword [rsp + 0x60]
sub rdi, rbp
sar rdi, 3
test rdi, rdi
je 0x100010aa6
mov r9d, 0x1388
mov r8d, 1
mov rdx, rbp
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x100010a60
xor esi, esi
cmp rsi, rdi
jae 0x100010a60
or edx, 0xffffffff
mov rcx, qword [rbp + rsi*8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
inc rsi
jmp 0x100010a48
xor esi, esi
xor edi, edi
cmp qword [rbx + 0x10], 0
je 0x100010a9c
mov rax, qword [rbx + 0x18]
sub rax, qword [rbx + 0x10]
sar rax, 4
cmp rsi, rax
jae 0x100010a9c
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rdi + rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [rbx + 0x10]
and qword [rdi + r11], 0
inc rsi
add rdi, 0x10
jmp 0x100010a64
mov rcx, rbp
call fcn.100011990
jmp 0x100010af6
mov qword [rsp + 0x40], 0xf
and qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov r8d, 0x1b
lea rdx, [0x100004c90]
lea rcx, [rsp + 0x20]
call fcn.10000da18
nop
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.1000117d8
lea rdx, [0x100022260]
lea rcx, [rsp + 0x70]
call fcn.100012738
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100011fc4
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x100024390]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1000120ca
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x100012052
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x1000120ca
mov eax, edx
not eax
and ecx, eax
je 0x10001206d
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x1000120ca
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x1000120ca
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1000120ca
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000120ca
mov eax, 1
jmp 0x1000120cc
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.100011c90
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret

Function at 0x100013404
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.100019c14
nop
cmp dword [0x100026024], 1
je 0x1000134b7
mov dword [0x100026020], 1
mov byte [0x100025fdc], dil
test ebx, ebx
jne 0x1000134a3
mov rcx, qword [0x1000280d0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x1000280c8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x100013490
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x100013490
mov rcx, qword [rbx]
test rcx, rcx
je 0x10001348e
call rcx
jmp 0x100013476
lea rdx, [0x100001450]
lea rcx, [0x100001438]
call fcn.100013254
lea rdx, [0x100001460]
lea rcx, [0x100001458]
call fcn.100013254
nop
test edi, edi
je 0x1000134c5
mov ecx, 8
call fcn.100019b04
test edi, edi
jne 0x1000134ed
mov dword [0x100026024], 1
lea ecx, [rdi + 8]
call fcn.100019b04
mov ecx, r12d
call fcn.1000131d8
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x100013404

Function at 0x10001351c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x100013404
Function at 0x1000135bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x100024130]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x1000135ee
inc edi
add rax, 0x10
cmp edi, 0x17
jb 0x1000135df
cmp edi, 0x17
jae 0x10001379c
mov ebp, 3
mov ecx, ebp
call fcn.10001a30c
cmp eax, 1
je 0x100013754
mov ecx, ebp
call fcn.10001a30c
test eax, eax
jne 0x100013624
cmp dword [0x100024118], 1
je 0x100013754
cmp ebx, 0xfc
je 0x10001379c
lea rbx, [0x100026030]
mov ebp, 0x314
lea r8, [0x100001c10]
mov rcx, rbx
mov rdx, rbp
call fcn.100017e28
test eax, eax
je 0x100013667
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100014bdc
lea rdx, [0x100026049]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x10002614d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000136b8
lea r8, [0x100001bf8]
lea rcx, [0x100026049]
mov edx, 0x2fb
call fcn.100017e28
test eax, eax
je 0x1000136b8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100014bdc
lea r8, [0x100026049]
mov rdx, rbp
mov rcx, rbx
call fcn.10001a27c
test eax, eax
je 0x1000136e3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100014bdc
lea r8, [0x100001bf0]
mov rdx, rbp
mov rcx, rbx
call fcn.10001a27c
test eax, eax
je 0x10001370e
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100014bdc
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.10001a27c
test eax, eax
je 0x10001373d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.100014bdc
lea rdx, [0x100001bc8]
mov r8d, 0x12010
mov rcx, rbx
call fcn.10001a044
jmp 0x10001379c
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r11, rax
test rax, rax
je 0x10001379c
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x10001379c
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x100013ed4
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 r12
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r12d, r12d
mov rdi, rax
cmp rax, r12
je 0x100013fad
mov rbx, rax
cmp word [rax], r12w
je 0x100013f1f
add rbx, 2
cmp word [rbx], r12w
jne 0x100013f0b
add rbx, 2
cmp word [rbx], r12w
jne 0x100013f0b
mov qword [rsp + 0x38], r12
sub rbx, rax
mov qword [rsp + 0x30], r12
sar rbx, 1
mov r8, rax
xor edx, edx
lea r9d, [rbx + 1]
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
cmp ebp, r12d
je 0x100013fa4
mov rcx, rbp
call fcn.100013038
mov rsi, rax
cmp rax, r12
je 0x100013fa4
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, r12d
jne 0x100013f96
mov rcx, rsi
call fcn.100012e74
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
jmp 0x100013faf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x100014bdc
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100014c47
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x100014c67
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001c40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret