joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004be3c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1004bed9
push ebx
push esi
call fcn.1004be05
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1004ac8f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004be86
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004bed8
push edi
push eax
call fcn.1003f686
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004bea6
call fcn.1003f41b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004bed7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004ac8f
add esp, 0x20
test eax, eax
jne 0x1004bec5
push edi
call fcn.1003f41b
jmp 0x1004becd
push ebx
call fcn.1003f41b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1004e58f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10041b0b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004e5fe
cmp esi, dword [ebp - 4]
je 0x1004e5f9
cmp dword [ebp + 0xc], 0
je 0x1004e5f9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004e5d6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004e0e1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1004e600
xor eax, eax
inc eax
jmp 0x1004e600
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1004e665
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10074084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10041b0b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10041b0b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1004e6dc
cmp word [ecx], dx
je 0x1004e6dc
mov eax, dword [0x10062504]
push edi
dec eax
push eax
push 0x100623f0
call fcn.1004e604
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004e74f
cmp word [eax], dx
je 0x1004e74f
mov eax, dword [edi]
test eax, eax
je 0x1004e700
cmp word [eax], dx
je 0x1004e700
lea eax, [ebp - 0x10]
push eax
call fcn.1004dfe7
jmp 0x1004e709
lea eax, [ebp - 0x10]
push eax
call fcn.1004e082
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1004e779
mov eax, dword [0x100623ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100620e0
call fcn.1004e604
add esp, 0xc
test al, al
je 0x1004e779
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1004e744
cmp word [eax], di
je 0x1004e744
lea eax, [ebp - 0x10]
push eax
call fcn.1004dfe7
pop ecx
jmp 0x1004e77b
lea eax, [ebp - 0x10]
push eax
call fcn.1004e082
jmp 0x1004e741
mov eax, dword [edi]
test eax, eax
je 0x1004e766
cmp word [eax], dx
je 0x1004e766
lea eax, [ebp - 0x10]
push eax
call fcn.1004df9c
pop ecx
jmp 0x1004e779
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1004e844
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004e489
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1004e844
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1004e844
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1004e844
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004e7d1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10046269
test ebx, ebx
je 0x1004e83f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10046269
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004e844
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004e844
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10052841
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1004e846
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c055
leave
ret
Function at 0x10052a61
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100529dd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10052bd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10052bd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10052b85
jg 0x10052abd
test eax, eax
je 0x10052b7b
push 1
push 0x1000
call fcn.1003ee05
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10052ae0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10052b72
push 0x8000
push ebx
call fcn.1005290e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10052b09
jg 0x10052b04
cmp ecx, 0x1000
jb 0x10052b09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10046edf
add esp, 0x10
cmp eax, 0xffffffff
je 0x10052b4e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10052b04
jl 0x10052b35
test ecx, ecx
jne 0x10052af6
push dword [ebp - 0xc]
push ebx
call fcn.1005290e
push esi
call fcn.1003f41b
add esp, 0xc
xor ebx, ebx
jmp 0x10052bde
cmp byte [edi + 0x24], 0
je 0x10052b65
cmp dword [edi + 0x20], 5
jne 0x10052b65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10052b70
mov ebx, dword [edi + 0x18]
jmp 0x10052b72
xor ebx, ebx
push esi
call fcn.1003f41b
pop ecx
jmp 0x10052bde
test ecx, ecx
jg 0x10052b47
jl 0x10052b85
test eax, eax
jae 0x10052b47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10048392
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10052ba5
cmp byte [edi + 0x1c], 0
je 0x10052b47
jmp 0x10052bd6
push ebx
call fcn.1004f942
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10052b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10052bde
cmp byte [edi + 0x1c], 0
je 0x10052bdb
mov ebx, dword [edi + 0x18]
jmp 0x10052bde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10048392
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10055fb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100593ee
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10074084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10074b74]
cmp eax, 0xffffffff
jne 0x10055fe6
xor ebx, ebx
jmp 0x10055fef
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10056031
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x10056070
test esi, esi
jne 0x10056074
push 0x10055a90
push 0x10078dd4
call fcn.10055600
mov eax, dword [0x10074b74]
add esp, 8
cmp eax, 0xffffffff
je 0x10056031
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1005605e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1005605e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100560b6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1005609f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10056074
cmp dword [ebx + 0x18], 0
je 0x10056000
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x100560dd
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100560dd
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.10055ab0
cmp dword [ebx + 0x18], 0
jne 0x100560c0
jmp 0x10056000
Function at 0x401c50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443b10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041614a
xor ebx, ebx
mov ebp, vtable.CBitmap.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x58], ebx
call fcn.0041caa0
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x8e
push eax
call edi
push eax
lea ecx, [esp + 0x18]
call fcn.0041d547
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x58], 1
call fcn.0041caa0
mov eax, dword [eax + 0xc]
push 0x8f
push eax
call edi
push eax
lea ecx, [esp + 0x20]
call fcn.0041d547
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esi + 0xe8]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0041d250
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
push 1
push edx
push eax
push edi
push ebp
lea ecx, [esi + 0xc8]
call fcn.0041d880
lea ecx, [esp + 0x14]
call fcn.0041d570
mov ecx, dword [esi + 0xe8]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0xf7
push ecx
call ebx
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 1
push eax
push edx
lea eax, [eax + edi*2]
push eax
push ebp
lea ecx, [esi + 0x74]
call fcn.0041d880
lea ecx, [esp + 0x1c]
call fcn.0041d570
mov ecx, dword [esi + 0x94]
push eax
push 0
push 0xf7
push ecx
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [edi + edi*2]
lea eax, [edx + eax*2]
xor edx, edx
push edx
lea ebp, [ecx + ebp*2]
mov dword [esp + 0x2c], edx
push 0xcf0000
lea edx, [esp + 0x2c]
xor ecx, ecx
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0041d880
push 0
mov ecx, esi
call fcn.00418d32
mov byte [esp + 0x58], 0
mov esi, vtable.CBitmap.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
call fcn.004020f0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.004020f0
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402320
Capabilities:
Check if file exists
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x3f8
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x3f0], eax
push ebx
push esi
push edi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x408]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041eb41
call fcn.00402680
test eax, eax
je 0x4024dd
test byte [0x45908c], 1
jne 0x402384
or dword [0x45908c], 1
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push str.Boot_
push str.D:Naiky_
push 0x458e80
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 0x458e80
call esi
test eax, eax
jne 0x4023b6
mov ecx, 0x458e80
call fcn.00405210
push 0x458e80
call esi
test eax, eax
je 0x4024ca
push 0x458e80
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x4024ca
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [esp + 0x1f0]
push eax
push 0
call esi
push 0x104
lea ecx, [esp + 0x1f0]
push 0
push ecx
call fcn.00428890
add esp, 0xc
push 0x104
lea edx, [esp + 0x1f0]
push edx
push 0
call esi
lea eax, [esp + 0x1ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov esi, eax
push esi
push 0x458e80
lea ecx, [esp + 0x2fc]
push ecx
call edi
push 0
lea edx, [esp + 0x2f8]
push edx
lea eax, [esp + 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40249f
call fcn.00415970
test al, al
je 0x40249f
call fcn.00415910
push eax
push esi
push str.Path
push str.Script
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00415a00
test eax, eax
je 0x4024dd
call fcn.00415c20
test eax, eax
je 0x4024dd
call fcn.00404750
mov eax, 1
jmp 0x402579
push 0
push 0
push 0x449918
call fcn.0041cd65
push 5
push 0
push 0
push str.explorer.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x402577
push 0
push 0
push 0x4498c0
call fcn.0041cd65
jmp 0x402577
call fcn.00415a00
test eax, eax
je 0x402507
call fcn.00415c20
test eax, eax
je 0x402507
push 0
push 0
push str._C:System_Mapping_Files___D:System_Mapping_Files___i__e__h__y
push str.xcopy
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0xcc]
push ecx
call fcn.00401ae0
lea ecx, [esp + 0xcc]
mov dword [esp + 0x410], 0
call fcn.0041647e
cmp eax, 2
je 0x40255f
lea eax, [esp + 0x14]
push eax
call fcn.00402a50
lea ecx, [esp + 0x14]
mov byte [esp + 0x410], 1
mov dword [ebx + 0x20], ecx
call fcn.0041647e
lea esi, [esp + 0x14]
mov byte [esp + 0x410], 0
call fcn.004025a0
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0x414], 0xffffffff
call fcn.00401b80
xor eax, eax
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3f0]
xor ecx, esp
call fcn.00424c71
mov esp, ebp
pop ebp
ret
Function at 0x402970
Capabilities:
Copy file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x230]
push esi
push eax
lea eax, [esp + 0x28]
push 0x104
push eax
mov esi, ecx
call fcn.00425ddd
push esi
lea ecx, [esp + 0x138]
push 0x104
push ecx
call fcn.00425ddd
lea eax, [esp + 0x3c]
add esp, 0x18
lea esi, [eax + 1]
xor ecx, ecx
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
cmp dl, cl
jne 0x4029c0
sub eax, esi
mov byte [esp + eax + 0x25], cl
lea eax, [esp + 0x128]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, cl
jne 0x4029e0
sub eax, esi
mov byte [esp + eax + 0x129], cl
mov dword [esp + 4], ecx
mov dword [esp + 0x16], ecx
mov dword [esp + 0x1a], ecx
mov dword [esp + 0x1e], ecx
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
lea eax, [esp + 0x128]
push ecx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov word [esp + 0x18], 0x210
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x22c]
pop esi
xor ecx, esp
call fcn.00424c71
add esp, 0x22c
ret
Function at 0x404450
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44351b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
cmp byte [0x4596d0], 0
jne 0x40454c
push 1
push 0
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.00408e70
push 0x104
lea edx, [esp + 0xc]
mov dword [esp + 0x11c], 0
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4044e0
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.004091a0
push 1
push 0x44a040
lea ecx, [esp + 0xc]
call fcn.00407ed0
mov edx, dword [esp + 4]
push edx
push 0x104
push 0x4596d0
call fcn.00425ddd
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40454c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4596d0
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00424c71
add esp, 0x118
ret

Function at 0x404580
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4434db
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
cmp byte [0x4595c8], 0
jne 0x40467c
push 1
push 2
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call fcn.00408e70
push 0x104
lea edx, [esp + 0xc]
mov dword [esp + 0x11c], 0
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 8]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404610
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.004091a0
push 1
push 0x44a040
lea ecx, [esp + 0xc]
call fcn.00407ed0
mov edx, dword [esp + 4]
push edx
push 0x104
push 0x4595c8
call fcn.00425ddd
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40467c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4595c8
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00424c71
add esp, 0x118
ret
Function at 0x404750
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
call fcn.004046b0
test al, al
je 0x4047b0
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x1c
ret

Function at 0x4047c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
xor edx, edx
cmp eax, edx
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
je 0x404811
push ecx
lea ecx, [esp + 4]
call fcn.00401890
add esp, 4
push esi
lea ecx, [esp + 4]
call fcn.00401920
mov ecx, dword [esp + 0x60]
add esp, 4
xor ecx, esp
call fcn.00424c71
mov esp, ebp
pop ebp
ret
Function at 0x404830
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea eax, [esp + 0x25c]
push 0x104
push eax
call fcn.00425ddd
push 0x44a060
lea ecx, [esp + 0x268]
push 0x104
push ecx
call fcn.00425e42
push ebx
lea edx, [esp + 0x16c]
push 0x104
push edx
call fcn.00425ddd
push 0x44a040
lea eax, [esp + 0x178]
push 0x104
push eax
call fcn.00425e42
add esp, 0x30
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4049e3
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x25c]
push 0x104
push ecx
call fcn.00425ddd
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4049d1
lea eax, [esp + 0x3c]
push 0x44a058
push eax
call fcn.00425545
add esp, 8
test eax, eax
je 0x4048e8
lea ecx, [esp + 0x3c]
push 0x44a05c
push ecx
call fcn.00425545
add esp, 8
test eax, eax
je 0x4048e8
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.00425e42
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
je 0x404987
lea ecx, [esp + 0x150]
push ecx
call fcn.00404830
add esp, 4
test eax, eax
je 0x4049dc
lea edx, [esp + 0x150]
push edx
call edi
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x154]
push 0x104
push ecx
call fcn.00425ddd
jmp 0x4048e5
test al, 1
je 0x4049a0
lea edx, [esp + 0x150]
push 0x80
push edx
call fcn.004256ac
add esp, 8
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4049dc
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x154]
push 0x104
push edx
call fcn.00425ddd
jmp 0x4048e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x4049fa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x358]
xor ecx, esp
call fcn.00424c71
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call edi
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00424c71
mov esp, ebp
pop ebp
ret