joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e50
Capabilities:
Delete file

Disassembly:
push esi
push edi
xor edi, edi
call fcn.00409040
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x408f6a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408f6a
cmp byte [eax], 0
je 0x408f6a
mov esi, dword [esp + 0x18]
test esi, esi
je 0x408f6a
cmp byte [esi], 0
je 0x408f6a
lea edx, [esp + 0xc]
mov dword [esp + 0x10], edi
push edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x20], edi
call fcn.00408c60
add esp, 0x14
test eax, eax
je 0x408f79
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x180
push 0x8102
push esi
call fcn.0041fa55
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x408f43
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call fcn.0042572e
mov ecx, dword [esp + 0x18]
add esp, 0xc
cmp ecx, eax
jne 0x408f13
push esi
mov edi, 1
call fcn.0041f737
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call fcn.0041e9c0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
call fcn.0041fecb
mov edx, dword [eax]
push edx
push str.GExeBind_ExtractData:_no_write
call fcn.00409020
add esp, 8
push esi
call fcn.0041f737
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call fcn.0041e9c0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
call fcn.0041fecb
mov eax, dword [eax]
push eax
push str.GExeBind_ExtractData:_no_open_file
call fcn.00409020
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call fcn.0041e9c0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
push 0xffffffffffffffff
push str.GExeBind_ExtractGetData:_parameter_empty
call fcn.00409020
add esp, 8
mov eax, edi
pop edi
pop esi
ret

Function at 0x409070
Capabilities:
Check os version

Disassembly:
push edi
mov ecx, 0x25
xor eax, eax
mov edi, 0x4384e0
rep stosd dword es:[edi], eax
push 0x4384e0
mov dword [0x438574], 0
mov dword [0x4384e0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [0x4384ec]
mov eax, dword [0x4384f0]
and edx, 0xffff
sub eax, 0
mov dword [0x4384ec], edx
pop edi
je 0x409170
dec eax
je 0x409131
dec eax
je 0x4090da
mov dword [0x438574], 0
mov dword [0x438578], 1
ret
mov eax, dword [0x4384e4]
cmp eax, 4
jae 0x4090f9
mov dword [0x438574], 4
mov dword [0x438578], 1
ret
cmp eax, 5
jae 0x40911c
cmp dword [0x4384e8], 0xa
jae 0x40911c
mov dword [0x438574], 5
mov dword [0x438578], 1
ret
mov dword [0x438574], 6
mov dword [0x438578], 1
ret
mov eax, dword [0x4384e4]
cmp eax, 4
ja 0x40915b
jne 0x409146
mov eax, dword [0x4384e8]
test eax, eax
ja 0x40915b
mov dword [0x438574], 2
mov dword [0x438578], 1
ret
mov dword [0x438574], 3
mov dword [0x438578], 1
ret
mov eax, 1
mov dword [0x438574], eax
mov dword [0x438578], eax
ret
Function at 0x409360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x429a7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
xor edi, edi
push 0xff000000
push edi
push edi
push edi
push eax
mov eax, dword [esp + 0x34]
push 0x67
mov esi, ecx
push eax
push eax
mov dword [esp + 0x2c], esi
call fcn.00414c00
lea ecx, [esi + 0x64]
mov dword [esp + 0x18], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
call fcn.0040e6f0
mov byte [esp + 0x18], 1
mov dword [esi + 0x58c], edi
lea ecx, [esi + 0x590]
call fcn.0040c460
push 1
push str.SETUP
lea ecx, [esi + 0x5d0]
mov byte [esp + 0x20], 2
call fcn.0040eee0
mov ecx, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esi + 0x1a30]
push ecx
push edx
mov byte [esp + 0x20], 3
mov dword [esi], 0x42b4f4
call edi
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x1b34]
push eax
push ecx
call edi
lea ebx, [esi + 0x1d3c]
mov ecx, 0x41
xor eax, eax
mov edi, ebx
push ebx
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
push ebx
call fcn.00411200
mov edx, dword [esp + 0x38]
add esp, 8
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x1c38]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x409a20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x104
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [edi + 0x1d3c]
lea esi, [edi + 0x64]
push eax
mov ecx, esi
call fcn.0040e750
test eax, eax
jne 0x409a77
mov esi, dword [esi + 0x51c]
test esi, esi
jne 0x409a60
mov esi, 0x437958
push esi
push 0x17
push edi
call fcn.0040a2e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov ecx, esi
call fcn.0040e870
test eax, eax
jne 0x409abe
push 0x7a14
call fcn.004080c0
mov esi, dword [esi + 0x51c]
add esp, 4
test esi, esi
mov ebx, eax
jne 0x409aa0
mov esi, 0x437958
push esi
push ebx
push 0x17
push edi
call fcn.0040a2e0
push ebx
call fcn.0041e9c0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, dword [edi + 0x584]
cmp eax, 1
mov dword [edi + 0x54], eax
jge 0x409ae1
push 0x7a15
call fcn.004080c0
lea ecx, [edi + 0x6c]
mov esi, eax
push ecx
jmp 0x409c79
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], ebx
jle 0x409bbf
jmp 0x409af5
mov ebx, dword [esp + 0x10]
push ebx
lea ecx, [edi + 0x64]
call fcn.0040de60
mov esi, eax
test esi, esi
je 0x409be0
lea eax, [esi + 8]
mov ecx, edi
push eax
call fcn.00409720
mov eax, dword [esi + 0x88]
test al, 8
je 0x409b21
and al, 0xfd
or al, 1
test al, 1
je 0x409b49
call fcn.00410db0
mov ebx, eax
test ebx, ebx
je 0x409c0e
push ebx
mov ecx, esi
call fcn.0040e090
push ebx
mov ebp, eax
call fcn.0041e9c0
add esp, 4
jmp 0x409b5f
test al, 2
je 0x409c66
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.0040e090
mov ebp, eax
test ebp, ebp
je 0x409c27
mov ecx, esi
call fcn.0040df90
push eax
lea eax, [esi + 8]
push eax
push str._tExtracting__s_to__s...
call fcn.00410250
add esp, 0xc
mov ecx, esi
call fcn.0040df90
push eax
call fcn.00410fd0
add esp, 4
mov ecx, esi
call fcn.0040e110
test eax, eax
je 0x409c40
mov eax, dword [edi + 0x54]
mov esi, dword [esp + 0x10]
push eax
push esi
mov ecx, edi
call fcn.0040a5c0
mov eax, dword [edi + 0x54]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x409af1
push str.Bundle_Extraction_completed_successfully.
call fcn.00410250
add esp, 4
mov ecx, edi
push 3
call fcn.00409590
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0x7a16
call fcn.004080c0
lea ecx, [edi + 0x6c]
mov esi, eax
push ecx
push ebx
push esi
push 0x17
push edi
call fcn.0040a2e0
push esi
call fcn.0041e9c0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0x7a17
push 0x17
mov ecx, edi
call fcn.0040a3a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0x7a19
push 0x17
mov ecx, edi
call fcn.0040a3a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, dword [edi + 0x580]
test eax, eax
jne 0x409c4f
mov eax, 0x437958
push eax
push 0x17
push edi
call fcn.0040a2e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0x7a18
call fcn.004080c0
mov esi, eax
lea eax, [edi + 0x1d3c]
push eax
push esi
push 0x17
push edi
call fcn.0040a2e0
push esi
call fcn.0041e9c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x409d90
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x8064
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 4]
push 0x3e9
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
mov ecx, esi
call fcn.00409760
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409e42
mov eax, dword [0x438580]
test eax, eax
jne 0x409e39
mov dword [0x438580], 1
mov eax, dword [esi + 0x54]
xor edi, edi
test eax, eax
jle 0x409e2c
lea ebx, [esi + 0x64]
push edi
mov ecx, ebx
call fcn.0040de60
test eax, eax
je 0x409e47
mov ecx, eax
call fcn.0040e490
test eax, eax
je 0x409e6f
mov eax, dword [esi + 0x54]
inc edi
cmp edi, eax
jl 0x409e0d
push str.Files_locked_successfully.
call fcn.00410250
add esp, 4
push 5
mov ecx, esi
call fcn.00409590
pop edi
pop esi
pop ebx
pop ecx
ret
push 0x7a1a
call fcn.004080c0
lea edx, [esi + 0x6c]
mov ebx, eax
push edx
push edi
push ebx
push 0x17
push esi
call fcn.0040a2e0
push ebx
call fcn.0041e9c0
add esp, 0x1c
pop edi
pop esi
pop ebx
pop ecx
ret
mov ebx, dword [ebx + 0x51c]
test ebx, ebx
jne 0x409e7e
mov ebx, 0x437958
push ebx
push 0x18
push esi
call fcn.0040a2e0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x409e90
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x54]
push edi
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
jle 0x409fd2
jmp 0x409eb3
mov edi, dword [esp + 0x10]
push edi
lea ecx, [ebx + 0x64]
call fcn.0040de60
mov esi, eax
test esi, esi
je 0x409ff3
lea ebp, [esi + 8]
mov ecx, ebx
push ebp
call fcn.00409720
lea edi, [esi + 0xa0]
mov ecx, esi
push edi
call fcn.0040dfe0
push eax
push str._tRenaming___s__to___s_
call fcn.00410250
add esp, 0xc
mov ecx, esi
call fcn.0040e5e0
test eax, eax
je 0x40a021
mov eax, dword [esi + 0x88]
test al, 4
je 0x409f5e
test edi, edi
je 0x409fb2
lea eax, [esp + 0x118]
push edi
push eax
call fcn.0040a050
push 0
call fcn.00405460
add esp, 0xc
test eax, eax
je 0x409f3d
lea ecx, [esp + 0x118]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x409f4d
lea edx, [esp + 0x118]
push edx
call fcn.004110a0
add esp, 4
push 0
call fcn.004053e0
add esp, 4
test eax, eax
jne 0x409fb2
push edi
jmp 0x409faa
test al, 8
je 0x409fb2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.00411200
add esp, 8
lea edx, [esp + 0x14]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push eax
call fcn.004110a0
add esp, 4
mov ecx, dword [ebx + 0x54]
mov esi, dword [esp + 0x10]
push ecx
push esi
mov ecx, ebx
call fcn.0040a5c0
mov eax, dword [ebx + 0x54]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x409eaf
push str.Files_renamed_successfully.
call fcn.00410250
add esp, 4
mov ecx, ebx
push 6
call fcn.00409590
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push 0x7a1a
call fcn.004080c0
lea edx, [ebx + 0x6c]
mov esi, eax
push edx
push edi
push esi
push 0x17
push ebx
call fcn.0040a2e0
push esi
call fcn.0041e9c0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov eax, dword [ebx + 0x580]
test eax, eax
jne 0x40a030
mov eax, 0x437958
push eax
push 0x19
push ebx
call fcn.0040a2e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x40adf0
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 0x40ada0
call fcn.00410a30
mov dword [esp + 0x3c], eax
mov eax, dword [str.GatorSetupMainWndClass]
push 0x7f0000
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x65
mov dword [esp + 0x4c], eax
call fcn.00410a30
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [esp + 0x44], eax
call edi
cdq
sub eax, edx
push 1
mov esi, eax
sar esi, 1
call edi
cdq
sub eax, edx
lea ecx, [esp + 0x2c]
mov edi, eax
push ecx
sar edi, 1
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40aeaa
mov ebp, dword [str.GatorSetupMainWndClass]
push ebx
call fcn.00410a30
push eax
push 0
push 0
push 1
push 1
push edi
push esi
push 0x90000000
call fcn.00408060
push eax
push ebp
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push 0xfa
push 0xa
push eax
mov dword [ebx], eax
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [ebx]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40af12
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40aefd
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebp
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
jne 0x40aedc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40aec9
mov ecx, ebx
call fcn.0040af30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x40b730
Capabilities:
Delete file
Get common file path
Get file attributes
Persist via run registry key
Set file attributes

Disassembly:
sub esp, 0x420
push ebx
push esi
push str.DesktopShortcut
call fcn.00402b60
mov esi, eax
add esp, 4
cmp esi, 1
mov dword [esp + 0x14], esi
jl 0x40b946
xor ebx, ebx
lea eax, [esp + 8]
push ebx
push eax
push str.Desktop
push str.softwaremicrosoftwindowscurrentversionexplorer_shell_folders
push closesocket
mov dword [esp + 0x1c], ebx
call fcn.004102c0
add esp, 0x14
test eax, eax
je 0x40b946
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x40b946
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
jle 0x40b938
mov ecx, dword [esp + 0xc]
cmp byte [eax + ecx - 1], 0x5c
jne 0x40b7aa
mov byte [eax + ecx - 1], bl
lea ecx, [esp + 0x328]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40b938
xor ebp, ebp
cmp esi, ebx
jle 0x40b938
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x20]
lea eax, [esp + 0x32c]
push edx
push ebx
push 0x433208
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40b92a
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x20]
push 0x2e
push edx
call fcn.0041fdf0
add esp, 8
cmp eax, ebx
je 0x40b92a
push str..ico
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x20]
push ebp
push eax
push str.DesktopShortcut
call fcn.00402d20
add esp, 0xc
test eax, eax
je 0x40b92a
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or al, 2
lea edx, [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0x4331fc
push ecx
mov dword [esp + 0x24], ebx
call fcn.00402c80
add esp, 0xc
test eax, eax
je 0x40b92a
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push str.name
push eax
mov dword [esp + 0x20], ebx
call fcn.00402c80
add esp, 0xc
test eax, eax
je 0x40b919
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x230]
push str._s_s.url
push eax
call edi
mov edx, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x228]
push ecx
push edx
push 0x4331e4
push str.InternetShortcut
call esi
lea eax, [esp + 0x228]
push eax
push 0x4331cc
push str.IconIndex
push str.InternetShortcut
call esi
lea ecx, [esp + 0x228]
lea edx, [esp + 0x20]
push ecx
push edx
push str.IconFile
push str.InternetShortcut
call esi
mov eax, dword [esp + 0x14]
push eax
call fcn.0041e9c0
add esp, 4
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041e9c0
add esp, 4
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x40b7dc
pop edi
mov edx, dword [esp + 0xc]
push edx
call fcn.0041e9c0
add esp, 4
pop ebp
pop esi
pop ebx
add esp, 0x420
ret
Function at 0x40be10
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429b7b
push eax
mov dword fs:[0], esp
sub esp, 0xcb4
push ebx
xor ebx, ebx
call fcn.0041b160
test eax, eax
jne 0x40be4d
pop ebx
mov ecx, dword [esp + 0xcb4]
mov dword fs:[0], ecx
add esp, 0xcc0
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebp
mov ecx, dword [esp + 0xcd8]
mov edx, dword [esp + 0xcd4]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0041b5a0
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
call fcn.0040bf70
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xcdc]
and ecx, 3
push eax
push eax
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
push 1
lea ecx, [esp + 0x4a8]
call fcn.00419ec0
mov eax, dword [esp + 0xce0]
mov dword [esp + 0xccc], ebx
cmp eax, ebx
jne 0x40bee1
mov eax, 0x437958
push eax
lea ecx, [esp + 0x98]
push str.User_Agent:_Gator_1.0_Log_r_n_s
push ecx
call fcn.0041f694
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push edx
push eax
push str._Cmd_client_log_event
push ecx
lea ecx, [esp + 0x4a4]
call fcn.0041a400
cmp eax, 0xc8
jne 0x40bf26
mov ebx, 1
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.0041e9c0
add esp, 4
lea ecx, [esp + 0x494]
mov dword [esp + 0xccc], 0xffffffff
call fcn.00419fe0
mov ecx, dword [esp + 0xcc4]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc0
ret

Function at 0x40c9a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov edx, 1
xor ecx, ecx
mov eax, edx
mov byte [ecx + 0x438898], dl
and eax, 0xff
mov esi, 0x101
mov byte [eax + 0x438798], cl
lea eax, [edx + edx*4]
xor edx, edx
lea eax, [eax + eax*8]
div esi
inc ecx
cmp ecx, 0x100
jb 0x40c9a8
pop esi
ret
Function at 0x40c9e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, 0xd
sub esp, 0x18
cmp ecx, eax
jbe 0x40c9f4
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
push edi
lea edi, [esp + 0x10]
mov byte [ecx], al
lea ebx, [esp + 0x1c]
inc ecx
sub edi, esi
sub ebp, esi
mov byte [esp + 0x18], 0
mov byte [esp + 0x24], 0
sub ebx, esi
mov dword [esp + 0x3c], 8
mov dl, byte [esi]
mov al, dl
shr al, 3
shl dl, 5
or al, dl
mov byte [edi + esi], al
mov dl, byte [esp + 0x18]
xor dl, al
mov al, byte [esi + ebp]
mov byte [esp + 0x18], dl
mov byte [ebx + esi], al
mov dl, byte [esp + 0x24]
mov byte [ecx], al
xor dl, al
mov eax, dword [esp + 0x3c]
inc ecx
inc esi
dec eax
mov byte [esp + 0x24], dl
mov dword [esp + 0x3c], eax
jne 0x40ca2b
mov eax, dword [esp + 0x34]
mov ebp, 1
cmp eax, ebp
jb 0x40cb3a
mov edi, 0x4388b4
xor esi, esi
mov al, byte [esp + esi + 0x10]
mov dl, al
shl dl, 6
shr al, 2
or dl, al
mov al, byte [esp + esi + 0x1c]
mov byte [esp + esi + 0x10], dl
mov dl, al
shl dl, 6
shr al, 2
or dl, al
mov byte [esp + esi + 0x1c], dl
inc esi
cmp esi, 9
jb 0x40ca7b
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cace
lea eax, [esi + ebp*2 - 1]
xor edx, edx
mov ebx, 9
div ebx
xor eax, eax
mov al, byte [edi + esi - 9]
mov bl, byte [eax + 0x438898]
mov dl, byte [esp + edx + 0x10]
jmp 0x40cade
mov bl, byte [esp + esi + 0x10]
xor eax, eax
mov al, byte [edi + esi - 9]
mov dl, byte [eax + 0x438898]
add dl, bl
mov byte [ecx], dl
inc ecx
inc esi
cmp esi, 8
jb 0x40caa7
xor esi, esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cb10
lea eax, [esi + ebp*2]
xor edx, edx
mov ebx, 9
div ebx
xor eax, eax
mov al, byte [edi + esi]
mov bl, byte [eax + 0x438898]
mov dl, byte [esp + edx + 0x1c]
jmp 0x40cb1f
mov bl, byte [esp + esi + 0x1c]
xor eax, eax
mov al, byte [edi + esi]
mov dl, byte [eax + 0x438898]
add dl, bl
mov byte [ecx], dl
inc ecx
inc esi
cmp esi, 8
jb 0x40caeb
mov eax, dword [esp + 0x34]
inc ebp
add edi, 0x12
cmp ebp, eax
jbe 0x40ca79
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40d520
Capabilities:
Get disk size

Disassembly:
sub esp, 0x11c
mov eax, dword [esp + 0x124]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
cdq
push ebp
push 0x100000
push edx
push eax
call fcn.0041ff10
mov esi, eax
push str.Checking_free_disk_space...
mov dword [esp + 0x28], esi
mov ebx, edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
call fcn.00410250
add esp, 4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push eax
push ecx
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40d66a
mov ecx, 0xa
mov eax, esi
mov edx, ebx
call fcn.0041fee0
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebp
push edx
push ebp
push eax
call fcn.0041ff10
mov ecx, dword [esp + 0x18]
push ebp
push ecx
push edx
push eax
call fcn.0041ff10
mov ecx, 0xa
mov edi, eax
mov esi, edx
call fcn.0041fee0
mov edx, dword [esp + 0x20]
push eax
push edx
push str._t_lu_Kbytes_required___lu_Kbytes_free...
call fcn.00410220
add esp, 0xc
cmp esi, ebx
jg 0x40d687
jl 0x40d5f5
cmp edi, dword [esp + 0x24]
ja 0x40d687
push 0x7a0a
call fcn.004080c0
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40d6b9
mov eax, dword [esp + 0x134]
lea ecx, [esp + 0x2c]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push ebp
lea edx, [esp + 0x3c]
push 0x2045
push edx
call fcn.00409290
push esi
mov edi, eax
call fcn.0041e9c0
add esp, 0x1c
cmp edi, 4
jne 0x40d6a4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x40d5a2
push str._tGetDiskFreeSpace___failed.
call fcn.00410250
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
push 0x4309ac
call fcn.00410250
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret
push str.not_enough_space__canceled.
call fcn.00410250
push ebp
push 9
call fcn.0040c060
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40df10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x429b98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x42b548
mov cl, byte [esi + 0x1a8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi + 0x1a8]
mov dword [esp + 0x14], 0
test cl, cl
je 0x40df55
push eax
call edi
mov cl, byte [esi + 0x2ac]
lea eax, [esi + 0x2ac]
test cl, cl
je 0x40df68
push eax
call edi
push 0
mov ecx, esi
call fcn.0040e550
mov ecx, esi
call fcn.0040db00
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret