joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dabf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004e1070
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x4dace9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, esi
call fcn.004dad00
test eax, eax
jne 0x4dace9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, esi
call fcn.004dad00
test eax, eax
jne 0x4dace9
lea edx, [esp + 0x10]
push 0x566408
push edx
call fcn.00504230
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dacba
lea eax, [esp + 0x10]
push 0x566404
push eax
call fcn.00504230
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dacba
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4dacbd
mov byte [esi], 0
push 0x565bcc
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x4dad00
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 0x4dad62
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
Function at 0x4e0fb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5268a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x4e1060
mov eax, dword [0x56c860]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00515242
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00515291
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.005151ee
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4e1047
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4e1047
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00514e5e
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4e4160
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x526d30
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4e4307
mov ecx, dword [0x56c860]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4e425c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004e2e80
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00514f4b
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00514e5e
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x565bcc
call fcn.00514ecc
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004e3240
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00514f4b
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00514e5e
lea ecx, [esp + 0xc]
call fcn.00515326
mov ecx, dword [esp + 0xc]
push 0x56660c
push ecx
call fcn.005030e4
add esp, 8
test eax, eax
je 0x4e4284
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4e41bd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00514e5e
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00514e5e
jmp 0x4e430b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e3f00
test eax, eax
push 0
je 0x4e42ef
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004e25a0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4e42d5
cmp eax, 0x64
jg 0x4e42c3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4e4260
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4e4260
cmp eax, 0x64
jge 0x4e425c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4e4260
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004e25a0
mov esi, eax
jmp 0x4e4260
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4e4315
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4ee4a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5a4b08]
xor edx, edx
cmp eax, edx
jne 0x4ee4c6
xor eax, eax
mov byte [eax + 0x5a4a08], al
inc eax
cmp eax, 0x100
jl 0x4ee4ae
mov dword [0x5a4b08], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5a4a08
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4ee557
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4ee52a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4ee4f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ee5d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4ee623
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4ee60a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f4fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52707e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004f58e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x54891c
call fcn.00514b9f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f5053
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00514b9f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f504c
push 0
mov ecx, eax
call fcn.004ec0e0
mov dword [esi + 0xc], eax
jmp 0x4f5055
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f5055
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x517269
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5172a1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005152b9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00515291
jmp 0x5172ad
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x518a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x518aa2
call fcn.0051ee65
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x518aa2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x518a99
xor eax, eax
jmp 0x518aaa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00518ab0
pop edi
pop esi
pop ebx
ret 4

Function at 0x51f395
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x51f3c3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51f3e1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051f2fb
jmp 0x51f3e1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51f3e1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051f2fb
test edi, edi
mov eax, edi
jne 0x51f3cb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401d86
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e1a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401dd5
cmp eax, 0x40
je 0x401dd5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401d79
cmp eax, 0x40
je 0x401d79
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401d79
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4010d0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0xe08
lea eax, [esp]
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push str.SETUP.INI
push ecx
call fcn.00401000
lea eax, [esp + 0x618]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x407c78
push eax
call esi
mov ecx, dword [str.GubbleCD.exe]
lea eax, [esp + 0x610]
push ecx
push eax
call fcn.00401000
lea ecx, [esp + 0x114]
lea edx, [esp + 0x618]
add esp, 8
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x410]
push 0x407c78
push ecx
call esi
mov ecx, dword [str.orderfrm.doc]
lea edx, [esp + 0x410]
push ecx
push edx
call fcn.00401000
lea ecx, [esp + 0x218]
add esp, 8
push 0x407c78
push ecx
call esi
mov ecx, dword [str.uninstal.exe]
lea edx, [esp + 0x210]
push ecx
push edx
call fcn.00401000
lea ecx, [esp + 0x218]
lea edx, [esp + 0x418]
add esp, 8
push 0x407c78
push ecx
lea eax, [esp + 0x114]
push str.Uninstall_Gubble_CD
push 0x407c78
push edx
push str.Order_Form
push 0x407c78
push eax
push 0x406410
lea ecx, [esp + 0x634]
push 0x406400
push str._progman.groups__r_ngroupX_s_r_n_groupX__r_n__s____s_______s__r_n__s____s_______s__r_n__s____s_______s__r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x30
mov esi, eax
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov edi, eax
je 0x401218
lea eax, [esp + 0x610]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
push 0
push str.grpconv__o
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
add esp, 0xe08
ret
Function at 0x401230
Capabilities:
Set registry value

Disassembly:
sub esp, 0x208
lea eax, [esp + 4]
push ebx
lea ecx, [esp + 4]
push esi
push edi
push eax
push ecx
push 0
push 0xf003f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
push 0
push str.SoftwareActual_EntertainmentGubble_CD
push 0x80000001
call edi
lea ecx, [esp + 0x14]
push 0x407c78
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call ebx
lea ecx, [esp + 0x14]
push 0x200
mov eax, dword [esp + 0x10]
push ecx
push 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.location
push eax
call esi
lea ecx, [esp + 0x14]
push 0x406540
push ecx
call ebx
lea eax, [esp + 0x14]
push 0x200
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.version
push ecx
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGubble_CD
push 0x80000002
call edi
push str.Gubble_CD
lea ecx, [esp + 0x18]
push ecx
call ebx
lea ecx, [esp + 0x14]
push 0x200
mov edx, dword [esp + 0x10]
push ecx
push 1
push 0
push str.DisplayName
push edx
call esi
lea ecx, [esp + 0x14]
push 0x407c78
push str._suninstal.exe
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0xc]
push 0x200
push ecx
push 1
push 0
push str.UninstallString
push eax
call esi
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x401c10
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push 0x407c78
call ebx
test eax, eax
jne 0x401c6e
call esi
cmp eax, 0xb7
je 0x401c5f
push 0x407c78
push 0x407a68
call edi
call fcn.00401c80
test eax, eax
je 0x401c68
push 0
push 0x407a68
call ebx
test eax, eax
je 0x401c47
jmp 0x401c25
mov eax, 1
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x401cc0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push ebp
push 0x407858
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
push 0x406484
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push esi
push eax
call edi
lea eax, [esp + 0x10]
push str..
push eax
call edi
lea eax, [esp + 0x10]
push 0x407e90
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebp, eax
je 0x401d62
mov ebx, dword [esp + 0x120]
mov edi, dword [esp + 0x118]
push ebx
push esi
push edi
call fcn.00401d70
add esp, 0xc
push 0x407e90
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401d62
push ebx
push esi
push edi
call fcn.00401d70
add esp, 0xc
push 0x407e90
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401d47
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x401d70
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x208
test byte [0x407e90], 0x10
push esi
push edi
jne 0x401e9f
lea eax, [esp + 8]
push 0x407858
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
lea ecx, [esp + 8]
push 0x406484
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push ecx
push eax
call edi
lea ecx, [esp + 8]
push 0x406484
push ecx
call edi
lea ecx, [esp + 8]
push 0x407ebc
push ecx
call fcn.00401000
mov ecx, dword [esp + 0x224]
lea edx, [esp + 0x114]
add esp, 8
push ecx
push edx
call esi
lea ecx, [esp + 0x10c]
push 0x406484
push ecx
call edi
lea ecx, [esp + 0x10c]
push 0x407ebc
push ecx
call fcn.00401000
movsx ecx, word [0x407fd2]
add esp, 8
lea edx, [ecx*4 + 4]
mov ecx, 0x151
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
cdq
idiv ecx
mov word [0x407fd0], ax
cmp ax, 0x64
jle 0x401e38
mov ax, 0x64
mov word [0x407fd0], ax
mov ecx, dword [esp + 0x214]
movsx eax, ax
push eax
push str.Copying_files...__d___completed
push ecx
call fcn.00401090
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
add esp, 0xc
push ecx
push edx
call fcn.00403e80
add esp, 8
test eax, eax
je 0x401e85
lea eax, [esp + 0x10c]
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x10c]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc word [0x407fd2]
pop edi
pop esi
add esp, 0x208
ret

Function at 0x401eb0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x11c
mov al, byte [0x407c78]
mov cl, byte [0x407c79]
mov dl, byte [0x407c7a]
mov byte [esp], al
mov byte [esp + 1], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
mov byte [esp + 2], dl
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x13], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
cmp eax, 0x1c9c380
jae 0x401f44
mov ecx, 0x1c9c380
sub ecx, eax
lea eax, [esp + 0x1c]
push ecx
push str.You_need_about__ld_more_bytes_of_disk_space_to_install_Gubble.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x28]
add esp, 0xc
push 0
push 0x406398
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x11c
ret
mov eax, 1
add esp, 0x11c
ret
Function at 0x401fc0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402f40
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4067bc], eax
xor eax, eax
mov al, byte [0x4067bd]
mov dword [0x4067c8], eax
mov eax, dword [0x4067bc]
shr dword [0x4067bc], 0x10
and eax, 0xff
mov dword [0x4067c4], eax
shl eax, 8
add eax, dword [0x4067c8]
mov dword [0x4067c0], eax
call fcn.00402f20
mov dword [ebp - 4], 0
call fcn.00402d40
call fcn.00402d30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4090fc], eax
call fcn.004028d0
mov dword [0x40679c], eax
test eax, eax
je 0x402059
cmp dword [0x4090fc], 0
jne 0x402063
push 0xffffffffffffffff
call fcn.004021b0
add esp, 4
call fcn.00402650
call fcn.00402570
call fcn.00402180
mov esi, dword [0x4090fc]
mov al, byte [esi]
cmp al, 0x22
je 0x40208a
cmp al, 0x20
jbe 0x4020b7
inc esi
cmp byte [esi], 0x20
ja 0x402082
jmp 0x4020b7
inc esi
cmp byte [esi], 0x22
je 0x4020b6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4020b1
xor eax, eax
mov al, bl
push eax
call fcn.00402510
add esp, 4
test eax, eax
je 0x4020ab
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x402093
cmp byte [esi], 0x22
jne 0x4020b7
inc esi
cmp byte [esi], 0
je 0x4020c7
cmp byte [esi], 0x20
ja 0x4020c7
inc esi
cmp byte [esi], 0
jne 0x4020bc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4020eb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004021b0
jmp 0x40212c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4021f0
Capabilities:
Terminate process

Disassembly:
mov dword [0x4067f4], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x4067f0], bl
jne 0x40224c
cmp dword [0x4090f8], 0
je 0x40223a
mov esi, dword [0x4090f0]
sub esi, 4
cmp esi, dword [0x4090f8]
jb 0x40223a
mov eax, dword [esi]
test eax, eax
je 0x40222f
call eax
sub esi, 4
cmp esi, dword [0x4090f8]
jae 0x402227
push 0x40601c
push 0x406014
call fcn.00402270
add esp, 8
push 0x406024
push 0x406020
call fcn.00402270
add esp, 8
test ebx, ebx
jne 0x40226d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x4028d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x406898], 0
push ebx
push esi
push edi
push ebp
jne 0x402920
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x4028fe
mov dword [0x406898], 1
mov ebx, dword [esp + 0x10]
jmp 0x40292e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x402916
mov dword [0x406898], 2
jmp 0x40292e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x406898], 1
jne 0x4029dd
test edi, edi
jne 0x402951
call esi
mov edi, eax
test edi, edi
jne 0x402951
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x40296b
add esi, 2
cmp word [esi], 0
jne 0x402959
add esi, 2
cmp word [esi], 0
jne 0x402959
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4029cc
push ebp
call fcn.00403270
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4029cc
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4029bb
push ebx
call fcn.00403250
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406898], 2
jne 0x402a61
test ebx, ebx
jne 0x402a00
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x402a00
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x402a15
inc ebp
cmp byte [ebp], 0
jne 0x402a07
inc ebp
cmp byte [ebp], 0
jne 0x402a07
sub ebp, ebx
inc ebp
push ebp
call fcn.00403270
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x402a3a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret