joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100010cf8
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rbp, rdx
mov rdi, rcx
mov r8, rdx
add rcx, 0x10448
mov edx, 0x208
call fcn.10000b75c
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
mov edx, 0x80000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x100010d68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100010e20
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, r12d
jne 0x100010d8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100010e17
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov qword [rdi + 0x10a88], r12
mov dword [rdi + 0x10abc], r12d
mov ebx, eax
mov dword [rdi + 0x10ac0], r12d
mov qword [rdi + 0x10a80], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp rbx, r12
mov dword [rdi + 0x10ae0], eax
mov eax, r12d
sete al
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x60]
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], r12
call fcn.100011f40
mov ebx, eax
cmp eax, r12d
jne 0x100010e17
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.100011010
mov ebx, eax
cmp eax, r12d
jne 0x100010e17
mov rax, qword [rdi + 0x10a80]
add qword [rdi + 0x10ac8], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x100010e3c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xcb0
mov rax, qword [0x10001f190]
xor rax, rsp
mov qword [rsp + 0xca0], rax
mov rdi, rdx
mov rsi, rcx
call fcn.1000136f0
xor ebp, ebp
mov ebx, eax
cmp eax, ebp
jne 0x100010fe2
mov r8, rdi
mov edi, 0x208
lea rcx, [rsp + 0x270]
mov rdx, rdi
call fcn.10000b75c
movzx eax, word [rsp + 0x270]
lea r11, [rsp + 0x270]
cmp ax, bp
je 0x100010eb7
add r11, 2
movzx ecx, ax
mov ax, word [r11]
cmp ax, bp
jne 0x100010ea1
cmp cx, 0x5c
je 0x100010ece
lea r8, [0x1000026ec]
lea rcx, [rsp + 0x270]
mov rdx, rdi
call fcn.100006714
mov edi, 0x410
lea r8, [rsp + 0x270]
lea rcx, [rsp + 0x890]
mov rdx, rdi
call fcn.10000b75c
lea r8, [0x100004108]
lea rcx, [rsp + 0x890]
mov rdx, rdi
call fcn.100006714
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x890]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x100010fc4
lea r8, [rsp + 0x270]
lea rcx, [rsp + 0x480]
mov edx, 0x410
call fcn.10000b75c
lea r8, [rsp + 0x4c]
lea rcx, [rsp + 0x480]
mov edx, 0x410
call fcn.100006714
test byte [rsp + 0x20], 0x10
je 0x100010f98
lea rdx, [0x100004110]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x100010fae
lea rdx, [0x1000040e4]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x100010fae
lea rdx, [rsp + 0x480]
mov rcx, rsi
call fcn.100010e3c
jmp 0x100010fa8
lea rdx, [rsp + 0x480]
mov rcx, rsi
call fcn.100010cf8
mov ebx, eax
cmp eax, ebp
jne 0x100010fc4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x100010f22
xor edx, edx
mov rcx, rsi
call fcn.1000136f0
cmp ebx, ebp
cmove ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x100010fe2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0xca0]
xor rcx, rsp
call fcn.100019220
mov rbx, qword [rsp + 0xce0]
add rsp, 0xcb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x100011010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xffb0
call fcn.100019a70
sub rsp, rax
mov rax, qword [0x10001f190]
xor rax, rsp
mov qword [rsp + 0xffa0], rax
movzx eax, word [rcx + 0x10aae]
xor r9d, r9d
mov r10, rdx
mov qword [rsp + 0x48], rdx
lea r12d, [r9 + 0x10]
xor edx, edx
sub eax, r12d
mov rbp, rcx
mov ebx, r9d
movsxd r8, eax
mov eax, 0xff40
mov esi, r9d
div r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
cmp dword [0x100023768], r9d
jne 0x1000111c0
mov r8d, 0xff40
mov qword [rsp + 0x20], r9
lea rdx, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov rcx, r10
sub r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
cmp eax, r9d
je 0x1000111ed
mov edi, dword [rsp + 0x40]
cmp edi, r9d
jne 0x1000110c2
cmp esi, r9d
jne 0x1000111c0
movzx r14d, word [rbp + 0x10aae]
mov rax, rdi
mov ecx, r9d
add qword [rbp + 0x10a78], rax
add qword [rbp + 0x10a88], rax
mov rax, qword [rbp + 0x10a88]
cmp rax, qword [rbp + 0x10a80]
mov ebx, r9d
movzx esi, r9w
sete cl
sub r14w, r12w
movsxd r8, ecx
mov qword [rsp + 0x58], r8
cmp r9w, di
jae 0x1000111a4
movzx r15d, r14w
movzx r13d, di
movzx edx, si
mov ecx, r13d
movzx eax, di
sub ax, si
sub ecx, edx
movzx r12d, r14w
cmp ecx, r15d
cmovl r12w, ax
cmp r8, r9
je 0x100011143
movzx eax, r12w
add eax, edx
mov edx, 1
cmp eax, r13d
je 0x100011146
mov edx, r9d
cmp dword [rbp + 0x48], r9d
jne 0x100011190
mov dword [rsp + 0x30], edx
movzx eax, si
mov word [rsp + 0x28], r12w
lea rcx, [rsp + rax + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rbp
xor edx, edx
call fcn.100011f40
xor r9d, r9d
mov ebx, eax
cmp eax, r9d
jne 0x1000111a4
mov r8, qword [rsp + 0x58]
add si, r12w
mov ebx, r9d
cmp si, di
jb 0x100011114
jmp 0x1000111a4
mov edi, 0x4c7
mov rcx, rbp
mov edx, edi
call fcn.100011e84
mov ebx, edi
xor r9d, r9d
mov r10, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov esi, 1
lea r12d, [rsi + 0xf]
cmp ebx, r9d
je 0x100011076
mov eax, ebx
mov rcx, qword [rsp + 0xffa0]
xor rcx, rsp
call fcn.100019220
mov rbx, qword [rsp + 0x10000]
add rsp, 0xffb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000111c2
Function at 0x1000111fc
Capabilities:
Create directory
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x250
mov rax, qword [0x10001f190]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebp, 0x5c
xor esi, esi
mov rbx, rcx
lea r12d, [rbp - 0x22]
cmp word [rcx + 2], r12w
jne 0x10001126b
movzx eax, word [rcx]
lea rcx, [rsp + 0x28]
mov word [rsp + 0x2a], r12w
mov word [rsp + 0x2c], bp
mov word [rsp + 0x2e], si
mov word [rsp + 0x28], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
ja 0x10001126b
lea eax, [rbp - 0x4d]
jmp 0x1000113cd
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, 0x104
ja 0x1000113c8
cmp eax, esi
jne 0x10001129d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000113cd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x1000112b3
xor eax, eax
jmp 0x1000113cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xb7
cmp eax, ebx
je 0x1000112ac
cmp eax, 3
jne 0x1000113cd
cmp word [rsp + 0x32], r12w
jne 0x1000112da
lea rax, [rsp + 0x36]
jmp 0x10001134f
cmp word [rsp + 0x30], bp
jne 0x1000113c8
cmp word [rsp + 0x32], bp
jne 0x1000113c8
movzx ecx, word [rsp + 0x34]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
cmp cx, si
je 0x10001135c
cmp cx, bp
je 0x10001131a
add rax, 2
mov qword [rsp + 0x20], rax
mov cx, word [rax]
cmp cx, si
jne 0x100011304
cmp word [rax], si
je 0x10001135c
add rax, 2
mov qword [rsp + 0x20], rax
movzx ecx, word [rax]
cmp cx, si
je 0x10001135c
cmp cx, bp
je 0x100011346
add rax, 2
mov qword [rsp + 0x20], rax
mov cx, word [rax]
cmp cx, si
jne 0x100011330
cmp word [rax], si
je 0x10001135c
add rax, 2
mov qword [rsp + 0x20], rax
movzx ecx, word [rax]
cmp cx, si
jne 0x100011391
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
jne 0x1000112ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1000113cd
jmp 0x1000112ac
cmp cx, bp
je 0x10001139b
add rax, 2
mov qword [rsp + 0x20], rax
mov cx, word [rax]
cmp cx, si
jne 0x100011380
cmp word [rax], bp
jne 0x100011354
lea rcx, [rsp + 0x30]
xor edx, edx
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
jne 0x1000113b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1000113c8
mov rax, qword [rsp + 0x20]
mov word [rax], bp
mov rax, qword [rsp + 0x20]
jmp 0x10001134b
mov eax, 0x52
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.100019220
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x100011448
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x240
mov rax, qword [0x10001f190]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, word [rcx]
xor esi, esi
mov r12, r8
mov rdi, rcx
mov ebx, 0x104
cmp ax, si
je 0x100011497
add rcx, 2
movzx edx, ax
mov ax, word [rcx]
cmp ax, si
jne 0x100011482
cmp dx, 0x5c
je 0x1000114a9
lea r8, [0x1000026ec]
mov rdx, rbx
mov rcx, rdi
call fcn.100008ffc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, r12
mov rdx, rbx
mov ebp, eax
mov rcx, rdi
lea r13, [rdi + rbp*2]
call fcn.100008ffc
lea r8, [0x100023280]
lea rcx, [rsp + 0x30]
mov edx, 0x200
call fcn.10000b75c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100011514
sub ebx, ebp
inc esi
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, r13
mov r9d, esi
mov qword [rsp + 0x20], r12
call fcn.100011768
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000114ec
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.100019220
mov rbx, qword [rsp + 0x278]
add rsp, 0x240
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100011548
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xcd0
mov rax, qword [0x10001f190]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov r8, rcx
mov edi, 0x208
lea rcx, [r11 - 0xa48]
xor ebp, ebp
mov rdx, rdi
mov ebx, ebp
call fcn.10000b75c
movzx eax, word [rsp + 0x290]
lea r11, [rsp + 0x290]
cmp ax, bp
je 0x1000115b7
add r11, 2
movzx ecx, ax
mov ax, word [r11]
cmp ax, bp
jne 0x1000115a1
cmp cx, 0x5c
je 0x1000115ce
lea r8, [0x1000026ec]
lea rcx, [rsp + 0x290]
mov rdx, rdi
call fcn.100006714
mov edi, 0x410
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x8b0]
mov rdx, rdi
call fcn.10000b75c
lea r8, [0x100004108]
lea rcx, [rsp + 0x8b0]
mov rdx, rdi
call fcn.100006714
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x8b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x100011705
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x4a0]
mov rdx, rdi
call fcn.10000b75c
lea r8, [rsp + 0x6c]
lea rcx, [rsp + 0x4a0]
mov rdx, rdi
call fcn.100006714
test byte [rsp + 0x40], 0x10
je 0x100011693
lea rdx, [0x100004110]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x1000116e6
lea rdx, [0x1000040e4]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebp
je 0x1000116e6
lea rcx, [rsp + 0x4a0]
call fcn.100011548
add ebx, eax
jmp 0x1000116e6
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x4a0]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1000116e1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
add ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x410
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebp
jne 0x100011622
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0xcc0]
xor rcx, rsp
call fcn.100019220
lea r11, [rsp + 0xcd0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100012340
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov byte [rax + 0x18], r8b
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebp, ebp
lea r8, [rsp + 0x40]
mov rcx, rbx
lea edx, [rbp + 1]
lea esi, [rdi + rax]
mov dword [rsp + 0x40], ebp
call fcn.10001243c
cmp eax, 1
je 0x10001241c
cmp edi, 0xffffffff
jne 0x1000123c5
or edx, 0xffffffff
mov rcx, rbx
call fcn.10000fbe8
cmp eax, 0x274c
cmove eax, ebp
mov dword [rsp + 0x40], eax
cmp eax, ebp
jne 0x100012420
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rbx
call fcn.10001243c
cmp eax, ebp
jne 0x10001241c
mov eax, dword [rsp + 0x40]
cmp eax, ebp
je 0x10001238a
jmp 0x100012420
mov edi, 0x5b4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, esi
mov rcx, rbx
sub edx, eax
call fcn.10000fbe8
cmp eax, 0x274c
cmove eax, edi
mov dword [rsp + 0x40], eax
cmp eax, ebp
jne 0x100012420
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rbx
call fcn.10001243c
cmp eax, ebp
jne 0x10001241c
mov eax, dword [rsp + 0x40]
cmp eax, ebp
jne 0x100012420
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
sub ecx, eax
cmp ecx, ebp
jg 0x1000123ca
mov eax, edi
jmp 0x100012420
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x10001243c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, qword [rcx + 0x10aa0]
xor edi, edi
mov rbp, r8
mov r13d, dword [rbx + 4]
lea r15d, [rdi + 3]
mov r14d, edx
mov r12, rcx
cmp r13d, r15d
jb 0x100012517
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.10001185c
cmp eax, edi
je 0x100012517
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.100011894
cmp eax, edi
je 0x100012517
movzx r8d, word [rsp + 0x78]
cmp r8w, r15w
jae 0x1000124ae
mov dword [rbp], 0xd
jmp 0x100012517
movzx esi, r8w
cmp r13d, esi
jae 0x1000124bd
add dword [rbx + 8], 0xfffffffd
jmp 0x100012517
mov dl, byte [rsp + 0x60]
sub r8w, r15w
mov rcx, r12
cmp r14d, 1
jne 0x1000124d5
call fcn.100012534
jmp 0x1000124da
call fcn.1000126f0
mov dword [rbp], eax
mov eax, dword [rbx + 4]
mov dword [rbx + 8], edi
cmp esi, eax
jbe 0x1000124ec
mov dword [rbx + 4], edi
jmp 0x100012504
sub eax, esi
mov dword [rbx + 4], eax
je 0x100012504
lea rdx, [rsi + rbx + 0xc]
lea rcx, [rbx + 0xc]
mov r8d, eax
call sub.msvcrt.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 1
mov dword [r12 + 0x10ae0], eax
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000136b4
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, dword [rdx + 4]
mov eax, dword [rdx + 8]
mov rcx, qword [rcx + 0x58]
lea rdx, [rax + rdx + 0xc]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
je 0x1000136e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000136e3
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x100013e48
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov edi, dword [0x10001f530]
mov rbx, qword [0x100023740]
lea rdx, [0x100003fc8]
lea rcx, [rax + 8]
call fcn.1000184c0
xor esi, esi
cmp rbx, rsi
jne 0x100013e97
mov rcx, qword [rsp + 0x60]
cmp rcx, rsi
je 0x100013e90
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
jmp 0x100013f37
mov r8, qword [0x100023780]
cmp r8, rsi
je 0x100013e80
mov rcx, qword [0x10001f370]
cmp edi, esi
je 0x100013ef5
call fcn.100013ddc
mov edi, eax
cmp eax, esi
jne 0x100013f22
mov rbx, qword [rsp + 0x60]
cmp rbx, rsi
je 0x100013f35
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov edx, 4
mov dword [rsp + 0x30], esi
lea r8d, [rdx - 3]
mov r9d, 0x40ff1002
mov rcx, rbx
mov word [rsp + 0x28], si
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
jmp 0x100013f27
mov r8, qword [r8 + 8]
mov edx, dword [0x10001f378]
call fcn.100013b1c
mov edi, eax
cmp eax, esi
je 0x100013f22
lea rcx, [rsp + 0x60]
mov edx, 1
mov r9d, eax
mov r8d, 0xc0ff1003
call fcn.100018518
mov rbx, qword [rsp + 0x60]
cmp rbx, rsi
je 0x100013f35
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, edi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1000142a4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x10001f190]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xor esi, esi
mov edi, edx
cmp qword [0x100023740], rsi
je 0x100014466
mov rcx, qword [0x100023278]
mov rbx, qword [0x100027010]
lea rax, [r11 - 0x40]
mov qword [r11 - 0x78], rax
lea rax, [r11 - 0x50]
lea rdx, [0x100003f18]
mov qword [r11 - 0x80], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov qword [r11 - 0x50], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x100014365
lea r9d, [rsi + 4]
lea rax, [rsp + 0x60]
lea rdx, [0x100003e58]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x100014365
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov r9d, 0x400
mov r8d, 1
mov rdx, rbx
mov ecx, 0xb00
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, esi
je 0x100014466
mov rax, qword [rsp + 0x50]
cmp rax, rsi
je 0x100014466
jmp 0x1000143be
cmp word [rax], 0x20
jb 0x1000143c5
add rax, 2
cmp word [rax], si
jne 0x1000143b4
jmp 0x1000143c8
mov word [rax], si
lea rax, [rsp + 0x80]
lea r8, [0x100004154]
lea rcx, [rsp + 0x80]
mov r9d, edi
mov edx, 0x14
mov qword [rsp + 0x70], rax
call fcn.100011768
lea r11, [rsp + 0x70]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], r11
mov r9d, 0x400
mov r8d, 0xc0ff1003
mov rdx, rbx
mov ecx, 0x2900
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, esi
jne 0x10001442e
mov rcx, qword [rsp + 0x58]
jmp 0x10001445b
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov r9d, 0x50010
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x100014456
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x100014466
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.100019220
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100014494
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x100023788], rax
test rax, rax
jne 0x1000144bd
xor eax, eax
jmp 0x10001454f
lea rax, [rsp + 0x40]
lea r9, [0x100023788]
lea r8, [0x100013f50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x100023788]
mov qword [0x100023790], rax
test rax, rax
jne 0x100014507
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x100023788], 0
jmp 0x1000144b6
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x100023788]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x100023788], 0
cmp dword [0x100023798], 0
je 0x100014548
mov rcx, qword [0x100023790]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x100023790], 0
jmp 0x1000144b6
lea rax, [0x100023788]
add rsp, 0x38
ret
Function at 0x100014c78
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x10001f190]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor r15d, r15d
mov r13, rdx
mov r14d, ecx
mov dword [rdx], r15d
mov ebp, r15d
mov rsi, r15
cmp word [0x100022b80], r15w
je 0x100014cc6
lea rbx, [0x100022b80]
jmp 0x100014cf8
lea rbx, [0x100022d90]
cmp word [0x100022d90], r15w
jne 0x100014cf8
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8027
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, r15d
jl 0x100014e7d
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r12, rcx
cmp ecx, r15d
je 0x100014e7f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r15d
jne 0x100014d41
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100014d41
cmp eax, 5
je 0x100014d41
cmp eax, r15d
jne 0x100014e7d
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_time
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_localtime
cmp rax, r15
je 0x100014e72
lea r8, [0x100004174]
lea rcx, [rsp + 0x40]
mov r9, rax
mov edx, 0x40
call sub.msvcrt.dll_wcsftime
cmp rax, r15
je 0x100014e72
lea rax, [rsp + 0x40]
cmp word [rsp + 0x40], r15w
je 0x100014dbb
cmp word [rax], 0x2f
je 0x100014da9
cmp word [rax], 0x5c
je 0x100014da9
cmp word [rax], 0x1e
jae 0x100014db1
mov ecx, 0x5f
mov word [rax], cx
jmp 0x100014db1
mov edx, 0x2d
mov word [rax], dx
add rax, 2
cmp word [rax], r15w
jne 0x100014d8d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov eax, r12d
not rcx
lea rdx, [rcx - 1]
mov edx, edx
add rdx, r14
add rdx, rax
mov eax, 0xffffffff
lea rbp, [rdx + rdx + 4]
cmp rbp, rax
ja 0x100014e7d
cmp ebp, r12d
jb 0x100014e7d
mov ecx, ebp
call fcn.100015a28
mov rsi, rax
cmp rax, r15
je 0x100014e7d
mov r8, rbx
mov edx, ebp
mov rcx, rax
mov edi, ebp
call fcn.10000b75c
lea ecx, [r12 - 1]
cmp word [rbx + rcx*2], 0x5c
je 0x100014e33
lea r8, [0x1000026ec]
mov rdx, rdi
mov rcx, rsi
call fcn.100006714
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.100006714
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r15d
jne 0x100014e67
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
cmove eax, r15d
cmp eax, r15d
jne 0x100014e72
mov rdx, rsi
mov rcx, rbx
call fcn.100014eb0
shr ebp, 1
mov rax, rsi
mov dword [r13], ebp
jmp 0x100014e7f
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100019220
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100015930
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
lea rbp, [rcx + 0x58]
mov r12d, r8d
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 0x20]
mov rcx, rbp
mov esi, r9d
call sub.msvcrt.dll_memset
cmp dword [rdi], 2
jne 0x100015973
mov rcx, qword [rdi + 0x18]
jmp 0x10001597f
cmp dword [rdi], 3
jne 0x1000159ab
mov rcx, qword [rdi + 0x20]
mov dword [rdi + 0x68], esi
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x1000159a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
cmove eax, ebx
mov ebx, eax
mov eax, ebx
jmp 0x1000159b0
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x1000159d0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
cmp qword [0x1000237a0], rbx
jne 0x100015a1a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rsp + 0x24]
xor ecx, ecx
mov edx, r11d
shl r11d, 0xc
mov r8d, r11d
shl edx, 6
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1000237a0], rax
cmp rax, rbx
jne 0x100015a1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x50
pop rbx
ret