joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41035de0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x660
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov rsi, rcx
mov rdi, rdx
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], 0
call fcn.412121c0
lea rcx, [rsp + 0x442]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x440], 0
call fcn.412121c0
lea rcx, [rsp + 0x230]
mov r11, rsi
sub rcx, rsi
movzx eax, word [r11]
add r11, 2
test ax, ax
mov word [rcx + r11 - 2], ax
jne 0x41035e51
lea rdx, [rsp + 0x440]
mov rcx, rdi
sub rdx, rdi
nop
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x41035e80
lea rcx, [rsp + 0x230]
call fcn.412125d0
lea rcx, [rsp + 0x440]
call fcn.412125d0
lea r11, [rsp + 0x230]
lea rdx, [rsp + 0x440]
sub rdx, r11
nop
movzx ecx, word [r11]
movzx eax, word [r11 + rdx]
sub ecx, eax
jne 0x41035ed5
add r11, 2
test eax, eax
jne 0x41035ec0
test ecx, ecx
je 0x41035fb6
mov qword [rsp + 0x680], rbx
xor ebx, ebx
nop
nop
nop
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], 0
call fcn.412121c0
test ebx, ebx
jne 0x41035f23
lea rdx, str._s.bak
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.410035d0
jmp 0x41035f3a
lea rdx, str._s.bak_d
lea rcx, [rsp + 0x20]
mov r9d, ebx
mov r8, rdi
call fcn.410035d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41035f54
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.412135a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41035f9d
lea r8d, [rax + 5]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp ebx, 0xa
jge 0x41035fae
add ebx, 1
jmp 0x41035ef0
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.41211b80
mov rsi, qword [rsp + 0x688]
add rsp, 0x660
pop rdi
ret

Function at 0x41035fe0
Capabilities:
Check if file exists
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41036002
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
add rsp, 0x20
pop rbx
ret
Function at 0x41036010
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410361d3
mov qword [rsp + 0x188], rbx
mov qword [rsp + 0x190], rbp
xor ebp, ebp
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x198], rsi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x41036096
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea edi, [rbp + 1]
movsxd rcx, edi
call fcn.4120fd60
lea r9, [rsp + 0x40]
mov r8d, edi
mov rcx, rsi
mov rdx, rax
mov dword [rsp + 0x40], 0
mov rbx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [str.identifierBegin:abcdefghijklmnopqrstuvwxyz:identifierEnd]
mov rax, qword [0x4129b1e8]
lea rdx, [rsp + 0x50]
mov r8d, 0xcb
mov qword [rdx], rcx
mov rcx, qword [0x4129b1e0]
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rax
mov rax, qword [0x4129b1f0]
mov qword [rdx + 0x18], rax
mov rax, qword [0x4129b1f8]
lea rcx, [rsp + 0x89]
mov qword [rdx + 0x20], rax
mov rax, qword [0x4129b200]
mov qword [rdx + 0x28], rax
mov rax, qword [0x4129b208]
mov qword [rdx + 0x30], rax
movzx eax, byte [0x4129b210]
mov byte [rdx + 0x38], al
xor edx, edx
call fcn.412121c0
or rcx, 0xffffffffffffffff
xor eax, eax
movsxd rsi, ebp
mov rbp, qword [rsp + 0x190]
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
xor r9d, r9d
not rcx
sub rcx, 1
test rsi, rsi
mov r10, rcx
movsxd r8, ecx
jle 0x410361b4
movzx r11d, byte [rsp + 0x50]
cmp byte [r9 + rbx], r11b
lea rdi, [r9 + rbx]
jne 0x410361ab
xor edx, edx
xor ecx, ecx
test r10d, r10d
jle 0x410361ab
nop
nop
movzx eax, byte [rsp + rcx + 0x50]
cmp byte [rdi + rcx], al
jne 0x410361ab
add edx, 1
cmp edx, r10d
je 0x410361ec
add rcx, 1
cmp rcx, r8
jl 0x41036190
add r9, 1
cmp r9, rsi
jl 0x41036175
test rbx, rbx
je 0x410361c1
mov rcx, rbx
call fcn.41212980
xor eax, eax
mov rbx, qword [rsp + 0x188]
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x170
pop rdi
ret
test rbx, rbx
je 0x410361f9
mov rcx, rbx
call fcn.41212980
mov eax, 1
jmp 0x410361c3
Function at 0x41036200
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x690
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, rcx
lea rcx, [rsp + 0x262]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x260], 0
call fcn.412121c0
lea rcx, [rsp + 0x260]
sub rcx, rbx
nop
movzx eax, word [rbx]
add rbx, 2
test ax, ax
mov word [rcx + rbx - 2], ax
jne 0x41036250
lea rcx, [rsp + 0x260]
call fcn.412125d0
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov rdi, rax
je 0x4103634a
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41036341
nop
nop
nop
nop
lea rcx, [rsp + 0x472]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x470], 0
call fcn.412121c0
xor r11d, r11d
movzx eax, word [rsp + r11 + 0x4c]
add r11, 2
test ax, ax
mov word [rsp + r11 + 0x46e], ax
jne 0x410362d2
lea rcx, [rsp + 0x470]
call fcn.412125d0
lea r11, [rsp + 0x470]
lea rdx, [rsp + 0x260]
sub rdx, r11
nop
nop
movzx ecx, word [r11]
movzx eax, word [r11 + rdx]
sub ecx, eax
jne 0x41036325
add r11, 2
test eax, eax
jne 0x41036310
test ecx, ecx
jne 0x4103632c
add ebx, 1
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x410362b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0x6a0]
add rsp, 0x690
pop rdi
ret

Function at 0x41036570
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.412121c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rsp + 0x24]
cmp r11d, 6
jb 0x410365dd
cmp dword [rsp + 0x28], 2
jb 0x410365dd
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x158
ret
xor eax, eax
cmp r11d, 0xa
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x158
ret
Function at 0x41036630
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41036653
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x4103665b
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
add rsp, 0x20
pop rbx
ret
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x30], rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx + rcx]
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rdi, rax
jne 0x41036699
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
movzx ecx, word [rbx]
add rax, 2
add rbx, 2
test cx, cx
mov word [rax - 2], cx
jne 0x410366a2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x30]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x410366f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x41036710
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41036708
mov ecx, 1
mov qword [rsp + 0x30], rbx
call qword [sym.imp.USER32.dll_GetClipboardData]
test rax, rax
mov rbx, rax
je 0x41036746
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
mov rdi, rax
jne 0x41036759
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x41036790
Capabilities:
Open clipboard

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x410367c5
mov rcx, rbx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410367c5
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x410367cd
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.USER32.dll_CloseClipboard]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x410367f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
sub rsp, 0x20
mov rbp, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41036809
add rsp, 0x20
pop rbp
ret
mov qword [rsp + 0x30], rbx
mov ecx, 1
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
jne 0x4103685e
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rbp
ret
test rsi, rsi
je 0x4103687f
sub rbp, rsi
nop
nop
nop
movzx ecx, byte [rsi]
add rsi, 1
test cl, cl
mov byte [rsi + rbp - 1], cl
jne 0x41036870
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rbp
ret

Function at 0x41036ca0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1640
call fcn.41295c90
sub rsp, rax
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x1630], rax
mov rbx, rcx
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x270], 0
call fcn.412121c0
lea rdx, [0x4129b194]
lea rcx, [rsp + 0x270]
mov r8, rbx
call fcn.410035d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
lea eax, [rcx - 1]
test eax, eax
jle 0x41036d35
movsxd rax, ecx
cmp word [rsp + rax*2 + 0x26e], 0x5c
je 0x41036d35
mov word [rsp + rax*2 + 0x270], 0x5c
lea r8, [rsp + 0x270]
lea rdx, [0x4129b260]
lea rcx, [rsp + 0x690]
call fcn.410035d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x690]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x41036e2f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41036e2f
cmp word [rsp + 0x4c], 0x2e
je 0x41036d71
movzx eax, word [rsp + 0x4e]
test ax, ax
je 0x41036d71
cmp ax, 0x2e
jne 0x41036da7
cmp word [rsp + 0x50], 0
je 0x41036d71
test byte [rsp + 0x20], 0x10
je 0x41036dfb
lea rcx, [rsp + 0x482]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x480], 0
call fcn.412121c0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x270]
lea rdx, [0x4129a1b0]
lea rcx, [rsp + 0x480]
call fcn.410035d0
lea rcx, [rsp + 0x480]
call fcn.41036ca0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x270]
lea rdx, [0x4129a250]
lea rcx, [rsp + 0xe60]
call fcn.410035d0
lea rcx, [rsp + 0xe60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41036d71
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x1630]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0x1658]
add rsp, 0x1640
pop rdi
ret
Function at 0x41036f50
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov esi, ecx
mov edi, edx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.412121c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x41036fe9
cmp dword [rsp + 0x24], 6
jb 0x41036fe9
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x41036fe0
neg edi
mov ecx, esi
sbb edx, edx
add edx, 2
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.41211b80
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x4103d8e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xfe0
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0xfd0], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
lea rdx, str.Program_FilesInternet_Exploreriexplore.exe
nop
nop
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x32], ax
jne 0x4103d920
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
xor ecx, ecx
nop
nop
nop
nop
movzx eax, word [rbx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x4103d950
lea rdx, str.open
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4103d99f
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.4103a4d0
mov rcx, qword [rsp + 0xfd0]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0xff8]
add rsp, 0xfe0
pop rdi
ret

Function at 0x4103d9c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x4103daa4
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor edx, edx
lea rcx, str.Program_FilesInternet_Exploreriexplore.exe
nop
nop
nop
movzx eax, word [rdx + rcx]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x3a], ax
jne 0x4103da20
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
xor ecx, ecx
nop
nop
nop
nop
movzx eax, word [rbx + rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 4], ax
jne 0x4103da50
lea rdx, str.open
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4103da9f
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.4103a4d0
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x4103dad0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x4103db38
lea rdx, str.open
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4103db33
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.4103a4d0
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x41044990
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x150
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
mov qword [r11 - 0xe0], 7
mov qword [r11 - 0xe8], r14
mov word [r11 - 0xf8], r14w
lea rcx, [r11 - 0xa8]
call fcn.4113c7a0
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41044bb3
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x41044a81
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
mov word [rbx + 8], r14w
xor r8d, r8d
lea rdx, [0x412a02a8]
mov rcx, rbx
call fcn.41024690
nop
cmp qword [rsp + 0x98], 8
jb 0x41044a79
mov rcx, qword [rsp + 0x80]
call fcn.41210d60
mov rax, rbx
jmp 0x41044bf5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea rcx, [rbp + 1]
call fcn.4120fd60
mov rsi, rax
test rax, rax
jne 0x41044ae2
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
mov word [rbx + 8], ax
xor r8d, r8d
lea rdx, [0x412a02a8]
mov rcx, rbx
call fcn.41024690
nop
cmp qword [rsp + 0x98], 8
jb 0x41044ada
mov rcx, qword [rsp + 0x80]
call fcn.41210d60
mov rax, rbx
jmp 0x41044bf5
lea r8, [rbp + 1]
xor edx, edx
mov rcx, rax
call fcn.412121c0
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, rbp
mov rdx, rsi
lea rcx, [rsp + 0xd0]
call fcn.4113d270
mov rcx, rsi
call fcn.41212980
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.4113d6a0
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.4103b960
nop
cmp qword [rsp + 0x68], 0x10
jb 0x41044b63
mov rcx, qword [rsp + 0x50]
call fcn.41210d60
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
cmp qword [rsp + 0xb8], 0
jbe 0x41044b9b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.41022de0
nop
cmp qword [rsp + 0xc0], 8
jb 0x41044bb3
mov rcx, qword [rsp + 0xa8]
call fcn.41210d60
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
mov word [rbx + 8], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.41022de0
nop
cmp qword [rsp + 0x98], 8
jb 0x41044bf2
mov rcx, qword [rsp + 0x80]
call fcn.41210d60
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.41211b80
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x41044d80
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x248
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [rcx], 0
jne 0x41044dbb
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x248
ret
mov qword [rsp + 0x250], rbx
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.41036600
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41044e3d
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov qword [rsp + 0x240], rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor ebx, ebx
cmp qword [0x4133a758], rbx
je 0x41044e33
lea rdi, [0x4133a758]
mov rax, rdi
mov rdx, qword [rax]
lea rcx, [rsp + 0x20]
call fcn.41212810
test rax, rax
jne 0x41044e5d
add rbx, 1
cmp qword [rdi + rbx*8], 0
lea rax, [rdi + rbx*8]
jne 0x41044e12
xor eax, eax
mov rdi, qword [rsp + 0x240]
mov rbx, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x248
ret
mov eax, 1
jmp 0x41044e35

Function at 0x410467f0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
movzx ebx, r9w
xor r9d, r9d
movzx ebp, r8w
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x410468b1
lea r8, [rsp + 0x48]
movzx edx, bx
movzx ecx, bp
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
movzx ebx, word [rsp + 0x80]
test eax, eax
je 0x4104689a
test bx, 0x100
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x40], rcx
ja 0x41046884
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, bl
mov rcx, rsi
and edx, 0x27
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x41046c90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41046ccc
test al, 0x10
mov eax, 0
seta al
test eax, eax
je 0x41046ccc
xor eax, eax
jmp 0x41046d7c
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.41046b40
nop
xor eax, eax
or rcx, 0xffffffffffffffff
mov rbx, qword [rsp + 0x28]
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp ecx, 1
jle 0x41046d09
movsxd rax, ecx
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x41046d09
mov word [rbx + rax*2 - 2], 0
mov dx, 0x5c
mov rcx, rbx
call fcn.412120a0
test rax, rax
jne 0x41046d29
mov rcx, rbx
call fcn.41212980
mov eax, 0xf
jmp 0x41046d7c
mov word [rax], 0
mov rcx, rbx
call fcn.41046c90
mov edi, eax
test eax, eax
je 0x41046d48
mov rcx, rbx
call fcn.41212980
mov eax, edi
jmp 0x41046d7c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41046d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0xb7
je 0x41046d72
mov rcx, rbx
call fcn.41212980
mov eax, edi
jmp 0x41046d7c
mov rcx, rbx
call fcn.41212980
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x41046eb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x1178], eax
je 0x41046ef0
xor edi, edi
mov dword [rbx + 0x1140], 0x3f3
xor eax, eax
mov dword [rbx + 0x1144], edi
mov dword [rbx + 0x1148], edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x1150]
test rcx, rcx
je 0x41046f46
mov qword [rsp + 0x30], rsi
call qword [rbx + 0x11a0]
xor edi, edi
mov qword [rbx + 0x1150], rdi
mov rcx, qword [rbx + 0x1110]
mov esi, eax
test rcx, rcx
je 0x41046f23
call fcn.41212980
test esi, esi
mov rsi, qword [rsp + 0x30]
mov qword [rbx + 0x1110], rdi
mov dword [rbx + 0x1118], edi
jne 0x41046f46
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [0x413611bc]
cmp ecx, 0xffffffff
je 0x41046f69
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41046f69
mov ecx, dword [0x413611bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret