joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x7519019b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x24ad06bd
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3e3f30a3
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x52a403c1
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x99b665
Capabilities:
Parse pe header

Disassembly:
pushal
jmp 0x99bba7
call 0x99b665
sbb dword [edi - 0x7672dbf4], eax
aas
invalid
push esp
jmp 0x99b65f
xchg dword [esp], edx
lea edx, [edx - 0x715]
xchg dword [esp], edx
jmp 0x99b5b6
Function at 0x402c3b
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41a660], 0
je 0x402c48
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 0x402c5e
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402c7c
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
je 0x402c78
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b17
pop ecx
pop esi
ret

Function at 0x40303f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40305c
xor eax, eax
jmp 0x4030b5
test al, 0x10
je 0x40306d
push 0x10
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x4030b5
mov eax, dword [0x41a5ec]
test eax, eax
je 0x4030a9
cmp eax, 2
jne 0x4030b2
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4030a9
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jge 0x4030b2
push esi
call fcn.00403012
pop ecx
jmp 0x4030b5
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x41035c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041001c
Function at 0x40492d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x42d070]
xor eax, esp
mov dword [esp + 0xa8], eax
and dword [esp + 0x88], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x208
mov dword [esp + 0x9c], 7
mov word [esp + 0x88], ax
call fcn.00408bd9
mov esi, eax
mov dword [esp], 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0040ae24
pop ecx
pop ecx
test eax, eax
jne 0x4049a5
push esi
call fcn.00408be2
xor edi, edi
jmp 0x4049b7
add eax, 2
push eax
call fcn.0040ee38
pop ecx
push esi
mov edi, eax
call fcn.00408be2
pop ecx
push edi
call fcn.00407216
pop ecx
push eax
push edi
lea ecx, [esp + 0x8c]
call fcn.00407537
lea ecx, [esp + 0x6c]
call fcn.004044ff
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xa0]
call fcn.00405eea
pop ecx
or esi, 0xffffffff
lea ecx, [esp + 0x6c]
push esi
xor edi, edi
push edi
push eax
call fcn.00405a1e
push edi
push 1
lea ecx, [esp + 0xa4]
call fcn.0040767a
push 0x40
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040b890
mov ax, word [ebp + 0x14]
lea ecx, [esp + 0x1c]
add esp, 0xc
mov word [esp + 0x50], ax
xor edx, edx
mov dword [esp + 0x20], 0x44
inc edx
lea eax, [esp + 0x6c]
cmp dword [esp + 0x80], 8
xorps xmm0, xmm0
push ecx
cmovae eax, dword [esp + 0x70]
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push edi
push edx
push edi
push edi
push ebx
push eax
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x74], edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404a83
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 0x1388
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, edi
push edi
push 1
lea ecx, [esp + 0x74]
call fcn.0040767a
push edi
push 1
lea ecx, [esp + 0x8c]
call fcn.0040767a
mov ecx, dword [esp + 0xb4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040880d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x417b0c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x417b19
invalid
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x3c]
push ebx
push ebp
push edi
mov ebx, dword [eax + esi + 0x78]
xor edi, edi
add ebx, esi
mov ebp, dword [ebx + 0x20]
add ebp, esi
cmp dword [ebx + 0x18], edi
jbe 0x417b4d
mov eax, dword [ebp + edi*4]
push dword [esp + 0x18]
add eax, esi
push eax
call fcn.00417ba8
pop ecx
pop ecx
test al, al
jne 0x417b54
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x417b31
xor eax, eax
pop edi
mov eax, dword [ebx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x417b4f
Function at 0x417b6b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [eax + 0xc]
add esi, 0xc
mov esi, dword [esi]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x417b7d
test edi, edi
je 0x417b8c
mov dword [edi], eax
cmp dword [esp + 0xc], 0
je 0x417ba2
push dword [esi + 0x30]
call fcn.00417c22
pop ecx
cmp dword [esp + 0xc], eax
jne 0x417b7d
mov eax, dword [esi + 0x18]
pop edi
pop esi
ret

Function at 0x417c4e
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push ebp
mov dword [esp + 0x18], ebp
call fcn.00417b6b
push ebp
push dword [0x42d304]
mov ebx, eax
call fcn.00417b6b
mov esi, dword [0x42d314]
add esp, 0x10
mov edi, eax
cmp dword [esi], ebp
je 0x417cb0
push dword [esp + 0x10]
call fcn.00417bcf
pop ecx
cmp al, byte [esi]
je 0x417c9c
cmp al, byte [esi + 1]
je 0x417c9c
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [esp + 0x10]
call fcn.00417c03
pop ecx
cmp eax, dword [esi + 4]
je 0x417cb0
cmp eax, dword [esi + 8]
jne 0x417c95
push dword [0x42d2ec]
mov dword [esp + 0x18], ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov edx, ebp
cmp dword [0x42d308], ebp
jbe 0x417cef
mov ecx, dword [str.VirtualProtect]
mov ecx, dword [ecx + edx]
mov dword [edx + esi], ecx
mov eax, dword [0x42d2f4]
add edx, eax
cmp edx, dword [0x42d308]
jb 0x417cd4
push esi
push edi
call fcn.00417b0c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x417c95
mov esi, dword [0x42d30c]
lea eax, [esp + 0x14]
push eax
push dword [0x42d308]
push dword [0x42d2e8]
push esi
call edi
mov edx, dword [0x42d2d8]
add edx, ebx
push 8
pop ecx
mov ebx, dword [edx + 4]
cmp dword [0x42d2e8], ecx
jbe 0x417d45
mov eax, dword [edx + ecx]
add eax, ebx
mov dword [esi + ecx], eax
mov eax, dword [0x42d2f4]
add ecx, eax
cmp ecx, dword [0x42d2e8]
jb 0x417d2e
mov eax, dword [0x42d300]
mov dword [esi + 8], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push dword [0x42d2e8]
push esi
call edi
mov eax, dword [0x42d310]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [0x42d310]
add ecx, esi
add esi, eax
push esi
call ecx
pop ecx
jmp 0x417c95
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x407467
pop dword [ebp - 0x4c]
mov eax, 0xaa5e582b
add eax, 0x55e21c3c
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xf9a0d558
add dword [ebp - 0x5c], 0x54b16ff3
mov dword [ebp - 0x58], 0x39b1487d
sub dword [ebp - 0x58], 0x77dfc38
mov dword [ebp - 0x54], 0x29cf9c8f
sub dword [ebp - 0x54], 0xdd835861
mov dword [ebp - 0x50], 0x25fa6e2f
add dword [ebp - 0x50], 0xda0591d1
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xc876f026
add eax, 0x37c99052
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x671ef843
add dword [ebp - 0x5c], 0xd537113
mov dword [ebp - 0x58], 0x560befce
sub dword [ebp - 0x58], 0x149f8e59
mov dword [ebp - 0x54], 0x4b90fd47
sub dword [ebp - 0x54], 0xe82190db
mov dword [ebp - 0x50], 0xa6307ce3
sub dword [ebp - 0x50], 0xa6307ce3
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x379d4
push 0
call eax
mov ecx, 0x4a0d
mov edx, eax
mov edi, 0x35beb495
add edi, 0xca86dd6b
add edi, dword [ebp - 0x4c]
mov esi, 0xceaafccf
add esi, 0x8d488669
add dword [ebp - 0x40], esi
mov ebx, dword [edi]
xor dword [ebp - 4], edi
xor ebx, esi
xor dword [ebp - 0x10], edx
mov dword [edx], ebx
add dword [ebp - 0x20], edi
add edx, 0x4095335
add edx, 0xfbf6accf
add edi, 4
loop 0x40757e
add eax, 0x11b07
xor ebx, ebx
add ebx, eax
add eax, 0xb565bf2b
add eax, 0x4a9a40da
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401443
pop dword [ebp - 0x28]
mov eax, 0x2cf2c39f
sub eax, 0x2cb2af5c
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xa0dadd79
add dword [ebp - 0x38], 0xad7767d2
mov dword [ebp - 0x34], 0xe282c97d
add dword [ebp - 0x34], 0x4fb082c8
mov dword [ebp - 0x30], 0xd4945914
add dword [ebp - 0x30], 0x77b7eb1a
mov dword [ebp - 0x2c], 0xc2fc0d48
sub dword [ebp - 0x2c], 0xc2fc0d48
lea eax, [ebp - 0x38]
push eax
mov eax, 0x8fef5a2d
add eax, 0x7051264b
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x2e716f9f
add dword [ebp - 0x38], 0x4600f9b7
mov dword [ebp - 0x34], 0x64a46d46
sub dword [ebp - 0x34], 0x23380bd1
mov dword [ebp - 0x30], 0x6b0fbe19
add dword [ebp - 0x30], 0xf85fae53
mov dword [ebp - 0x2c], 0x6165eeb9
sub dword [ebp - 0x2c], 0x6165eeb9
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x19b439d5
add eax, 0xe68c46a7
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x36b65
push 0
call eax
mov ecx, 0x4158
mov edi, eax
mov esi, 0xc70fbdec
add esi, 0x39355614
add esi, dword [ebp - 0x28]
mov ebx, 0x4029c324
sub ebx, 0x4f1a654a
xor dword [ebp - 0x10], 0x878a5837
mov edx, dword [esi]
sub dword [ebp - 8], 0x41231f21
sub edx, ebx
add dword [ebp - 0xc], eax
mov dword [edi], edx
xor dword [ebp - 0x14], 0x5a577f61
add edi, 0x34a8a818
sub edi, 0x34a8a814
add esi, 4
loop 0x40155f
add eax, 0xf833
mov ebx, eax
add eax, 5
mov ecx, 0x99b49442
sub ecx, 0x99749442
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4010b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb10
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push str._______________________________________________________________________________n
call fcn.00401040
push str._________________________________________________________________n
call fcn.00401040
push str.______________________________________________________n
call fcn.00401040
push str._____________________________V__V________________________n
call fcn.00401040
push str.___________________________________________________n
call fcn.00401040
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
push str._lu_n
call fcn.00401040
add esp, 0x20
mov dword [ebp - 0xb10], 0x101
lea eax, [ebp - 0xb10]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x30c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401132
sub eax, edx
sar eax, 1
push esi
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push 0x4022b0
push eax
call fcn.00401070
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xb0c]
push str.C:Users_sDesktopWLtester.txt
push eax
call fcn.00401070
lea eax, [ebp - 0xb0c]
push 0x4022d8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
push str.Csharp2PowershellOfflinePayloadBypass._n
push esi
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 0x38
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004011c1
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Delete file
Get common file path
Terminate process

Disassembly:
call fcn.00401069
push 0
push 0x40204a
push 0x4024fb
call fcn.0040147c
or eax, eax
jne 0x4010f0
call dword [sym.imp.comctl32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4020d3], eax
push 0
push 0x401232
push 0
push 0x600
push eax
call dword [sym.imp.user32.dll_DialogBoxParamA]
push eax
call dword [sym.imp.kernel32.dll_ExitProcess]
push str.PathName
push 0x4021ef
call fcn.004014e6
push 0x104
push 0x4020eb
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edi, 0x4020eb
call fcn.0040142d
mov edi, 0x4022f3
mov esi, 0x4021ef
call fcn.0040140f
mov edi, 0x4022f3
mov esi, str.msvbvm60.dll
call fcn.0040140a
mov edi, 0x4023f7
mov esi, 0x4020eb
call fcn.0040140f
mov edi, 0x4023f7
mov esi, str.msvbvm60.dll
call fcn.0040140a
push 1
push 0x4023f7
push 0x4022f3
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0x4022f3
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push 0
push 0x4023f7
push str.regsvr32.exe
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov edi, 0x4022f3
mov esi, 0x4021ef
call fcn.0040140f
mov edi, 0x4022f3
mov esi, str.mscomctl.ocx
call fcn.0040140a
mov edi, 0x4023f7
mov esi, 0x4020eb
call fcn.0040140f
mov edi, 0x4023f7
mov esi, str.mscomctl.ocx
call fcn.0040140a
push 1
push 0x4023f7
push 0x4022f3
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0x4022f3
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push 0
push 0x4023f7
push str.regsvr32.exe
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov edi, 0x4023f7
mov esi, str.TOS_Program_sucessfully_installed_on_r_n_r_n
call fcn.0040140f
mov edi, 0x4023f7
mov esi, 0x4021ef
call fcn.0040140a
push 0
push str.Technip_Italy_TOS_Program
push 0x4023f7
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
jmp 0x401046

Function at 0x4013d7
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [edi]
add edi, 4
lea edx, [ecx - 0x1010101]
xor ecx, edx
and ecx, 0x80808080
je fcn.004013d7
and ecx, edx
je fcn.004013d7
bsf edx, ecx
sub edx, 4
shr edx, 3
lea edi, [edi + edx - 4]
ret

Function at 0x40140f
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
lea edx, [eax - 0x1010101]
xor eax, edx
and eax, 0x80808080
je fcn.0040140f
and eax, edx
je fcn.0040140f
ret

Function at 0x4014e6
Capabilities:
Set registry value

Disassembly:
enter 0, 0
push 0x4020db
push 0x4020d7
push 0
push 0x4001f
push 0
push str.REG_SZ
push 0
push str.SoftwareTechnipTos
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov esi, dword [ebp + 8]
call fcn.004013fe
push eax
push esi
push 1
push 0
push dword [ebp + 0xc]
push dword [0x4020d7]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
push dword [0x4020d7]
call dword [sym.imp.advapi32.dll_RegCloseKey]
leave
ret 8
Function at 0x401541
Capabilities:
Query or enumerate registry value

Disassembly:
enter 0, 0
push 0x4020db
push 0x4020d7
push 0
push 0x4001f
push 0
push str.REG_SZ
push 0
push str.SoftwareTechnipTos
push 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
mov dword [0x4020df], 0x104
push 0x4020df
push dword [ebp + 0xc]
push 0x4020e3
push 0
push dword [ebp + 8]
push dword [0x4020d7]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [0x4020d7]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
leave
ret 8
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x421c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407258
leave
ret 4
Function at 0x402d8a
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x421c40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x828], eax
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
shr edi, 2
call fcn.004081e0
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
test edi, edi
je 0x402e40
lea esi, [ebp - 0x61c]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x402e38
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x402e38
push 0x418204
lea eax, [ebp - 0x20c]
push eax
call ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call ebx
push 0x41820c
lea eax, [ebp - 0x20c]
push eax
call ebx
add esi, 8
sub edi, 1
jne 0x402df6
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp word [ebp - 0x20c], 0
je 0x402ec3
push 0x418210
call fcn.00403ef3
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
pop ecx
push eax
lea eax, [ebp - 0x824]
push eax
call esi
push 0x418218
call fcn.00403ef3
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x418220
call fcn.00403ef3
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
push 0x30
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x828]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407258
leave
ret
Function at 0x402ed2
Capabilities:
Get disk information

Disassembly:
sub esp, 0x230
mov eax, dword [0x421c40]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x34]
mov dword [esp + 0x20], 0x14
xorps xmm0, xmm0
push eax
push 0x104
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov edi, dword [esp + 0x18]
shr esi, 2
test esi, esi
je 0x402f82
mov eax, dword [esp + 0x14]
lea ebp, [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x402f70
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHQueryRecycleBinW]
add edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
adc ebx, dword [esp + 0x28]
add ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
adc eax, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jmp 0x402f74
mov ecx, dword [esp + 0x10]
add ebp, 8
sub esi, 1
jne 0x402f36
mov ebp, dword [esp + 0x18]
jmp 0x402f8a
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [section..data]
test eax, eax
je 0x402fa5
shrd edi, ebx, 0x14
cdq
shr ebx, 0x14
cmp ebx, edx
ja 0x402fb9
jb 0x402fa5
cmp edi, eax
ja 0x402fb9
mov eax, dword [0x4231a8]
test eax, eax
je 0x402fc3
cdq
cmp ebp, edx
jb 0x402fc3
ja 0x402fb9
cmp ecx, eax
jbe 0x402fc3
call fcn.00402fde
xor eax, eax
inc eax
jmp 0x402fc5
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407258
add esp, 0x230
ret

Function at 0x402fde
Capabilities:
Empty the recycle bin
Read .ini file

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, 0x417950
push edi
mov edi, 0x422418
push edi
push 0
push str.RecConf
push ebp
call esi
push edi
push 0
push str.RecNoUI
push ebp
mov ebx, eax
call esi
push 0x422418
push 0
push str.RecNoSound
push ebp
mov edi, eax
call esi
neg eax
sbb ecx, ecx
and ecx, 4
neg edi
sbb edi, edi
xor eax, eax
and edi, 2
or ecx, edi
test ebx, ebx
setne al
or ecx, eax
push ecx
push 0
push dword [0x42356c]
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
pop edi
pop esi
pop ebp
pop ebx
ret