joyce8/EMBER2024-capa huggingface dataset:
Function at 0x659110
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x207000]
push edi
or ebp, 0xffffffff
jmp 0x659132
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x659139
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x659128
mov eax, 1
add ebx, ebx
jne 0x65914b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x65915c
jne 0x65917b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65917b
dec eax
add ebx, ebx
jne 0x659168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x659140
add ebx, ebx
jne 0x659177
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6591cd
xor ecx, ecx
sub eax, 3
jb 0x659193
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x659202
sar eax, 1
mov ebp, eax
jmp 0x65919e
add ebx, ebx
jne 0x65919e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65916c
inc ecx
add ebx, ebx
jne 0x6591ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65916c
add ebx, ebx
jne 0x6591b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6591ae
jne 0x6591ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6591ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6591ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6591de
jmp 0x65912e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6591ec
add edi, ecx
jmp 0x65912e
pop esi
mov edi, esi
mov ecx, 0xffc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x65920a
cmp byte [edi], 6
jne 0x65920a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x65920f
lea edi, [esi + 0x257000]
mov eax, dword [edi]
or eax, eax
je 0x65927e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x265db0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x265e98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x65923c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x265ea0]
or eax, eax
je 0x659278
mov dword [ebx], eax
add ebx, 4
jmp 0x659259
call dword [esi + 0x265e9c]
mov ebp, dword [esi + 0x265ea4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x25f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6592b2
sub esp, 0xffffff80
jmp 0x430090
Function at 0x4026f1
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.0041019c
cmp eax, 0x3f6
jae 0x402933
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.00410114
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40273e
lea edx, [ebx + 1]
jmp 0x402740
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x402797
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x40276a
jmp 0x402763
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402763
mov byte [ebx + eax], 0x20
jmp 0x40276a
inc eax
cmp byte [ebx + eax], 0
jne 0x402753
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x40277f
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402796
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x40278d
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x40279d
inc eax
cmp byte [ebx + eax], 0
jne 0x402747
cmp byte [0x415d0a], 0
je 0x4027ad
mov dword [ebp - 0x2c], 0x415d0a
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.00406430
mov esi, eax
test esi, esi
je 0x4027d9
mov edx, str..inf
mov eax, esi
call fcn.00410298
test eax, eax
jne 0x4027d9
mov dword [ebp - 0x34], 0x41523b
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00407148
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402803
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.00407214
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402842
cmp byte [ebp - 2], 0
jne 0x402842
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.00410218
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.004102e0
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00407148
test al, al
je 0x402933
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402872
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402933
xor ebx, ebx
cmp byte [0x415900], 0
jne 0x40288b
cmp byte [ebp - 1], 0
je 0x4028d4
cmp dword [0x41618c], 0
je 0x4028a3
push dword [0x41618c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4028a7
xor eax, eax
jmp 0x4028ac
mov eax, 1
test eax, eax
je 0x4028bf
push 0
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.00402939
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028f0
mov edx, str..exe
mov eax, esi
call fcn.00410298
test eax, eax
je 0x402922
cmp byte [0x415900], 0
je 0x40290b
cmp byte [ebp - 1], 0
jne 0x40290b
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402922
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x40291c
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402933
push 1
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5ccc1664
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x2d585e8b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e6e0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x40105d
cmp word [0x41e6e2], bx
je 0x40104b
call eax
mov dword [0x41e6e0], eax
push eax
call fcn.00402fad
push eax
call fcn.00408ef4
pop ecx
jmp 0x4010f0
push 0x27
call fcn.00402fad
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 0x4010c1
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 0x40108a
xor ebx, ebx
cmp byte [str.___Install__UTF_8_], 0x3b
je 0x4010e4
push ebx
push 3
call fcn.00402fad
pop ecx
push eax
lea eax, [ebp - 0x904]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4010f1
lea eax, [ebp - 0x904]
push eax
call fcn.00408ef4
pop ecx
call fcn.00404f8f
push 0xa
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40121c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.004110c6
lea ecx, [ebp - 0x18]
call fcn.004110c6
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
test byte [ebp + 0xc], 1
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], 0xa
je 0x40126e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x40127b
mov dword [ebp - 0x48], str.runas
mov esi, dword [ebp + 0xc]
and esi, 0x10000
jne 0x40128d
or dword [ebp - 0x50], 0x100
mov eax, dword [0x41e700]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00402704
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004114e2
cmp dword [ebp - 8], edi
jne 0x4012d8
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40131f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40130d
cmp esi, edi
jne 0x401301
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x401d68
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 + 0xc]
call fcn.00401ae1
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.004114e2
push 0x5c
mov ecx, edi
call fcn.0040119e
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x401c6b
push edi
push edi
mov dword [0x41e6e4], esi
mov dword [0x41e6ec], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [0x41e6e8], eax
je 0x401ddc
cmp dword [0x41e750], 2
je 0x401dce
call fcn.00408e62
mov eax, dword [0x41e6e8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [0x41e6e8]
mov ecx, dword [0x41e6ec]
cmp ecx, edi
mov dword [0x41e818], edi
je 0x401e22
cmp ecx, 1
je 0x401e16
cmp ecx, 2
je 0x401e12
cmp ecx, 3
je 0x401e0e
cmp ecx, 0x67
jle 0x401e09
cmp ecx, 0x6b
jle 0x401e8b
push ecx
push 0x14
jmp 0x401e5c
push 0x12
jmp 0x401e18
push 0x13
jmp 0x401e18
push 0x11
push edi
call fcn.00408fd8
pop ecx
pop ecx
jmp 0x401e8b
cmp dword [0x41e820], edi
mov dword [ebp + 8], edi
jne 0x401e8b
cmp eax, edi
je 0x401e49
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x401e49
cmp dword [ebp + 8], edi
jne 0x401e49
xor eax, eax
jmp 0x401e90
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x401e5f
push dword [ebp + 8]
push 0x21
push edi
jmp 0x401e83
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x401e75
cmp dword [0x41e754], 0xffffffff
je 0x401e8b
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408fd8
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x402773
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 0x4027b4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x40279e
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 0x4027b4
test al, 0x10
jne 0x4027b4
push esi
jmp 0x402794
xor eax, eax
inc eax
pop esi
ret
Function at 0x402bf2
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]
movzx ecx, word [0x41e704]
mov esi, dword [sym.imp.KERNEL32.DLL_FindResourceExA]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
call esi
mov ebx, eax
test ebx, ebx
mov edi, 0x409
jne 0x402c3a
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x402c64
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402c4d
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x402c64
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x402cce
cmp dword [0x41e714], 0
jne 0x402ccc
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x41e718]
mov dword [0x41e714], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x41e704]
push edi
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
test ebx, ebx
jne 0x402cc2
push str.SetThreadPreferredUILanguages
push dword [0x41e718]
call esi
mov ebx, eax
test ebx, ebx
je 0x402ccc
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fad
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41e0b8], ebx
je 0x402fe0
mov eax, 0x41e0b8
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x402fe0
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0b8]
cmp dword [eax], ebx
jne 0x402fc9
shl esi, 4
cmp dword [esi + 0x41e0b8], ebx
jne 0x402ff5
mov eax, 0x41a64c
jmp 0x403167
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_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 - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x4030a5
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 - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40309c
call edi
test eax, eax
jne 0x40309c
mov eax, dword [esi + 0x41e0c4]
test eax, eax
je 0x403091
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x40308e
push dword [esi + 0x41e0c4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0c4], edi
jmp 0x4030a4
push edi
jmp 0x40309f
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0c4], eax
jmp 0x4030a5
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 + 0x41e0c4]
test eax, eax
jne 0x403166
mov ebx, dword [esi + 0x41e0bc]
lea edi, [esi + 0x41e0c0]
cmp dword [edi], eax
je 0x4030db
call fcn.00402f57
cmp eax, dword [0x41b5f0]
jne 0x4030db
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 [0x41e084], 0xffffffff
pop ecx
mov dword [esi + 0x41e0c4], eax
jne 0x403146
and dword [0x41e084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e704]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
jle 0x403146
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0c4]
push edi
push ebx
push 0
push dword [0x41e084]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0c4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403262
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 0x4032bf
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 0x403440
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
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.004114b3
push 0x41a85c
lea ecx, [ebp - 0xc]
call fcn.0041153a
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40351c
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004114e2
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040119e
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041153a
test byte [ebp - 0x25c], 0x10
je 0x4034e7
push 0x41a858
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4034ff
push 0x41a850
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x4034ff
push dword [ebp - 0xc]
call fcn.00403440
pop ecx
jmp 0x4034fb
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x40354d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x40354d
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40348b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [0x41e780]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x40354d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x40354d
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403557
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40355d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41e82c], 0
je 0x403574
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x403590
xor eax, eax
inc eax
jmp 0x4035c1
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4035ba
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x4035b6
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4035c1
xor eax, eax
jmp 0x4035c1
push esi
call fcn.00403440
pop ecx
pop esi
leave
ret

Function at 0x403ac2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004110c6
push 2
mov ecx, esi
call fcn.00403a1b
mov edi, dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
and word [ecx], 0
test eax, eax
jbe 0x403b15
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00403a1b
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00402637
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop ecx
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00403a1b
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.00402637
add esp, 0x10
mov dword [esi + 4], eax
and word [edi + eax*2], 0
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403b6a
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403b25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403f3d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov edi, eax
mov dword [ebp - 4], eax
call fcn.004114b3
push 0
lea ecx, [ebp - 0x18]
call fcn.00403a1b
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x403f7b
cmp ax, 0x2f
jne 0x403fa9
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x403fa9
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x403f9c
cmp ax, 0x5c
je 0x403f9c
dec edi
test edi, edi
jg 0x403f87
test edi, edi
je 0x40404d
and word [esi + edi*2], 0
push esi
call fcn.00402773
test eax, eax
pop ecx
je 0x403f98
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x403fe0
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00403c3c
test eax, eax
pop ecx
pop ecx
je 0x403fe0
xor esi, esi
jmp 0x404070
push esi
call fcn.00402773
test eax, eax
pop ecx
jne 0x40403a
push esi
push 0xc
push 1
call fcn.00408fd8
add esp, 0xc
jmp 0x403fd9
mov eax, dword [ebp - 4]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea ebx, [esi + edi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40402e
jmp 0x40402d
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x404034
cmp ax, 0x2f
je 0x404034
inc edi
cmp word [esi + edi*2], cx
jne 0x40401d
mov word [esi + edi*2], cx
jmp 0x403fe0
cmp edi, dword [ebp - 4]
jl 0x403ffa
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x404094
cmp dword [ebp - 4], 2
jne 0x40407d
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x40407d
cmp ax, 0x7a
ja 0x40407d
cmp word [ebx + 2], 0x3a
jne 0x40407d
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x404094
push ebx
push 0xc
push 1
call fcn.00408fd8
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret