joyce8/EMBER2024-capa huggingface dataset:
Function at 0x643f00
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x643f6a
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x643f6a
lea eax, [esp + 0xc]
push eax
push 0x643f70
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
je 0x643f6a
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret

Function at 0x644644
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040b590
push esp
push 0
push 0
push esi
push 0
call sub.shell32.dll_SHGetFolderPathW
test eax, eax
jne 0x644676
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040c1dc
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x644680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6446fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040b590
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
je 0x6446e1
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0040c1dc
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.004313ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x644703
lea eax, [ebp - 0x210]
call fcn.0040b590
pop eax
jmp eax
Function at 0x647648
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x270]
mov edx, dword [0x41f4cc]
call fcn.0040c8d8
xor eax, eax
push ebp
push 0x647937
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x278]
mov ecx, 0x647954
mov edx, dword [ebp - 0x274]
call fcn.0040c38c
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
mov edx, 0x1ff
call fcn.0042908c
test eax, eax
jne 0x6478c9
mov eax, dword [ebp - 0x25c]
mov edx, 0x64796c
call fcn.0040c4c4
je 0x6478ab
mov eax, dword [ebp - 0x25c]
mov edx, 0x64797c
call fcn.0040c4c4
je 0x6478ab
mov eax, dword [ebp - 0x260]
and eax, 0x10
cmp eax, 0x10
je 0x64787f
xor edx, edx
push ebp
push 0x647873
push dword fs:[edx]
mov dword fs:[edx], esp
push dword [ebp - 0x274]
push 0x647990
push dword [ebp - 0x25c]
lea eax, [ebp - 0x27c]
mov edx, 3
call fcn.0040c414
mov eax, dword [ebp - 0x27c]
call fcn.0042911c
test al, al
jne 0x647869
mov ebx, dword [ebp - 0x25c]
mov edx, 0x6479a0
mov dword [ebp - 0x280], ebx
mov eax, dword [ebp - 0x280]
call fcn.00427334
test eax, eax
sete al
test al, al
je 0x647791
push 0
push 0
push 0x6479b8
push 0x6479fc
push 0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x6477d0
mov eax, dword [ebp - 0x260]
and eax, 1
dec eax
jne 0x6477d0
push dword [ebp - 0x274]
push 0x647990
push dword [ebp - 0x25c]
lea eax, [ebp - 0x284]
mov edx, 3
call fcn.0040c414
mov eax, dword [ebp - 0x284]
mov cl, 1
mov edx, 0x80
call fcn.00428f08
push 0x3e8
call sub.kernel32.dll_Sleep
push dword [ebp - 0x274]
push 0x647990
push dword [ebp - 0x25c]
lea eax, [ebp - 0x288]
mov edx, 3
call fcn.0040c414
mov eax, dword [ebp - 0x288]
call fcn.0042911c
test al, al
jne 0x647869
cmp dword [0x68a258], 0
je 0x647869
mov dl, 1
mov eax, dword [0x68a258]
call fcn.00428b58
test al, al
je 0x647869
xor ebx, ebx
jmp 0x647854
push 0x1f4
call sub.kernel32.dll_Sleep
inc ebx
mov eax, dword [0x68a258]
call fcn.0040c128
mov edx, eax
lea eax, [ebp - 0x28c]
call fcn.0040c188
mov eax, dword [ebp - 0x28c]
call fcn.0042911c
mov dl, 1
mov eax, dword [0x68a258]
call fcn.00428b58
test al, al
je 0x647869
cmp ebx, 4
jl 0x647827
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6478ab
push dword [ebp - 0x274]
push 0x647990
push dword [ebp - 0x25c]
lea eax, [ebp - 0x290]
mov edx, 3
call fcn.0040c414
mov eax, dword [ebp - 0x290]
call fcn.00647648
lea eax, [ebp - 0x270]
call fcn.004290dc
test eax, eax
je 0x6476d3
lea eax, [ebp - 0x270]
call fcn.00429100
xor eax, eax
push ebp
push 0x6478ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x274]
call fcn.0042973c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6478f6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64793e
lea eax, [ebp - 0x290]
mov edx, 4
call fcn.0040b5f0
lea eax, [ebp - 0x27c]
mov edx, 2
call fcn.0040b5f0
lea eax, [ebp - 0x270]
mov edx, dword [0x41f4cc]
call fcn.0040cca4
pop eax
jmp eax
Function at 0x64f868
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.0040b684
mov eax, dword [ebp - 8]
call fcn.0040b684
xor eax, eax
push ebp
push 0x64f9ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00408280
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], esi
test bl, bl
je 0x64f8c8
mov dword [ebp - 0x48], 0x540
jmp 0x64f8cf
mov dword [ebp - 0x48], 0x500
movzx eax, word [ebp + 0x14]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 0xc], 0
je 0x64f8e4
mov eax, 0x64fa00
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
call fcn.0040c128
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.0040c128
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x64f99c
test bl, bl
je 0x64f996
cmp byte [0x68a223], 0
jne 0x64f92c
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x4fc]
call fcn.00551e14
mov eax, dword [0x68238c]
mov eax, dword [eax]
call fcn.00610684
mov al, 1
call fcn.0064341c
mov eax, dword [0x68238c]
mov eax, dword [eax]
call fcn.00610684
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0x10], 0x103
jne 0x64f971
mov eax, dword [0x68238c]
mov eax, dword [eax]
cmp byte [eax + 0xbc], 0
je 0x64f938
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x50]
call fcn.00427ed0
mov edx, dword [ebp - 0x50]
mov eax, 0x68a260
call fcn.0040b980
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 9], 1
jmp 0x64f9af
test bl, bl
je 0x64f9af
mov eax, 0x68a260
mov edx, 0x64fa18
call fcn.0040b980
mov eax, dword [0x68a1e0]
mov eax, dword [eax + 0x4fc]
cmp byte [eax + 0x69], 0
je 0x64f9c5
call fcn.00551e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64f9f1
lea eax, [ebp - 0x50]
call fcn.0040b590
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b5f0
pop eax
jmp eax
Function at 0x650878
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x650965
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, ebx
call fcn.00428b58
test al, al
jne 0x6508fa
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 0x650980
call fcn.0040c38c
mov eax, dword [ebp - 4]
call fcn.006445ec
cmp byte [0x68a223], 0
jne 0x6508f1
push 0x10
push 0x6509bc
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, 0x6509d4
call fcn.006470fc
mov eax, dword [ebp - 8]
call fcn.0040c128
push eax
mov eax, dword [0x68238c]
mov eax, dword [eax]
mov eax, dword [eax + 0x190]
push eax
call sub.user32.dll_MessageBoxW
mov byte [0x68a229], 1
jmp 0x650948
push 1
push 0
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 0x650a0c
call fcn.0040c38c
mov eax, dword [ebp - 0xc]
call fcn.0040c128
push eax
push 0x650a48
push 0x650a64
mov eax, dword [0x68238c]
mov eax, dword [eax]
mov eax, dword [eax + 0x190]
push eax
call sub.shell32.dll_ShellExecuteW
cmp byte [0x68a222], 0
je 0x650948
mov edx, ebx
mov eax, 0x650a7c
call fcn.00648204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65096c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b5f0
pop eax
jmp eax
Function at 0x656c78
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040b684
xor eax, eax
push ebp
push 0x656d44
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.006431f0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.0040b9c8
xor eax, eax
push ebp
push 0x656d1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00428528
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x656cdd
mov byte [ebp - 5], 0
jmp 0x656d10
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_GetSystemTime
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x656d24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x656d4b
lea eax, [ebp - 0x24]
call fcn.0040b590
lea eax, [ebp - 4]
call fcn.0040b590
pop eax
jmp eax
Function at 0x66d0ec
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
mov edx, 0x66d188
call fcn.0040b980
xor edx, edx
push ebp
push 0x66d126
push dword fs:[edx]
mov dword fs:[edx], esp
call sub.kernel32.dll_GetUserDefaultLangID
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
pop dword fs:[0]
add esp, 8
jmp 0x66d137
cmp bx, 0x409
jne 0x66d144
cmp ax, 0x409
je 0x66d177
cmp bx, 0x419
je 0x66d16b
cmp ax, 0x419
je 0x66d16b
cmp bx, 0x423
je 0x66d16b
cmp ax, 0x423
je 0x66d16b
cmp bx, 0x43f
je 0x66d16b
cmp ax, 0x43f
jne 0x66d177
mov eax, esi
mov edx, 0x66d1a0
call fcn.0040b980
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4197a0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x4197a2], bx
je 0x401027
call eax
mov dword [0x4197a0], eax
push eax
call fcn.00402187
push eax
call fcn.00408cdb
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402187
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.00408cdb
pop ecx
call fcn.004044b0
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401611
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0040f707
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401370
push 0x5c
mov ecx, edi
call fcn.00401526
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4012e3
push edi
push edi
mov dword [0x4197a4], esi
mov dword [0x4197ac], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp dword [0x4197ec], 2
mov dword [0x4197a8], eax
je 0x40166e
call fcn.0040851f
push 0xffffffffffffffff
push dword [0x4197a8]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x4197ac]
cmp eax, edi
mov dword [0x419880], edi
je 0x4016bd
cmp eax, 1
je 0x4016b1
cmp eax, 2
je 0x4016ad
cmp eax, 3
je 0x4016a9
cmp eax, 0x67
jle 0x4016a4
cmp eax, 0x6a
jle 0x401721
push eax
push 0x14
jmp 0x4016f4
push 0x12
jmp 0x4016b3
push 0x13
jmp 0x4016b3
push 0x11
push edi
call fcn.00408dbf
pop ecx
pop ecx
jmp 0x401721
cmp dword [0x419888], edi
jne 0x401721
lea eax, [ebp + 8]
push eax
push dword [0x4197a8]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4016e4
cmp ecx, edi
jne 0x4016e4
xor eax, eax
jmp 0x401726
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4016f7
push ecx
push 0x21
push edi
jmp 0x401719
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40170b
cmp dword [0x4197f0], 0xffffffff
je 0x401721
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408dbf
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401b75
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x401bb6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ba0
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401bb6
test al, 0x10
jne 0x401bb6
push esi
jmp 0x401b96
xor eax, eax
inc eax
pop esi
ret

Function at 0x401dc9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
mov ebx, eax
movzx eax, word [0x4197b0]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x401e0d
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x401e33
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401e1e
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x401e33
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x401ead
cmp dword [0x4197c0], 0
jne 0x401eab
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x4197c0], 1
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x4197b0]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x401ea0
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x401eab
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402187
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x419090], ebx
je 0x4021ba
mov eax, 0x419090
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4021ba
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x419090]
cmp dword [eax], ebx
jne 0x4021a3
shl esi, 4
cmp dword [esi + 0x419090], ebx
jne 0x4021cf
mov eax, 0x4154c8
jmp 0x402341
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x40227f
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x402276
call edi
test eax, eax
jne 0x402276
mov eax, dword [esi + 0x41909c]
test eax, eax
je 0x40226b
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x402268
push dword [esi + 0x41909c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41909c], edi
jmp 0x40227e
push edi
jmp 0x402279
mov eax, dword [ebp - 8]
mov dword [esi + 0x41909c], eax
jmp 0x40227f
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [esi + 0x41909c]
test eax, eax
jne 0x402340
mov ebx, dword [esi + 0x419094]
lea edi, [esi + 0x419098]
cmp dword [edi], eax
je 0x4022b5
call fcn.00402131
cmp eax, dword [0x4162f0]
jne 0x4022b5
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x419064], 0xffffffff
pop ecx
mov dword [esi + 0x41909c], eax
jne 0x402320
and dword [0x419064], 0
push 0x1f
lea eax, [ebp - 0xa8]
push eax
movzx eax, word [0x4197b0]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x402320
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x419064], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41909c]
push edi
push ebx
push 0
push dword [0x419064]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x41909c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40244e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4024ab
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4026cf
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4026df
xor eax, eax
leave
ret
test byte [0x4197f0], 2
mov dword [ebp - 0x40], 0x40
jne 0x402734
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
test eax, eax
je 0x402734
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402734
jb 0x402710
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402734
push 0x2b
call fcn.00402187
push eax
call fcn.00408d52
cmp eax, 1
pop ecx
pop ecx
je 0x40272d
or dword [0x4197f0], 0xffffffff
jmp 0x4026db
or dword [0x4197f0], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402b71
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401458
cmp dword [ebp - 4], 1
jg 0x402b8f
push 1
lea ecx, [ebp - 0xc]
call fcn.00401172
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402bb3
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402bea
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004027aa
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.0040115e
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.004013a9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402ee6
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00402771
push 0x4155d0
lea ecx, [ebp - 0xc]
call fcn.004027c2
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402fc2
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401370
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401526
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.004027c2
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402f91
push 0x4155cc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x402fa5
push 0x4155c4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x402fa5
push edi
call fcn.00402ee6
pop ecx
jmp 0x402fa1
push 0
push edi
call esi
test eax, eax
je 0x402fe5
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x402fe5
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x402f2c
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402fe5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x402fe5
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402fed
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402ff3
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x419894], 0
je 0x403000
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403016
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x403034
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x403030
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402ee6
pop ecx
pop esi
ret

Function at 0x4030ea
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401458
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403128
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.004027aa
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret