joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017bf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x12c]
push str.0x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x35c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x35c]
push 0x40b0ec
push eax
call fcn.00402a06
pop ecx
lea eax, [ebp - 0x35c]
pop ecx
mov esi, str.Caption
push eax
lea eax, [ebp - 0x258]
push 0x12c
push eax
push 0x40de38
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x40184f
lea eax, [ebp - 0x12c]
push str.0x0409
push eax
call ebx
lea eax, [ebp - 0x12c]
push eax
push 3
push 0x40e35c
push esi
call fcn.0040196b
lea eax, [ebp - 0x12c]
push eax
push 4
push 0x40e488
push 0x40b14c
call fcn.0040196b
lea eax, [ebp - 0x12c]
push eax
push 5
push 0x40e5b4
push str.LocalLaunch
call fcn.0040196b
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x258]
push 8
push eax
push str.Copying
call fcn.0040196b
add esp, 0x40
lea eax, [ebp - 0x258]
mov esi, 0x40e6e0
push eax
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40b130
push esi
call edi
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x258]
push 0xa
push eax
push 0x40b12c
call fcn.0040196b
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
push esi
call edi
push 0x40b128
push esi
call edi
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x258]
push 9
push eax
push str.Scanning
call fcn.0040196b
add esp, 0x10
lea eax, [ebp - 0x258]
mov esi, 0x40e80c
push eax
push esi
call ebx
push 0x40b128
push esi
call fcn.004031d0
lea eax, [ebp - 0x12c]
push eax
push 6
push 0x40e938
push str.PrepMessage
call fcn.0040196b
lea eax, [ebp - 0x12c]
push eax
push 7
push 0x40ea64
push str.WaitMessage
call fcn.0040196b
add esp, 0x28
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c49
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401d35
mov esi, 0x40eb90
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00402bf2
pop ecx
test eax, eax
pop ecx
je 0x401d35
push 0x40b170
push 0x69
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
je 0x401d35
cmp edi, ebx
je 0x401d35
cmp eax, ebx
je 0x401d35
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov esi, eax
cmp esi, ebx
je 0x401d31
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
push esi
mov dword [ebp - 4], ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d28
cmp dword [ebp - 4], esi
jne 0x401d28
push 1
pop esi
jmp 0x401d2a
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x401d37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401dd6
Capabilities:
Delete file

Disassembly:
cmp byte [0x40eb90], 0
push esi
je 0x401e02
xor esi, esi
push 0x40eb90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401e02
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x401de2
pop esi
ret
Function at 0x401f7e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
cmp dword [0x40edb4], 0
jne 0x402099
and byte [ebp - 0x104], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.00402a90
lea eax, [ebp - 0x104]
push eax
call fcn.00401ecf
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push 0x40b174
push eax
call edi
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402099
cmp dword [0x40edb4], 0
jne 0x402092
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.00402a90
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
test byte [ebp - 0x244], 0x10
je 0x402060
cmp byte [ebp - 0x218], 0x2e
je 0x40207c
lea eax, [ebp - 0x104]
push eax
call fcn.00401f7e
pop ecx
jmp 0x40207c
inc dword [0x40eda8]
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00402d58
add dword [0x40edac], eax
pop ecx
pop ecx
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40200d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40209e
Capabilities:
Create directory
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 4]
and byte [ebp - 0x210], al
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x20f]
pop ecx
and byte [ebp - 0x33c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x4a
xor eax, eax
pop ecx
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x468], bl
push 0x4a
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x467]
and byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x210]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4022a4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00402ae8
pop ecx
test eax, eax
pop ecx
je 0x4022a4
mov eax, dword [0x40edac]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
ja 0x4021a5
jb 0x402153
cmp eax, dword [ebp - 8]
jae 0x4021a5
mov esi, 0x40ec94
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00402bf2
pop ecx
test eax, eax
pop ecx
je 0x4022a4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4022a4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4022a4
cmp dword [0x40edb4], ebx
je 0x40219d
push ebx
push ebx
jmp 0x402291
push 1
pop eax
jmp 0x4022ad
movzx eax, word [0x40de40]
push eax
lea eax, [ebp - 0x33c]
push str.0x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x40b0ec
push eax
call fcn.00402a06
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop ecx
lea eax, [ebp - 0x10c]
mov esi, 0x12c
push eax
mov edi, 0x40e35c
push esi
push edi
push 0x40de38
lea eax, [ebp - 0x33c]
push str.Caption
push eax
call ebx
test eax, eax
jne 0x402224
push esi
push edi
push 3
push dword [0x40dd30]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x468]
push esi
push eax
push 0x40de38
lea eax, [ebp - 0x33c]
push str.NoSpace
push eax
call ebx
test eax, eax
jne 0x402260
lea eax, [ebp - 0x468]
push esi
push eax
push 1
push dword [0x40dd30]
call dword [sym.imp.USER32.dll_LoadStringA]
push 4
lea eax, [ebp - 0x468]
push edi
push eax
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40228d
push dword [0x40eda0]
push 0x40de48
call fcn.00401261
pop ecx
pop ecx
push 0
push 0
push 0x415
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4022ab
push ebx
call fcn.00401d3c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022b2
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [0x40edb4], ebx
jne 0x402425
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a90
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
mov dword [esp], 0x40b174
push eax
call edi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x402425
cmp dword [0x40edb4], ebx
jne 0x40241c
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a90
pop ecx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00402a90
pop ecx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov eax, dword [ebp - 0x34c]
and eax, 0x10
test al, al
jne 0x4023cc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040242a
jmp 0x402402
cmp byte [ebp - 0x320], 0x2e
je 0x402404
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4023ef
push ebx
call fcn.00401d3c
jmp 0x402403
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004022b2
pop ecx
pop ecx
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40234c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40242a
Capabilities:
Copy file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x513]
mov byte [ebp - 0x514], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402a42
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0xc]
call fcn.00402a21
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x514]
push 0x40e6e0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x514]
push eax
push 0x3ec
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x40edb4], ebx
jne 0x402573
push esi
lea eax, [ebp - 0x208]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add dword [0x40edb0], eax
push dword [0x40edb0]
call fcn.004027c7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x402577
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x40b0ec
push eax
call fcn.00402a06
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push eax
push 0
push str.QTInstall
push str.32Bit
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x40260b
push 0
call fcn.00407f30
test ax, ax
pop ecx
jne 0x4025fa
call fcn.004080e0
lea eax, [ebp - 4]
push eax
push 0x7174696d
call fcn.00407ce0
pop ecx
pop ecx
call fcn.00408100
call fcn.00408090
cmp dword [ebp - 4], 0x4128000
jge 0x40260b
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040260d
pop ecx
pop ecx
leave
ret
Function at 0x40260d
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x25c]
push str.0x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x104
lea eax, [ebp - 0x464]
push dword [ebp + 0xc]
mov ebx, 0x40de38
push esi
push eax
push ebx
lea eax, [ebp - 0x25c]
push str.QTInstallCaption
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x360]
push esi
push eax
push ebx
lea eax, [ebp - 0x25c]
push str.QTInstallMsg
push eax
call edi
lea eax, [ebp - 0x464]
push 0x34
push eax
lea eax, [ebp - 0x360]
push eax
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40275f
push dword [ebp + 0xc]
lea eax, [ebp - 0x568]
push esi
push eax
push ebx
push str.QTInstallDir
push str.32Bit
call edi
push esi
lea eax, [ebp - 0x158]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00402a21
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x158]
push eax
call edi
lea eax, [ebp - 0x158]
push str.QuickTimeInstaller.exe
push eax
call edi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004032b0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], si
call fcn.004032b0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40275f
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ae8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
and byte [ebp - 0x114], 0
push 1
xor eax, eax
pop ebx
lea edi, [ebp - 0x113]
push 0x40
lea esi, [ebp - 0x114]
pop ecx
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x114], 0x5c
jne 0x402b3f
cmp byte [ebp - 0x113], 0x5c
jne 0x402b3f
push 2
lea esi, [ebp - 0x112]
pop ebx
xor ecx, ecx
test ebx, ebx
jle 0x402b61
mov al, byte [esi]
test al, al
je 0x402b61
cmp al, 0x5c
je 0x402b53
cmp al, 0x2f
jne 0x402b5c
inc ecx
cmp ecx, ebx
jne 0x402b5c
inc esi
and byte [esi], 0
inc esi
cmp ecx, ebx
jl 0x402b45
lea eax, [ebp - 0x114]
push eax
call fcn.00402a90
mov dword [esp], str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.GetDiskFreeSpaceExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x402bad
and dword [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call ecx
mov esi, eax
jmp 0x402be4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, eax
test esi, esi
je 0x402be4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
imul ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 4]
mov dword [eax], ecx
and dword [eax + 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402bf2
Capabilities:
Get common file path

Disassembly:
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 5
jge 0x402c28
push dword [esp + 0x10]
push 0
push 0x40b214
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
test esi, esi
jne 0x402c23
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
test esi, esi
je 0x402bf8
mov eax, esi
pop edi
pop esi
ret
Function at 0x402c2d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
and byte [ebp - 0x108], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a90
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
mov dword [esp], 0x40b174
push eax
call edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x402d54
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a90
pop ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
mov eax, dword [ebp - 0x248]
test al, 1
je 0x402cf8
dec eax
mov dword [ebp - 0x248], eax
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x248]
and eax, 0x10
test al, al
jne 0x402d0e
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402d2d
cmp byte [ebp - 0x21c], 0x2e
je 0x402d2d
lea eax, [ebp - 0x108]
push eax
call fcn.00402c2d
pop ecx
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402caa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402d58
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d85
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x402d99
mov dword [eax], esi
jmp 0x402d99
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4046c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b300
cmp edx, dword [eax]
je 0x4046e3
add eax, 8
inc ecx
cmp eax, 0x40b390
jl 0x4046d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b300]
jne 0x404811
mov eax, dword [0x40edd8]
cmp eax, 1
je 0x4047eb
test eax, eax
jne 0x404714
cmp dword [0x40b238], 1
je 0x4047eb
cmp edx, 0xfc
je 0x404811
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40474b
lea eax, [ebp - 0x1a4]
push 0x40957c
push eax
call fcn.004031c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40478e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b218
push edi
call fcn.00406b90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x409560
push eax
call fcn.004031c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004031d0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004031d0
push dword [esi + 0x40b304]
lea eax, [ebp - 0xa0]
push eax
call fcn.004031d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x409534
push eax
call fcn.00406aff
add esp, 0x2c
pop edi
jmp 0x404811
lea eax, [ebp + 8]
lea esi, [esi + 0x40b304]
push 0
push eax
push dword [esi]
call fcn.00406210
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4126e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48780b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00479df9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412762
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004775dd
mov eax, dword [eax]
push 0x65c218
push eax
call fcn.00468c14
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047a084
test bl, bl
je 0x412762
push 0x65c218
lea ecx, [esp + 0xc]
call fcn.0047a460
push 0x65fd94
lea ecx, [esp + 0xc]
call fcn.0047a460
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41279e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047a084
jmp 0x412869
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x412822
lea edx, [esp + 0x7c]
push 0x65fd90
push edx
call fcn.00468c14
add esp, 8
test eax, eax
je 0x412822
lea eax, [esp + 0x7c]
push 0x65fd8c
push eax
call fcn.00468c14
add esp, 8
test eax, eax
je 0x412822
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4127b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047a084
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x413060
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4130c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc