joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ec09
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0042e9c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42eca4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x447484]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x42eca4
cmp eax, 1
je 0x42ecc5
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42eca4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42ec71
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42eca0
xor eax, eax
inc eax
jmp 0x42ece4
cmp edi, eax
jae 0x42eca8
xor eax, eax
jmp 0x42ece4
cmp eax, esi
jae 0x42ecaf
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x447484]
jmp 0x42ecc8
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430506
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x447810], ebx
push esi
push edi
jne 0x430586
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4305c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x447810], eax
je 0x4305c1
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x447814], eax
call esi
cmp dword [0x447484], 2
mov dword [0x447818], eax
jne 0x430586
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x447820], eax
je 0x430586
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44781c], eax
mov eax, dword [0x44781c]
test eax, eax
je 0x4305cb
call eax
test eax, eax
je 0x4305b2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x447820]
test eax, eax
je 0x4305b2
test byte [ebp - 8], 1
jne 0x4305cb
cmp dword [0x447490], 4
jb 0x4305c5
or byte [ebp + 0x12], 0x20
jmp 0x4305ea
xor eax, eax
jmp 0x4305fa
or byte [ebp + 0x12], 4
jmp 0x4305ea
mov eax, dword [0x447814]
test eax, eax
je 0x4305ea
call eax
mov ebx, eax
test ebx, ebx
je 0x4305ea
mov eax, dword [0x447818]
test eax, eax
je 0x4305ea
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x447810]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4306c5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x441478
call fcn.0042a33c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x447824], edi
jne 0x430709
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4306f4
mov dword [0x447824], ebx
jmp 0x430709
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x430709
mov dword [0x447824], 2
mov eax, dword [0x447824]
cmp eax, ebx
jne 0x430729
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4307ec
cmp eax, 2
je 0x430732
cmp eax, edi
jne 0x43075a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x430745
mov eax, dword [0x44750c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x430761
xor eax, eax
jmp 0x4307ec
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0042e9c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x430794
cmp esi, edi
jne 0x4307aa
push dword [ebp - 0x20]
call fcn.004282c7
pop ecx
mov esi, eax
cmp esi, edi
je 0x43075a
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4307dd
cmp dword [ebp + 0x14], edi
jne 0x4307c7
push edi
push edi
jmp 0x4307cd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4307e9
push esi
call fcn.004273b8
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0042a377
ret
Function at 0x4307f5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x441488
call fcn.0042a33c
xor esi, esi
cmp dword [0x447828], esi
jne 0x430839
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430824
mov dword [0x447828], edi
jmp 0x430839
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x430839
mov dword [0x447828], 2
mov eax, dword [0x447828]
cmp eax, 2
je 0x43091a
cmp eax, esi
je 0x43091a
cmp eax, 1
jne 0x43087e
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x430867
mov eax, dword [0x44750c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x430885
xor eax, eax
jmp 0x43092c
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042e9c0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4308bb
cmp edi, esi
jne 0x4308d6
lea eax, [ebx + ebx]
push eax
call fcn.004282c7
pop ecx
mov edi, eax
cmp edi, esi
je 0x43087e
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430909
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4308f3
push esi
push esi
jmp 0x4308f9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x430915
push edi
call fcn.004273b8
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x43092c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0042a377
ret
Function at 0x432221
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0042e9c0
mov eax, dword [0x44647c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x447b60]
mov dword [ebp - 4], eax
jae 0x432364
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x447b80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x432364
push 1
push esi
push ebx
call fcn.0042cb48
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x43236e
push 2
push esi
push ebx
call fcn.0042cb48
add esp, 0xc
cmp eax, 0xffffffff
je 0x43236e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43230e
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042a2a0
push 0x8000
push ebx
call fcn.00432a1d
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4322cd
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0042c24e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4322eb
sub edi, eax
test edi, edi
jg 0x4322c2
jmp 0x432301
cmp dword [0x44747c], 5
jne 0x4322fe
mov dword [0x447478], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00432a1d
pop ecx
pop ecx
jmp 0x43234e
jge 0x43234e
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0042cb48
push ebx
call fcn.00430bc1
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x43234e
mov dword [0x447478], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x44747c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0042cb48
add esp, 0xc
mov eax, esi
pop edi
jmp 0x432371
mov dword [0x447478], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042714d
leave
ret
Function at 0x403a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404ed0
test esi, esi
jne 0x403ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405048
jmp 0x403ae4
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004039d4
mov edi, eax
test esi, esi
je 0x403ae4
cmp dword [ebx], 0
je 0x403ae4
dec esi
jmp 0x403acd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403af0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40f008], 0x8088405
inc edx
mov dword [ebx + 0x40f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404b7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410038], 0
je 0x404be3
cmp word [0x410324], 0xd7b2
jne 0x404ba5
cmp dword [0x41032c], 0
jbe 0x404ba5
mov eax, 0x410320
call dword [0x41033c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x404c10
call fcn.00405448
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x40f022], 0
jne 0x404bff
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404dac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x40f024], 0
je 0x404dd7
mov edx, edi
mov eax, esi
call dword [0x40f024]
mov ebx, eax
jmp 0x404de8
mov eax, 8
call fcn.0040379c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x410039], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x404d74
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x404e18
mov eax, ebx
call fcn.004037b8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x407558
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xfffffeec
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x114
call fcn.00403b90
mov dword [esp], 0x114
push esp
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x4075cc
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4075ae
mov edx, dword [esp + 8]
test edx, edx
jne 0x407598
mov ebx, 0x32
jmp 0x4075ae
cmp edx, 2
jne 0x4075a4
mov ebx, 0x34
jmp 0x4075ae
cmp edx, 1
jne 0x4075ae
mov ebx, 0x33
cmp eax, 6
jne 0x4075cc
mov eax, dword [esp + 8]
test eax, eax
jne 0x4075c2
mov ebx, 0x3c
jmp 0x4075cc
cmp eax, 1
jne 0x4075cc
mov ebx, 0x3d
mov eax, ebx
add esp, 0x114
pop ebx
ret
Function at 0x40829c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x40831f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x408338
call fcn.004075d8
call fcn.00407558
mov dword [0x412ba8], eax
push 0x40835c
call sub.KERNEL32.DLL_LoadLibraryW
mov ebx, eax
test ebx, ebx
je 0x408315
push 0x408378
push ebx
call fcn.00407140
mov dword [0x412bb0], eax
push 0x4083a8
push ebx
call fcn.00407140
mov dword [0x412bb4], eax
push 0x4083d8
push ebx
call fcn.00407140
mov dword [0x412bb8], eax
push ebx
call sub.KERNEL32.DLL_FreeLibrary_2
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x408329
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4088cc
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xfffffeec
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x114
call fcn.00403b90
mov dword [esp], 0x114
push esp
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x408940
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x408922
mov edx, dword [esp + 8]
test edx, edx
jne 0x40890c
mov ebx, 0x32
jmp 0x408922
cmp edx, 2
jne 0x408918
mov ebx, 0x34
jmp 0x408922
cmp edx, 1
jne 0x408922
mov ebx, 0x33
cmp eax, 6
jne 0x408940
mov eax, dword [esp + 8]
test eax, eax
jne 0x408936
mov ebx, 0x3c
jmp 0x408940
cmp eax, 1
jne 0x408940
mov ebx, 0x3d
mov eax, ebx
add esp, 0x114
pop ebx
ret

Function at 0x408a4c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x408af3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x408b0c
call fcn.0040894c
call fcn.004088cc
mov dword [0x412bbc], eax
push 0x408b30
call sub.KERNEL32.DLL_LoadLibraryW
mov ebx, eax
push 0x408b4c
call sub.KERNEL32.DLL_LoadLibraryW
mov dword [0x412bd0], eax
test ebx, ebx
je 0x408ae9
push 0x408b60
push ebx
call fcn.00407140
mov dword [0x412bc0], eax
push 0x408b90
push ebx
call fcn.00407140
mov dword [0x412bc4], eax
push 0x408bc0
push ebx
call fcn.00407140
mov dword [0x412bc8], eax
push 0x408bec
mov eax, dword [0x412bd0]
push eax
call fcn.00407140
mov dword [0x412bcc], eax
push ebx
call sub.KERNEL32.DLL_FreeLibrary_2
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x408afd
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x409350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 4]
call fcn.00404fc4
xor eax, eax
push ebp
push 0x409468
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov ax, 0x5c
call fcn.004092e4
mov esi, eax
test esi, esi
jle 0x40944d
lea eax, [ebp - 8]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405640
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405524
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x40944d
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4093e0
sub ebx, 4
mov eax, dword [ebx]
shr eax, 1
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov ecx, ebx
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00405640
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405638
jne 0x40941f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
jmp 0x409444
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405524
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40946f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f90
ret

Function at 0x409644
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebx
push esi
test al, al
je 0x409680
push 0
push 0x4096b0
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_FindWindowExW
mov ebx, eax
push 0
push 0x4096c0
call sub.user32.dll_FindWindowW
mov esi, eax
push 1
push ebx
call sub.user32.dll_ShowWindow
push esi
push ebx
call sub.user32.dll_SetParent
pop esi
pop ebx
ret
push 0
push 0x4096b0
push 0
push 0
push 0x4096c0
call sub.user32.dll_FindWindowW
push eax
call sub.user32.dll_FindWindowExW
mov ebx, eax
push 0
push ebx
call sub.user32.dll_ShowWindow
push 0
push ebx
call sub.user32.dll_SetParent
pop esi
pop ebx
ret

Function at 0x409660
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebx
push esi
test al, al
je 0x409680
push 0
push 0x4096b0
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_FindWindowExW
mov ebx, eax
push 0
push 0x4096c0
call sub.user32.dll_FindWindowW
mov esi, eax
push 1
push ebx
call sub.user32.dll_ShowWindow
push esi
push ebx
call sub.user32.dll_SetParent
pop esi
pop ebx
ret
push 0
push 0x4096b0
push 0
push 0
push 0x4096c0
call sub.user32.dll_FindWindowW
push eax
call sub.user32.dll_FindWindowExW
mov ebx, eax
push 0
push ebx
call sub.user32.dll_ShowWindow
push 0
push ebx
call sub.user32.dll_SetParent
pop esi
pop ebx
ret
Function at 0x409689
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar

Disassembly:
push ebx
push esi
test al, al
je 0x409680
push 0
push 0x4096b0
push 0
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_FindWindowExW
mov ebx, eax
push 0
push 0x4096c0
call sub.user32.dll_FindWindowW
mov esi, eax
push 1
push ebx
call sub.user32.dll_ShowWindow
push esi
push ebx
call sub.user32.dll_SetParent
pop esi
pop ebx
ret
push 0
push 0x4096b0
push 0
push 0
push 0x4096c0
call sub.user32.dll_FindWindowW
push eax
call sub.user32.dll_FindWindowExW
mov ebx, eax
push 0
push ebx
call sub.user32.dll_ShowWindow
push 0
push ebx
call sub.user32.dll_SetParent
pop esi
pop ebx
ret

Function at 0x4096f4
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebx
push ecx
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push 0x409760
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
push 0
lea eax, [esp + 4]
push eax
push 0x146
push 0x40f884
push ebx
call sub.KERNEL32.DLL_WriteFile_1
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
mov ebx, 0x7f00
push ebx
push 0x409760
call sub.user32.dll_LoadCursorFromFileW
push eax
call sub.user32.dll_SetSystemCursor
inc ebx
cmp ebx, 0x7f8b
jne 0x409736
push 0x409760
call sub.KERNEL32.DLL_DeleteFileW
pop edx
pop ebx
ret

Function at 0x409b48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x409bd0
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x409b7e
sub eax, 4
mov eax, dword [eax]
dec eax
jne 0x409b8e
lea eax, [ebp - 4]
mov edx, 0x409bec
call fcn.00405814
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004056e8
push eax
call sub.KERNEL32.DLL_GetVolumeInformationW
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.KERNEL32.DLL_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409bd7
lea eax, [ebp - 4]
call fcn.00404ed0
ret
Function at 0x409bf4
Capabilities:
Copy file
Create directory
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x409bfc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fb4
mov eax, dword [ebp - 8]
call fcn.00404fb4
xor eax, eax
push ebp
push 0x409d5e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
mov ecx, 0x409d78
mov edx, dword [ebp - 4]
call fcn.0040586c
mov eax, dword [ebp - 0x14]
call fcn.004056e8
push eax
call sub.KERNEL32.DLL_CreateDirectoryW
push 2
lea eax, [ebp - 0x18]
mov ecx, 0x409d9c
mov edx, dword [ebp - 4]
call fcn.0040586c
mov eax, dword [ebp - 0x18]
call fcn.004056e8
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
push 0
push dword [ebp - 4]
push 0x409dc0
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004058f4
mov eax, dword [ebp - 0x1c]
call fcn.004056e8
push eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00403a90
mov eax, dword [ebp - 0x20]
call fcn.004056e8
push eax
call sub.KERNEL32.DLL_CopyFileW
push 6
push dword [ebp - 4]
push 0x409de8
push dword [ebp - 8]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004058f4
mov eax, dword [ebp - 0x24]
call fcn.004056e8
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, 0x409e10
call fcn.0040586c
push 0
push 6
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x28]
mov ecx, 0x409e58
mov edx, dword [ebp - 4]
call fcn.0040586c
mov eax, dword [ebp - 0x28]
call fcn.004056e8
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.00405318
mov edx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x409d20
sub eax, 4
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x10]
push ecx
add eax, eax
push eax
push edx
push ebx
call sub.KERNEL32.DLL_WriteFile_1
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d65
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00404f30
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f30
ret

Function at 0x40a014
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffbec
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetTempPathW
push 0x104
lea eax, [esp + 0x20e]
push eax
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetLongPathNameW
mov eax, ebx
lea edx, [esp + 0x20a]
mov ecx, 0x105
call fcn.0040573c
add esp, 0x414
pop ebx
ret