joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41048bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rcx
lea rax, [0x4129c7f8]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x1178], eax
je 0x410484e2
mov dword [rbx + 0x1140], 0x3f3
xor edi, edi
mov dword [rbx + 0x1144], edi
mov dword [rbx + 0x1148], edi
jmp 0x41048544
mov rcx, qword [rbx + 0x1150]
xor edi, edi
test rcx, rcx
je 0x41048521
call qword [rbx + 0x11a0]
mov esi, eax
mov qword [rbx + 0x1150], rdi
mov rcx, qword [rbx + 0x1110]
test rcx, rcx
je 0x41048510
call fcn.41212980
mov qword [rbx + 0x1110], rdi
mov dword [rbx + 0x1118], edi
test esi, esi
je 0x41048544
mov ecx, dword [0x413611bc]
cmp ecx, 0xffffffff
je 0x41048544
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41048544
mov ecx, dword [0x413611bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rbx + 0x1180]
test rcx, rcx
je 0x41048556
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbx + 0x1160]
test rcx, rcx
je 0x41048568
call fcn.41210d60
nop
mov rcx, qword [rbx + 0x1130]
call fcn.41212980
nop
mov rcx, qword [rbx + 0x1110]
test rcx, rcx
je 0x41048586
call fcn.41212980
mov qword [rbx + 0x1110], rdi
mov dword [rbx + 0x1118], edi
mov rcx, qword [rbx + 0xa8]
call fcn.41212980
nop
mov rcx, qword [rbx + 0x98]
call fcn.41212980
nop
mov rcx, qword [rbx + 0x88]
call fcn.41210d60
mov rcx, qword [rbx + 0x90]
call fcn.41210d60
nop
mov rcx, qword [rbx + 0x20]
call fcn.41212980
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.41212980
lea rax, [0x4129c858]
mov qword [rcx], rax
jmp 0x41048490
Function at 0x41048f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rcx
lea rdx, [rcx + 0x11d0]
lea rcx, [rsp + 0x28]
call fcn.41048e10
nop
mov r8d, dword [rbx + 0x11c8]
test r8d, r8d
je 0x41048fbb
lea rdx, [0x4129c708]
lea rcx, [rsp + 0x28]
call fcn.41045dc0
xor edx, edx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, qword [rbx + 0x11b8]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp ecx, dword [rbx + 0x11c0]
jb 0x41048ffa
lea rax, str.The_string_has_no_terminating_null_character_
mov qword [rsp + 0x50], rax
lea rdx, [0x4132aaf0]
lea rcx, [rsp + 0x50]
call fcn.41211a10
int3
test ecx, ecx
je 0x41049005
mov rdx, qword [rbx + 0x11b8]
mov rsi, qword [rbx + 0x1200]
test rsi, rsi
jne 0x4104901d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov r8, qword [rbx + 0x11e0]
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbx + 0x11f0], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbx + 0x11fc], eax
mov dword [rbx + 0x11f8], 0
cmp qword [rbx + 0x11f0], 0
je 0x4104908c
test eax, eax
je 0x4104908c
mov rcx, qword [rsp + 0x28]
call fcn.41212980
mov eax, 1
jmp 0x410490b6
mov dword [rbx + 0x1140], 0x3ec
mov dword [rbx + 0x1144], 0
mov dword [rbx + 0x1148], 0
mov rcx, qword [rsp + 0x28]
call fcn.41212980
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
lea rax, [0x4129c8b8]
mov rbx, rcx
mov qword [rcx], rax
mov rcx, qword [rcx + 0x11e0]
call fcn.41212980
mov rcx, qword [rbx + 0x11d0]
call fcn.41212980
mov rcx, qword [rbx + 0x11b8]
call fcn.41212980
mov rcx, qword [rbx + 0x11a8]
call fcn.41212980
lea r11, [0x4129c858]
mov rcx, rbx
mov qword [rbx], r11
add rsp, 0x20
pop rbx
jmp 0x41048490
Function at 0x4104a290
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x1178], eax
je 0x4104a2d0
mov dword [rbx + 0x1140], 0x3f3
xor edi, edi
xor eax, eax
mov dword [rbx + 0x1144], edi
mov dword [rbx + 0x1148], edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, dword [0x413611bc]
cmp ecx, 0xffffffff
je 0x4104a49b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4104a2f6
mov dword [rbx + 0x1140], 0x3f4
jmp 0x4104a2b5
mov ecx, dword [0x413611bc]
cmp ecx, 0xffffffff
je 0x4104a49b
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4104a49b
mov ecx, dword [0x413611bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x4104a49b
xor edi, edi
xor eax, eax
mov qword [rsp + 0x60], rsi
lea rsi, [rbx + 0x1120]
mov dword [rsi + 0x20], edi
mov dword [rsi + 0x24], edi
mov dword [rsi + 0x28], edi
mov dword [rsi], eax
mov dword [rsi + 4], eax
mov dword [rsi + 8], eax
cmp qword [rbx + 0x1150], rax
jne 0x4104a418
cmp qword [rbx + 0x1180], rax
jne 0x4104a428
lea rcx, str.Cabinet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.FDICreate
mov rcx, rax
mov qword [rbx + 0x1180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x1180]
lea rdx, str.FDICopy
mov qword [rbx + 0x1188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x1180]
lea rdx, str.FDIIsCabinet
mov qword [rbx + 0x1190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x1180]
lea rdx, str.FDIDestroy
mov qword [rbx + 0x1198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x1188], rdi
mov qword [rbx + 0x11a0], rax
je 0x4104a402
cmp qword [rbx + 0x1190], rdi
je 0x4104a402
cmp qword [rbx + 0x1198], rdi
je 0x4104a402
test rax, rax
jne 0x4104a428
mov qword [rbx + 0x1180], rdi
xor eax, eax
mov dword [rsi + 0x20], 0x3e8
mov dword [rsi + 0x24], edi
mov dword [rsi + 0x28], edi
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 1
lea rax, [0x410488a0]
mov qword [rsp + 0x30], rax
lea rax, [0x410487a0]
lea r9, [0x41048750]
mov qword [rsp + 0x28], rax
lea rax, [0x41046f80]
lea r8, [0x41049fc0]
lea rdx, [fcn.41212980]
lea rcx, [0x410466b0]
mov qword [rsp + 0x20], rax
call qword [rbx + 0x1188]
mov rsi, qword [rsp + 0x60]
test rax, rax
mov qword [rbx + 0x1150], rax
setne dil
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor edi, edi
mov dword [rbx + 0x1144], 0xe
xor eax, eax
mov dword [rbx + 0x1140], edi
mov dword [rbx + 0x1148], edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x4104ce40
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x4104ce7e
xor al, al
jmp 0x4104cfee
mov word [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.412121c0
lea rcx, [rsp + 0x30]
call fcn.4104c920
cmp qword [rax + 0x20], 8
jb 0x4104ceae
mov r8, qword [rax + 8]
jmp 0x4104ceb2
lea r8, [rax + 8]
lea rax, str..znpf
mov qword [rsp + 0x20], rax
mov r9, rbx
lea rdx, str._s_s_s
lea rcx, [rsp + 0x60]
call fcn.412122b0
cmp qword [rsp + 0x50], 8
jb 0x4104cee4
mov rcx, qword [rsp + 0x38]
call fcn.41210d60
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4104cf2f
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.41044990
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.41022de0
nop
cmp qword [rsp + 0x50], 8
jb 0x4104cf28
mov rcx, qword [rsp + 0x38]
call fcn.41210d60
mov al, 1
jmp 0x4104cfee
mov word [rsp + 0x270], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x272]
call fcn.412121c0
lea rcx, [rsp + 0x30]
call fcn.4104c920
cmp qword [rax + 0x20], 8
jb 0x4104cf65
mov r8, qword [rax + 8]
jmp 0x4104cf69
lea r8, [rax + 8]
lea rax, str..sznpf
mov qword [rsp + 0x20], rax
mov r9, rbx
lea rdx, str._s_s_s
lea rcx, [rsp + 0x270]
call fcn.412122b0
cmp qword [rsp + 0x50], 8
jb 0x4104cf9e
mov rcx, qword [rsp + 0x38]
call fcn.41210d60
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4104cfec
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x30]
call fcn.41044990
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.41022de0
nop
cmp qword [rsp + 0x50], 8
jb 0x4104cfe8
mov rcx, qword [rsp + 0x38]
call fcn.41210d60
mov al, 1
jmp 0x4104cfee
xor al, al
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
ret
Function at 0x4104d050
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
lea rdx, [0x4129cdf0]
call fcn.41213c60
test eax, eax
jne 0x4104d08e
mov eax, 1
jmp 0x4104d19e
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], 0
mov word [rsp + 0x58], 0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.4104ce40
test al, al
jne 0x4104d0d1
cmp qword [rsp + 0x70], 8
jb 0x4104d0ca
mov rcx, qword [rsp + 0x58]
call fcn.41210d60
xor eax, eax
jmp 0x4104d19e
lea rcx, [rsp + 0x50]
call fcn.41039360
lea rcx, [rsp + 0x28]
call fcn.4104cc40
lea r9, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r9, qword [rsp + 0x30]
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
xor r8d, r8d
lea rcx, [0x4129cde8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x4104d15c
cmp qword [rsp + 0x48], 8
jb 0x4104d12d
mov rcx, qword [rsp + 0x30]
call fcn.41210d60
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], 0
mov word [rsp + 0x30], 0
cmp qword [rsp + 0x70], 8
jb 0x4104d158
mov rcx, qword [rsp + 0x58]
call fcn.41210d60
xor eax, eax
jmp 0x4104d19e
cmp qword [rsp + 0x48], 8
jb 0x4104d16e
mov rcx, qword [rsp + 0x30]
call fcn.41210d60
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], 0
mov word [rsp + 0x30], 0
cmp qword [rsp + 0x70], 8
jb 0x4104d199
mov rcx, qword [rsp + 0x58]
call fcn.41210d60
mov eax, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x80
pop rbx
ret
Function at 0x410500d0
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x50
lea r8, [0x4104ff70]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x413604b0], 0
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea r8, [rsp + 0x20]
lea ecx, [rdx + 0x30]
xor r9d, r9d
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x28]
mov ecx, dword [0x413604b0]
sub eax, dword [rsp + 0x20]
cmp ecx, 1
jle 0x41050181
test ecx, ecx
jle 0x41050181
lea rdx, [0x41360418]
mov r8, rcx
nop
nop
nop
mov ecx, dword [rdx]
cmp ecx, eax
cmovg eax, ecx
add rdx, 0x10
sub r8, 1
jne 0x41050170
add rsp, 0x50
pop rbx
ret

Function at 0x41050190
Capabilities:
Find taskbar

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea r8, [0x4104ff70]
xor esi, esi
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x413604b0], esi
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x20]
lea ecx, [rsi + 0x30]
xor r9d, r9d
xor edx, edx
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x413604b0]
sub edi, dword [rsp + 0x24]
cmp eax, 1
jle 0x4105028f
test eax, eax
jle 0x4105028f
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
lea r12, [0x41360410]
lea rbp, [0x4136041c]
nop
movsxd rcx, esi
mov rdx, rbx
shl rcx, 4
add rcx, r12
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x41050276
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x41050273
mov edi, dword [rsp + 0x2c]
sub edi, dword [rsp + 0x24]
jmp 0x41050276
mov edi, dword [rbp]
add esi, 1
add rbp, 0x10
cmp esi, dword [0x413604b0]
jl 0x41050240
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x410502b0
Capabilities:
Find taskbar

Disassembly:
push rbx
push rsi
push rdi
push r13
sub rsp, 0x58
mov rsi, rcx
lea r8, [0x4104ff70]
xor r13d, r13d
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x413604b0], r13d
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
lea ecx, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea r8, [rsp + 0x20]
lea ecx, [rdx + 0x30]
xor r9d, r9d
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [rsp + 0x2c]
mov ecx, dword [0x413604b0]
sub edi, dword [rsp + 0x24]
cmp ecx, 1
jle 0x41050426
test ecx, ecx
mov eax, dword [rsi + 8]
mov qword [rsp + 0x80], rbp
mov dword [rsp + 0x88], eax
mov eax, dword [rsi + 0xc]
mov esi, r13d
mov dword [rsp + 0x8c], eax
lea rbp, [0x4136041c]
jle 0x410503f0
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x50], r14
lea r14, [0x41360410]
mov r12, rbp
movsxd rcx, esi
mov rdx, rbx
shl rcx, 4
add rcx, r14
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x410503cd
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r13d, 1
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x410503c9
mov edi, dword [rsp + 0x2c]
sub edi, dword [rsp + 0x24]
jmp 0x410503cd
mov edi, dword [r12]
mov ecx, dword [0x413604b0]
add esi, 1
add r12, 0x10
cmp esi, ecx
jl 0x41050390
test r13d, r13d
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x90]
jne 0x41050412
test ecx, ecx
jle 0x41050412
mov edx, ecx
nop
nop
nop
mov eax, dword [rbp]
cmp eax, edi
cmovl edi, eax
add rbp, 0x10
sub rdx, 1
jne 0x41050400
mov eax, edi
mov rbp, qword [rsp + 0x80]
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret
mov eax, edi
add rsp, 0x58
pop r13
pop rdi
pop rsi
pop rbx
ret

Function at 0x41050720
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x50
xor edx, edx
lea r8, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x20]
add rsp, 0x50
pop rbx
ret

Function at 0x41050780
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x50
xor edx, edx
lea r8, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
add rsp, 0x50
pop rbx
ret
Function at 0x410507e0
Capabilities:
Find taskbar

Disassembly:
push rbx
sub rsp, 0x50
xor edx, edx
lea r8, [rsp + 0x20]
xor r9d, r9d
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
add rsp, 0x50
pop rbx
ret
Function at 0x41050860
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0xc90
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0xc60], rax
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], 0
call fcn.412121c0
xor ebx, ebx
mov rcx, rbx
lea rdx, str.C:log_
nop
nop
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x23e], ax
jne 0x410508c0
lea rcx, [rsp + 0x662]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x660], bx
call fcn.412121c0
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.412121c0
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.412120a0
lea rcx, [rsp + 0x872]
xor edx, edx
mov word [rax], bx
mov r8d, 0x3e6
mov word [rsp + 0x870], bx
call fcn.412121c0
lea r8, [rsp + 0x240]
lea rdx, str._sgswb.log
lea rcx, [rsp + 0x450]
call fcn.412122b0
lea rcx, [rsp + 0x450]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41050aff
or rcx, 0xffffffffffffffff
mov qword [rsp + 0xc88], rbp
xor eax, eax
mov qword [rsp + 0xc80], rsi
mov qword [rsp + 0xc78], rdi
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rsp + rcx*2 + 0x30]
lea rcx, [rsp + 0x660]
sub rcx, rdx
nop
nop
nop
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x410509c0
lea r9, [rsp + 0x660]
lea r8, [rsp + 0x240]
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x450]
call fcn.412122b0
mov r8, qword [rsp + 0xca0]
lea r9, [rsp + 0xca8]
lea rcx, [rsp + 0x870]
mov edx, 0x1f3
call fcn.41211f50
lea rcx, [rsp + 0x450]
mov word [rsp + 0xc56], bx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdx, [0x4129b2b8]
lea rcx, [rsp + 0x450]
test eax, eax
mov ebp, 1
cmovne ebx, ebp
call fcn.41214360
test rax, rax
mov rsi, rax
je 0x41050ae7
test ebx, ebx
jne 0x41050a76
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x24]
mov r9, rax
mov rdx, rbp
mov word [rsp + 0x24], 0xfeff
call fcn.41214130
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x870]
repne scasw ax, word [rdi]
mov r9, rsi
mov rdx, rbp
not rcx
sub rcx, rbp
add ecx, ecx
movsxd r8, ecx
lea rcx, [rsp + 0x870]
call fcn.41214130
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 2
mov rdx, rbp
mov word [rsp + 0x20], 0xd
call fcn.41214130
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 2
mov rdx, rbp
mov word [rsp + 0x20], 0xa
call fcn.41214130
mov rcx, rsi
call fcn.41213ed0
mov rsi, qword [rsp + 0xc80]
mov rbp, qword [rsp + 0xc88]
mov rdi, qword [rsp + 0xc78]
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.41211b80
add rsp, 0xc90
pop rbx
ret
Function at 0x410522e0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
or r8, 0xffffffffffffffff
mov rcx, r8
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, 2
not rcx
movsxd rdx, ecx
lea r12, [rcx - 1]
mul rdx
cmovo rax, r8
mov rcx, rax
call fcn.4120fd60
mov rbx, rax
sub rax, rsi
movzx ecx, word [rsi]
add rsi, 2
test cx, cx
mov word [rax + rsi - 2], cx
jne 0x41052330
xor edi, edi
test r12d, r12d
mov bpl, 1
movsxd rsi, r12d
js 0x4105238d
nop
cmp word [rbx + rdi*2], 0x5c
jne 0x4105237f
mov rcx, rbx
mov word [rbx + rdi*2], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41052379
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4105238a
mov word [rbx + rdi*2], 0x5c
add rdi, 1
cmp rdi, rsi
jle 0x41052350
jmp 0x4105238d
xor bpl, bpl
mov rcx, rbx
call fcn.41212980
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
movzx eax, bpl
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop r12
ret
Function at 0x41067af0
Capabilities:
Read .ini file

Disassembly:
test rcx, rcx
je 0x41067c35
push rbx
sub rsp, 0x140
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp byte [rcx + 0x148], 1
jne 0x41067c1d
movzx edx, byte [rcx + 0x149]
lea rcx, [rsp + 0x30]
call fcn.41067850
nop
mov rax, qword [0x4135c018]
test rax, rax
jne 0x41067b6e
mov ecx, 0x2d0
call fcn.41211580
mov qword [rsp + 0x20], rax
test rax, rax
je 0x41067b65
mov rcx, rax
call fcn.410228e0
jmp 0x41067b67
xor eax, eax
mov qword [0x4135c018], rax
mov rcx, rax
call fcn.4102a810
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r9, rax
xor r8d, r8d
lea rcx, str.ActionCorrect
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r8d, [rax + 1]
lea rdx, [0x412cafe4]
lea rcx, [rsp + 0x60]
call fcn.412122b0
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rbx, qword [rsp + 0x38]
mov rax, qword [0x4135c018]
test rax, rax
jne 0x41067bf3
mov ecx, 0x2d0
call fcn.41211580
mov qword [rsp + 0x20], rax
test rax, rax
je 0x41067bea
mov rcx, rax
call fcn.410228e0
jmp 0x41067bec
xor eax, eax
mov qword [0x4135c018], rax
lea r9, [rsp + 0x60]
mov r8, rbx
lea rdx, str.ActionCorrect
mov rcx, rax
call fcn.4102aa50
nop
cmp qword [rsp + 0x50], 8
jb 0x41067c1d
mov rcx, qword [rsp + 0x38]
call fcn.41210d60
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x140
pop rbx
ret 0

Function at 0x41067af9
Capabilities:
Read .ini file

Disassembly:
test rcx, rcx
je 0x41067c35
push rbx
sub rsp, 0x140
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp byte [rcx + 0x148], 1
jne 0x41067c1d
movzx edx, byte [rcx + 0x149]
lea rcx, [rsp + 0x30]
call fcn.41067850
nop
mov rax, qword [0x4135c018]
test rax, rax
jne 0x41067b6e
mov ecx, 0x2d0
call fcn.41211580
mov qword [rsp + 0x20], rax
test rax, rax
je 0x41067b65
mov rcx, rax
call fcn.410228e0
jmp 0x41067b67
xor eax, eax
mov qword [0x4135c018], rax
mov rcx, rax
call fcn.4102a810
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r9, rax
xor r8d, r8d
lea rcx, str.ActionCorrect
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r8d, [rax + 1]
lea rdx, [0x412cafe4]
lea rcx, [rsp + 0x60]
call fcn.412122b0
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rbx, qword [rsp + 0x38]
mov rax, qword [0x4135c018]
test rax, rax
jne 0x41067bf3
mov ecx, 0x2d0
call fcn.41211580
mov qword [rsp + 0x20], rax
test rax, rax
je 0x41067bea
mov rcx, rax
call fcn.410228e0
jmp 0x41067bec
xor eax, eax
mov qword [0x4135c018], rax
lea r9, [rsp + 0x60]
mov r8, rbx
lea rdx, str.ActionCorrect
mov rcx, rax
call fcn.4102aa50
nop
cmp qword [rsp + 0x50], 8
jb 0x41067c1d
mov rcx, qword [rsp + 0x38]
call fcn.41210d60
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.41211b80
add rsp, 0x140
pop rbx
ret 0