joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415256
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], 1
push eax
mov dword [esp + 0x10], eax
call fcn.0040cfc2
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x14], eax
call fcn.0040cfc2
add esp, 8
lea ecx, [esi + 0x14]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.00403690
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], bl
call fcn.00403690
lea ecx, [esi + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00403690
mov ecx, dword [esp + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405a10
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov cl, byte [eax]
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
xor esi, esi
mov byte [ebp + 8], cl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x405a93
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
push edx
push ecx
lea edx, [ebp - 0x1c]
lea ecx, [ebp + 8]
push edx
push ecx
call eax
test eax, eax
je 0x405a8b
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
shrd eax, edx, cl
shr edx, cl
mov esi, eax
push esi
push esi
push edx
lea edx, [ebp + 8]
push edx
push str.GetDiskFreeSpaceEx__s_:_0x_08X_08X_nSize:_0x_08X_n
call fcn.0040bfe0
add esp, 0x14
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 0x10]
push ecx
lea eax, [ebp - 8]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x405b23
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ebx
fild qword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
fild qword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ebx
fmulp st(1)
fild qword [ebp - 0x24]
fmulp st(1)
fmul qword [0x416338]
fcom qword [0x416330]
fnstsw ax
test ah, 1
jne 0x405b02
fcom qword [0x416328]
fnstsw ax
test ah, 0x41
je 0x405b02
call fcn.0040e078
mov esi, eax
jmp 0x405b09
fstp st(0)
mov esi, 0x200000
lea edx, [ebp + 8]
push esi
push edx
push str.GetDiskFreeSpace__s_:_0x_08X_n
call fcn.0040bfe0
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
push eax
push str.GetDiskFreeSpace__s_
call fcn.0040c000
add esp, 8
mov eax, 0x200000
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4077e0
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [0x41b38c]
sub esp, 0x14
mov ecx, dword [eax + 0xc7c]
test ecx, ecx
je 0x40784e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407858
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407858
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x407a80
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x268
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x4a
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea edi, [esi + 0xc]
push edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea ebp, [esi + 0x10]
push ebp
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea eax, [esp + 0x10]
lea ebx, [esi + 0x14]
push eax
push 0x11
push 0
mov dword [ebx], 0
mov dword [esi + 0x18], 0x10
mov byte [esi + 0x1c], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x407afd
mov eax, dword [ebp]
push ebx
push 0x416368
push 0
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [edi]
mov edx, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0xc
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
push edi
mov ebp, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebp, 4
jne 0x407b24
mov edi, ebp
jmp 0x407b34
cmp ebp, 8
jne 0x407b2d
mov edi, ebp
jmp 0x407b34
jle 0x407b34
mov edi, 0x10
push 4
or edi, 1
push 0
push edi
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi + 8], eax
lea eax, [esp + 0x174]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x101
lea ecx, [esp + 0x18]
push 0x160
push ecx
lea edx, [esp + 0x180]
push 0
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push eax
push 0xffffffffffffffff
push ecx
call ebx
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_DestroyIcon]
push edx
call ebp
push 0x103
lea eax, [esp + 0x18]
push 0x160
push eax
lea ecx, [esp + 0x180]
push 0
push ecx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 8]
push edx
push 0xffffffffffffffff
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret
Function at 0x409250
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
xor ebp, ebp
mov dword [0x41b384], edi
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push str.RICHED32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0xfbc
mov ebx, eax
call fcn.0040db8c
add esp, 4
test eax, eax
je 0x409293
mov ecx, eax
call fcn.004095a0
jmp 0x409295
xor eax, eax
push esi
mov ecx, eax
mov dword [0x41b38c], eax
call fcn.00409970
test eax, eax
je 0x40932e
mov eax, dword [0x41b38c]
push 0x104
lea esi, [eax + 0xc9c]
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x41b38c]
add eax, esi
add ecx, 0x1b0
push ecx
push str._s_Install_Info.log
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x28]
push edx
call fcn.00408f70
mov ecx, dword [0x41b38c]
add esp, 0x10
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x409304
call fcn.004091d0
jmp 0x40932e
cmp dword [ecx + 0x60], 1
jne 0x40931e
push 0
push 0x408e70
push 0
push 0x65
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x40932e
call fcn.0040afe0
mov eax, dword [0x41b38c]
mov ebp, dword [eax + 0xfa4]
call fcn.0040cc40
call fcn.0040cbb0
call fcn.004091a0
call fcn.0040c170
mov esi, dword [0x41b38c]
test esi, esi
je 0x40935c
mov ecx, esi
call fcn.004098c0
push esi
call fcn.0040cfc2
add esp, 4
test ebx, ebx
pop esi
je 0x409368
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebp
pop edi
pop ebp
pop ebx
ret 0x10

Function at 0x4093c0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x41b38c]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x4093d3
mov esi, dword [eax + 0x6c]
test esi, esi
je 0x4093e8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, esi
pop esi
ret
mov edx, dword [esp + 0xc]
add eax, 0x1b0
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, esi
pop esi
ret
Function at 0x409970
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x41b384]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
lea edx, [esp + 0x18]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4099d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
push 0x2000
call fcn.004094f0
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 0x30
push ebp
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x409ae5
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409ae5
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x409a2e
push 0x10
push 0x2001
call fcn.004094f0
add esp, 8
jmp 0x409b3c
push ebx
push ebx
push eax
push ebp
call edi
test eax, eax
je 0x409ae5
lea edx, [esp + 0x10]
push ebx
lea edi, [esi + 0x1ac]
push edx
push 0x8a
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409ae5
cmp dword [edi], 0x756c755a
je 0x409a79
push 0x10
push 0x2001
call fcn.004094f0
add esp, 8
jmp 0x409b3c
mov al, byte [esi + 0x22f]
mov byte [esi + 0x1ef], bl
and eax, 3
dec eax
je 0x409aaa
dec eax
je 0x409aa1
dec eax
jne 0x409ab0
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x64], 1
jmp 0x409ab0
mov dword [esi + 0x60], 0xffffffff
jmp 0x409aad
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
xor eax, eax
mov ax, word [esi + 0x230]
lea edi, [eax + eax*2]
shl edi, 2
push edi
call fcn.0040d4a1
add esp, 4
cmp eax, ebx
mov dword [esi + 0x238], eax
je 0x409b3c
lea ecx, [esp + 0x10]
push ebx
push ecx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10
push 0x2000
call fcn.004094f0
add esp, 0xc
jmp 0x409b3c
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0x230]
cmp ecx, ebx
jle 0x409b34
mov esi, dword [esi + 0x238]
add esi, 4
mov edi, dword [esi + 4]
mov ebx, dword [esi]
add edi, ebx
cmp edi, eax
ja 0x409a1a
inc edx
add esi, 0xc
cmp edx, ecx
jl 0x409b1d
mov dword [esp + 0x14], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x409b60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x11c
mov edx, ecx
push ebx
xor ecx, ecx
xor eax, eax
mov cx, word [edx + 0x230]
push esi
test ecx, ecx
push edi
mov dword [esp + 0x20], edx
jle 0x409bb1
mov esi, dword [edx + 0x238]
mov edi, dword [esp + 0x12c]
mov edx, esi
cmp dword [edx], edi
je 0x409ba7
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x409b8d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret 0x10
lea eax, [eax + eax*2]
lea edi, [esi + eax*4]
test edi, edi
jne 0x409bbf
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x11c
ret 0x10
push ebp
push 0xffff
mov dword [esp + 0x24], 0
call fcn.0040d4a1
mov edx, dword [0x41b384]
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x3c]
push 0x80000000
push eax
call esi
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
jne 0x409c23
mov dword [esp + 0x10], eax
jmp 0x409d4c
mov ebx, dword [esp + 0x134]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x409c5b
push ebx
push 0x1006
call fcn.0040c000
add esp, 8
jmp 0x409d10
mov ecx, dword [edi + 8]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x409d4c
mov ebx, dword [edi + 4]
mov esi, 0xfffe
test ebx, ebx
mov edi, ebx
jbe 0x409d08
mov ebp, dword [esp + 0x138]
cmp esi, edi
jbe 0x409c92
mov esi, edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409d48
cmp dword [esp + 0x14], esi
jne 0x409d48
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409d48
cmp dword [esp + 0x14], esi
jne 0x409d48
mov edx, dword [esp + 0x13c]
mov eax, ebx
sub edx, ebp
push ebx
sub eax, edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x24]
add eax, ebp
push eax
call fcn.0040bb40
sub edi, esi
jne 0x409c8c
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
push eax
call fcn.0040d438
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
cmp ebp, 0xffffffff
je 0x409d2b
push ebp
call esi
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 0xffffffff
je 0x409d38
push eax
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 0x11c
ret 0x10
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x28]
push ecx
push edx
push 0x1005
call fcn.0040c000
add esp, 0xc
jmp 0x409d10
Function at 0x40a720
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + ebx*4 + 0xc94]
test eax, eax
jne 0x40a7cf
mov eax, dword [esi + 0xc90]
test eax, eax
jne 0x40a74a
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
push 0x104
call fcn.0040d4a1
mov edi, eax
mov eax, dword [esi + 0xc7c]
add esp, 4
test eax, eax
je 0x40a777
mov eax, dword [esi + 0xc88]
test eax, eax
je 0x40a777
mov ax, word [ebx*2 + 0x418478]
jmp 0x40a77f
mov ax, word [ebx*2 + 0x41847c]
cmp ebx, 1
movsx eax, ax
jne 0x40a796
push 0
push eax
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x40a7b1
mov ecx, dword [esi]
push edi
push 0
or ah, 0x80
push 0
push eax
push ecx
call dword [esi + 0xc90]
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
jne 0x40a7c6
push edi
call fcn.0040d438
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
mov dword [esi + ebx*4 + 0xc94], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x40a7e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xfa8]
cmp eax, 1
jne 0x40a7fc
pop ebp
add esp, 0x108
ret
mov ecx, 2
cmp eax, ecx
jne 0x40a80f
xor eax, eax
pop ebp
add esp, 0x108
ret
mov eax, dword [0x41b374]
test byte [eax + 0x90], 1
jne 0x40a82d
mov dword [ebp + 0xfa8], ecx
xor eax, eax
pop ebp
add esp, 0x108
ret
mov dword [ebp + 0xfa8], ecx
lea ecx, [esp + 8]
push ebx
push ecx
mov ecx, dword [0x41b374]
push 4
mov byte [esp + 0x14], 0
call fcn.00405560
test eax, eax
je 0x40a8fe
push 0
push 0x80
push 3
push 0
push 0
lea edx, [esp + 0x20]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40a8fe
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x40a8f5
cmp edi, 0x8000
jae 0x40a8f5
lea eax, [edi + 1]
push eax
call fcn.0040d4a1
mov esi, eax
add esp, 4
test esi, esi
je 0x40a8f5
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a8da
mov byte [esi + edi], 0
mov edx, dword [ebp + 0xc]
push esi
push 0x3f8
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [ebp + 0xfa8], 1
jmp 0x40a8ec
lea eax, [esp + 0x14]
push eax
push 0x1007
call fcn.0040c000
add esp, 8
push esi
call fcn.0040d438
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp + 0xfa8]
xor eax, eax
cmp ecx, 1
pop ebx
sete al
pop ebp
add esp, 0x108
ret
Function at 0x40a920
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xfac]
cmp eax, 1
jne 0x40a93c
pop ebx
add esp, 0x108
ret
mov ecx, 2
cmp eax, ecx
jne 0x40a94f
xor eax, eax
pop ebx
add esp, 0x108
ret
mov eax, dword [0x41b374]
test byte [eax + 0x90], 0x80
jne 0x40a96d
mov dword [ebx + 0xfac], ecx
xor eax, eax
pop ebx
add esp, 0x108
ret
mov dword [ebx + 0xfac], ecx
lea ecx, [esp + 8]
push ebp
push ecx
mov ecx, dword [0x41b374]
push 7
mov byte [esp + 0x14], 0
call fcn.00405560
test eax, eax
je 0x40aa3e
push 0
push 0x80
push 3
push 0
push 0
lea edx, [esp + 0x20]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40aa3e
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x40aa35
cmp edi, 0x8000
jae 0x40aa35
lea eax, [edi + 1]
push eax
call fcn.0040d4a1
mov esi, eax
add esp, 4
test esi, esi
je 0x40aa35
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40aa1a
mov byte [esi + edi], 0
mov edx, dword [ebx + 0x3c]
push esi
push 0x3f8
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov dword [ebx + 0xfac], 1
jmp 0x40aa2c
lea eax, [esp + 0x14]
push eax
push 0x1007
call fcn.0040c000
add esp, 8
push esi
call fcn.0040d438
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebx + 0xfac]
xor eax, eax
cmp ecx, 1
pop ebp
sete al
pop ebx
add esp, 0x108
ret

Function at 0x40b0c0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
mov esi, ecx
push 4
call fcn.0040b8b0
mov eax, 1
mov dword [esi + 0xfb0], eax
mov dword [esi + 0xfb4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x401c50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xfb8], eax
pop esi
pop ecx
ret

Function at 0x40b960
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x40b9ca
mov eax, dword [esp + 8]
test eax, eax
je 0x40b99f
mov eax, dword [esi + 8]
push 0x43
push 0
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x44]
cmp eax, 0xffffffff
je 0x40b9ca
mov ecx, dword [esi + eax*4 + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
mov eax, dword [esi + 0x44]
cmp eax, 0xffffffff
je 0x40b9be
mov edx, dword [esi + eax*4 + 4]
push 0x43
push 0
push 0
push 0
push 0
push 1
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4
Function at 0x40c090
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [0x41b38c]
sub esp, 0x104
mov cl, byte [eax + 0x23c]
push esi
test cl, cl
jne 0x40c15a
lea ecx, [esp + 4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [esp + eax + 4]
mov al, byte [esp + eax + 3]
cmp al, 0x5c
je 0x40c0ca
mov byte [esi], 0x5c
inc esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
xor edi, edi
push edi
push str._Zulu__02X
push esi
call ebx
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0040e1ca
add esp, 0x14
test eax, eax
jne 0x40c0f9
inc edi
cmp edi, 0x100
jl 0x40c0d4
cmp edi, 0x100
pop edi
pop ebx
jne 0x40c10d
xor eax, eax
pop esi
add esp, 0x104
ret
lea eax, [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40c13a
lea ecx, [esp + 4]
push ecx
push 0x1001
call fcn.0040c000
add esp, 8
xor eax, eax
pop esi
add esp, 0x104
ret
add esi, 8
lea edx, [esp + 4]
push edx
mov byte [esi], 0x5c
mov byte [esi + 1], 0
mov eax, dword [0x41b38c]
add eax, 0x23c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop esi
add esp, 0x104
ret

Function at 0x40c170
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x41b38c]
add eax, 0x23c
mov dword [esp], eax
cmp byte [eax], 0
je 0x40c249
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esp + eax + 0x14]
mov edi, 0x418700
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
test ebx, ebx
je 0x40c23a
test byte [esp + 0x118], 0x10
jne 0x40c220
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x118]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c1e7
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e1ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041165f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40e20b
test byte [esp + 8], 2
je 0x40e20b
mov dword [0x41b3fc], 0xd
mov dword [0x41b400], 5
jmp 0x40e1e6
xor eax, eax
ret
Function at 0x40b6e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x40b702
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40b709
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40b6f8
mov eax, 1
add ebx, ebx
jne 0x40b71b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40b710
jne 0x40b72c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b710
xor ecx, ecx
sub eax, 3
jb 0x40b740
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40b7b2
mov ebp, eax
add ebx, ebx
jne 0x40b74b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40b758
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40b77c
inc ecx
add ebx, ebx
jne 0x40b768
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40b75d
jne 0x40b779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40b75d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40b79c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40b78d
jmp 0x40b6fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40b79c
add edi, ecx
jmp 0x40b6fe
pop esi
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40b7fb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd068]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd0c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40b7b9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd0c8]
or eax, eax
je 0x40b7f5
mov dword [ebx], eax
add ebx, 4
jmp 0x40b7d6
call dword [esi + 0xd0c4]
mov ebp, dword [esi + 0xd0cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40b82f
sub esp, 0xffffff80
jmp 0x402d70