joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [esp + 0x10], 0x408600
mov dword [esp + 0x14], 0x407240
mov dword [esp + 0x18], 0x408600
mov dword [esp + 0x1c], 0x407240
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
call fcn.00403ce0
lea eax, [esp + 0x20]
push esi
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call fcn.004036b0
add esp, 8
cmp eax, ebx
je 0x408e3f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.00401130
jmp 0x408eaa
mov dword [esp + 0xc], ebx
cmp dword [esp + 0x60], ebx
jbe 0x408eaa
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push ecx
sub esp, 0x80
mov edi, esp
push edx
push eax
mov ecx, 0x20
lea esi, [esp + 0xb8]
mov eax, 0x401c
rep movsd dword es:[edi], dword [esi]
call fcn.004122b0
mov esi, dword [ebp + 8]
mov edi, esp
mov ecx, 0x1007
rep movsd dword es:[edi], dword [esi]
call fcn.00408700
test al, al
je 0x408eaa
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x60]
jb 0x408e49
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.00401130
push ebx
call fcn.0040bbcf
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40a0a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push str.SetupApp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a118
push 0xd0
call fcn.0040c1ca
add esp, 4
test eax, eax
je 0x40a0df
push eax
call fcn.004072a0
mov esi, eax
jmp 0x40a0e1
xor esi, esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x42222c]
push eax
call fcn.00407620
test esi, esi
je 0x40a107
push esi
call fcn.00407420
push esi
call fcn.0040c16e
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
mov dword [ebp - 0x110], 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.0040f650
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_shiliws
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a242
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.UninstallString
push ecx
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a235
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a1e3
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x40a20a
lea eax, [edi + 1]
push eax
push 0
mov dword [esi], 0
call fcn.0040caf1
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push edx
call fcn.0040c8d5
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 4]
push 0xffffffffffffffff
push 0x41bc36
mov dword [esi], eax
mov byte [eax], 0
call fcn.00407e90
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret

Function at 0x40a440
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi]
mov eax, edx
push esi
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a450
sub eax, esi
jne 0x40a462
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a47b
mov eax, dword [edi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [edi]
sub esp, 0x44
mov esi, esp
mov dword [ebp - 4], esp
lea eax, [esi + 4]
push 0xffffffffffffffff
push ecx
mov dword [esi], eax
mov byte [eax], 0
call fcn.00407e90
push edi
call fcn.0040a4b0
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4172f8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41e024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x41bd24
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40a5b9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x40a520
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
jmp 0x40a5c8
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40a5b9
push edi
call fcn.0040c001
add esp, 4
mov dword [0x422200], eax
test eax, eax
je 0x40a55c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x422200]
push eax
push edx
call fcn.00411010
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x98]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x40a582
push 0
push 0
push 0x52c
push eax
call esi
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x40a598
push 0
push 0x32
push 0x52d
push eax
call esi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00408ed0
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x40a5b9
push 0
push 0
push 0x52e
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
je 0x40a5d3
push eax
call fcn.0040bbcf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x48
Function at 0x40a710
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416fb3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x9c]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40a837
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 0x94], bl
mov dword [ebp - 4], ebx
mov edx, dword [0x42222c]
mov ecx, dword [edx + 4]
mov eax, dword [esi]
push ecx
push eax
push str.__s_s___mini
lea edi, [ebp - 0x98]
call fcn.00408390
lea edx, [ebp - 0x50]
push 4
mov eax, edx
push str.ybjc
push eax
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], bl
call fcn.0040c8d5
mov ecx, dword [ebp - 0x54]
add esp, 0x18
mov byte [ecx + 4], bl
mov byte [ebp - 4], 1
mov esi, dword [esi + 0x54]
push esi
lea eax, [ebp - 0x54]
call fcn.00407d90
mov edx, dword [ebp - 0x98]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40a7d5
sub eax, esi
push eax
mov eax, dword [ebp - 0x9c]
push edx
mov edx, dword [ebp - 0x54]
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
cmp eax, edx
je 0x40a817
push eax
call fcn.0040bbcf
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x40a837
push eax
call fcn.0040bbcf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret
Function at 0x40a860
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416f71
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x144]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa6f
mov ecx, dword [ebx]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
mov edi, ecx
test ecx, ecx
jne 0x40a8d7
mov edi, 0x41bc36
mov esi, edi
lea edx, [esi + 1]
lea esp, [esp]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x40a8e0
sub esi, edx
cmp esi, 0x3f
jl 0x40a90c
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xb8], 0
call fcn.0040caf1
add esp, 8
mov dword [ebp - 0xb8], eax
push esi
push edi
push eax
call fcn.0040c8d5
mov edx, dword [ebp - 0xb8]
add esp, 0xc
mov byte [esi + edx], 0
push 0x41bc38
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], 0
call fcn.00407d90
mov eax, dword [ebp - 0xb8]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x13c]
mov dword [ebp - 0x140], edx
mov byte [ebp - 0x13c], 0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
mov eax, dword [ebx]
push ecx
push eax
push str.__s_s___mini
lea edi, [ebp - 0x140]
call fcn.00408390
lea edx, [ebp - 0xf8]
push 4
mov eax, edx
push str.ybjc
push eax
mov dword [ebp - 0xfc], edx
mov byte [ebp - 0xf8], 0
call fcn.0040c8d5
mov ecx, dword [ebp - 0xfc]
add esp, 0x18
mov byte [ecx + 4], 0
push str._News
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.00407d90
mov ebx, dword [ebx + 0x54]
push ebx
lea eax, [ebp - 0xfc]
call fcn.00407d90
mov ecx, dword [ebp - 0x140]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a9e5
mov edx, dword [ebp - 0xfc]
sub eax, esi
push eax
mov eax, dword [ebp - 0x144]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
cmp eax, edx
je 0x40aa32
push eax
call fcn.0040bbcf
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x13c]
cmp eax, ecx
je 0x40aa4f
push eax
call fcn.0040bbcf
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xb4]
cmp eax, edx
je 0x40aa6f
push eax
call fcn.0040bbcf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret 4
Function at 0x40b290
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b2df
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x134]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40b351
lea edx, [ebp - 0x134]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x40b351
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov eax, dword [ebp - 0x138]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040c7eb
add esp, 8
test eax, eax
jne 0x40b33f
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call edi
test eax, eax
je 0x40b33f
push 0
push eax
call ebx
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40b310
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040bbc0
mov esp, ebp
pop ebp
ret 4
Function at 0x40bbc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e024]
jne 0x40bbca
repz ret
jmp fcn.0040d066

Function at 0x41014c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d56d
and dword [ebp - 0x14], 0
cmp dword [0x420018], 0
mov dword [ebp - 0x18], eax
jne 0x4101ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4102a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4102a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x420018], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42001c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x420020], eax
call edi
push eax
call esi
mov dword [0x420028], eax
test eax, eax
je 0x4101ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x420024], eax
mov eax, dword [0x420024]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410258
cmp dword [0x420028], ecx
je 0x410258
push eax
call esi
push dword [0x420028]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410258
test ebx, ebx
je 0x410258
call edi
test eax, eax
je 0x41024f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41024f
test byte [ebp - 8], 1
jne 0x410258
or dword [ebp + 0x10], 0x200000
jmp 0x41028b
mov eax, dword [0x42001c]
cmp eax, dword [ebp - 0x18]
je 0x41028b
push eax
call esi
test eax, eax
je 0x41028b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41028b
mov eax, dword [0x420020]
cmp eax, dword [ebp - 0x18]
je 0x41028b
push eax
call esi
test eax, eax
je 0x41028b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420018]
call esi
test eax, eax
je 0x4102a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4102a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbc0
leave
ret
Function at 0x401000
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [ebp - 0x214]
push edi
mov dword [ebp - 0x670], eax
sub edx, eax
jmp 0x401030
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401030
lea eax, [ebp - 0x214]
add eax, 0xfffffffe
jmp 0x401050
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401050
mov ecx, dword [0x4202c0]
mov edx, dword [0x4202c4]
mov dword [eax], ecx
mov cx, word [0x4202c8]
mov dword [eax + 4], edx
lea edx, [ebp - 0x66c]
mov word [eax + 8], cx
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x674], esi
cmp esi, 0xffffffff
jne 0x4010ae
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x680], ebx
jmp 0x4010c0
mov edx, dword [ebp - 0x670]
lea ecx, [ebp - 0x640]
push ecx
push edx
lea eax, [ebp - 0x41c]
push 0x4202cc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0x66c], 0x10
je 0x401184
mov ecx, 0x4202d8
lea eax, [ebp - 0x640]
jmp 0x401100
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401126
test dx, dx
je 0x401122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401126
add eax, 4
add ecx, 4
test dx, dx
jne 0x401100
xor eax, eax
jmp 0x40112b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401190
mov ecx, 0x4202dc
lea eax, [ebp - 0x640]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401166
test dx, dx
je 0x401162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401166
add eax, 4
add ecx, 4
test dx, dx
jne 0x401140
xor eax, eax
jmp 0x40116b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401190
lea ecx, [ebp - 0x41c]
push ecx
call fcn.00401000
add esp, 4
add edi, eax
adc ebx, edx
jmp 0x401190
add edi, dword [ebp - 0x64c]
adc ebx, dword [ebp - 0x650]
lea edx, [ebp - 0x66c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4010c0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x680], ebx
call esi
cmp eax, 0x12
je 0x401215
call esi
push 0
push 0
mov esi, eax
lea eax, [ebp - 0x678]
push eax
push 0x400
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ecx, dword [ebp - 0x678]
push ecx
push esi
push str._d:__s
mov ecx, 0x100
mov ebx, 0x4c48e0
call fcn.00403b90
mov edx, dword [ebp - 0x670]
add esp, 0xc
push ebx
push edx
push str.dir_size_error__s__s_n
call fcn.00403ce0
mov ebx, dword [ebp - 0x680]
add esp, 0xc
mov eax, dword [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
Function at 0x401820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x312c
call fcn.00417a50
mov eax, dword [0x423020]
xor eax, esp
mov dword [esp + 0x3128], eax
cmp word [0x4a1d80], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov esi, ecx
jne 0x40185e
push str.no_volume_name
call fcn.00403c40
cmp word [0x4c3138], 0
jne 0x401878
mov ecx, str.You_forgot_to_Mycp_icon____right_button____settings____Autorun_Exec_File
call fcn.00403650
push eax
call fcn.00403c90
push 0
call fcn.0040b438
push eax
call fcn.0040b1d1
push 0x1800
lea ecx, [esp + 0x191c]
push 0
push ecx
call fcn.0040c810
push 0x1800
lea edx, [esp + 0x128]
push 0
push edx
call fcn.0040c810
push 0x420410
lea edx, [esp + 0x3138]
mov ecx, esi
call fcn.00401ad0
lea eax, [esp + 0x3c]
push eax
mov ecx, edx
push 0x100
push ecx
call fcn.00406270
push 0
call fcn.0040b438
mov dword [esp + 0x178], edx
lea edx, [esp + 0x180]
add esp, 0x34
mov dword [esp + 0x140], eax
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4018f5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401904
sub eax, edx
mov dword [esp + 0x148], eax
xor esi, esi
jmp 0x401920
lea edx, [esp + 0x18]
push edx
lea eax, [esp + esi + 0x1914]
push eax
lea ecx, [esp + esi + 0x118]
push ecx
call fcn.004076c0
add esi, 0x10
add esp, 0xc
cmp esi, 0x1000
jl 0x401920
mov dword [esp + 0x10], 0x4c3548
mov ebx, 0x49e080
xor edi, edi
xor esi, esi
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
lea eax, [edi + esi]
lea ecx, [esp + eax + 0x2914]
push ecx
lea edx, [edi + esi + 0x4c3548]
push edx
call fcn.004076c0
add esi, 0x10
add esp, 0xc
cmp esi, 0x20
jl 0x401960
mov esi, dword [esp + 0x10]
push ebx
push 0x100
push esi
call fcn.00406270
add ebx, 0x1e8
add esi, 0x20
add esp, 0xc
add edi, 0x20
mov dword [esp + 0x10], esi
cmp ebx, 0x4a1d80
jl 0x401957
xor esi, esi
call fcn.0040b1e3
mov byte [esp + esi + 0x1510], al
inc esi
cmp esi, 0x400
jl 0x4019b5
mov dword [esp + 0x1610], 0
mov dword [esp + 0x1714], 1
xor eax, eax
jmp 0x4019f0
movzx ecx, word [eax + 0x4c3138]
mov word [esp + eax + 0x1614], cx
add eax, 2
test cx, cx
jne 0x4019f0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4c3340]
mov word [esp + eax + 0x1694], cx
add eax, 2
test cx, cx
jne 0x401a10
push 0x4a1d80
lea ecx, [esp + 0x1514]
xor eax, eax
push 0x80
push ecx
mov word [0x4a1e7e], ax
call fcn.0040b3d5
lea ecx, [esp + 0x2d1c]
lea eax, [esp + 0x151c]
call fcn.00401b90
mov edi, dword [esp + 0x20]
push 0x420310
push edi
call fcn.0040a4a2
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x401a96
push edi
push str.cannot_create__s_n
call fcn.00403ce0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3128]
xor ecx, esp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
push esi
push 1
lea edx, [esp + 0x1918]
push 0x1800
push edx
call fcn.0040b35b
push esi
call fcn.0040a7d4
mov ecx, dword [esp + 0x3148]
add esp, 0x14
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
Function at 0x401ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
push esi
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
lea esi, [ebp - 0x404]
push edi
mov edi, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, ecx
sub esi, ecx
jmp 0x401b10
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401b10
mov eax, edi
mov esi, edi
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b20
lea edi, [ebp - 0x404]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401b30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x404]
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b50
sub eax, esi
mov edi, eax
xor eax, eax
test edi, edi
jle 0x401b75
mov cl, byte [ebp + eax - 0x404]
mov esi, eax
and esi, 0x1f
xor byte [esi + edx], cl
inc eax
cmp eax, edi
jl 0x401b61
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret

Function at 0x401c80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x423020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
movzx esi, cx
push esi
lea eax, [ebp - 0x10]
push str._c:_
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x401ce7
sub eax, 3
je 0x401ce0
push str.Cannot_eject.__Drive_type_is_incorrect._n
call fcn.0040b489
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
mov ebx, 0x80000000
jmp 0x401cec
mov ebx, 0xc0000000
push esi
lea edx, [ebp - 0x20]
push str.._c:
push edx
call edi
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401d30
push str.CreateFile
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d:__s_n
call fcn.0040b489
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret