joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4105c0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x410631
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410631
cmp byte [eax], 0
je 0x410631
mov edi, dword [esp + 0x1c]
cmp edi, 0x3fac
ja 0x410631
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410631
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push edi
push eax
push 3
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x410626
mov esi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x410640
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x410691
mov eax, dword [esp + 0xc]
test eax, eax
je 0x410691
cmp byte [eax], 0
je 0x410691
lea edx, [esp + 8]
push edx
push 0x20006
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410691
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x411040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x411063
cmp byte [ecx], 0
je 0x411063
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41105d
xor eax, eax
shr eax, 4
and eax, 1
ret

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

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x411097
cmp byte [ecx], 0
je 0x411097
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411095
test al, 0x10
jne 0x411095
mov eax, 1
ret
xor eax, eax
ret

Function at 0x4110a0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4110d4
cmp byte [esi], 0
je 0x4110d4
push esi
call fcn.00411070
add esp, 4
test eax, eax
jne 0x4110c2
mov eax, 1
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4110d4
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4110e0
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x4111eb
cmp byte [ebx], 0
je 0x4111eb
push ebx
call fcn.00411040
add esp, 4
test eax, eax
je 0x411112
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 0xa
push esi
mov dword [esp + 0x18], esi
call fcn.0041eb40
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4111eb
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.0041eb40
mov esi, eax
add esp, 4
test esi, esi
je 0x4111e2
mov byte [esi], 0
mov al, byte [ebp]
cmp al, 0x5c
mov edi, 1
mov ebx, ebp
jne 0x411186
cmp byte [ebp + 1], 0x5c
jne 0x411186
lea eax, [ebp + 2]
push 0x5c
push eax
call fcn.0041e9e0
mov ebx, eax
add esp, 8
inc ebx
mov ecx, ebx
sub ecx, ebp
inc ecx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x42f444
push ebx
call fcn.0041ea9c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
test eax, eax
je 0x4111d9
push eax
push esi
call ebx
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.00411200
push esi
call fcn.00411040
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4111c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
push 0x42f444
push 0
call fcn.0041ea9c
add esp, 8
test edi, edi
jne 0x41119a
push esi
call fcn.0041e9c0
add esp, 4
push ebp
call fcn.0041e9c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x411670
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x438ac8]
test eax, eax
je 0x4116df
mov eax, dword [0x438acc]
push esi
xor esi, esi
test eax, eax
jle 0x4116c5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x438ac8]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x4116ad
push eax
call edi
mov ecx, dword [0x438ac8]
mov edx, dword [ecx + esi*4]
push edx
call fcn.0041e9c0
add esp, 4
mov eax, dword [0x438ac8]
inc esi
mov dword [eax + esi*4 - 4], 0
mov eax, dword [0x438acc]
cmp esi, eax
jl 0x41168c
pop edi
mov ecx, dword [0x438ac8]
push ecx
call fcn.00420828
add esp, 4
mov dword [0x438ac8], 0
pop esi
ret

Function at 0x412130
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x360]
xor esi, esi
test edi, edi
jne 0x412154
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret
push edi
call fcn.00411040
add esp, 4
test eax, eax
jne 0x412171
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34c
ret
mov eax, dword [esp + 0x364]
push 0
push eax
push edi
call fcn.004122f0
add esp, 0xc
test eax, eax
je 0x412198
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34c
ret
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x118]
push edi
push ecx
call ebp
lea edx, [esp + 0x118]
push 0x104
push edx
call fcn.00411200
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
lea eax, [esp + 0x118]
push 0x434264
push eax
call ebx
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4122b5
lea eax, [esp + 0x14]
push edi
push eax
call ebp
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.00411200
add esp, 8
lea edx, [esp + 0x248]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
mov al, byte [esp + 0x21c]
mov esi, 1
test al, 0x10
je 0x41226b
cmp byte [esp + 0x248], 0x2e
je 0x41227a
mov ecx, dword [esp + 0x364]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004122f0
add esp, 0xc
test eax, eax
jne 0x41227a
mov eax, dword [esp + 0x364]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00412130
add esp, 8
jmp 0x412278
lea edx, [esp + 0x14]
push edx
call fcn.004110a0
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x21c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x412299
test esi, esi
jne 0x4121f6
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x4122b5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34c
ret
mov eax, dword [esp + 0x364]
push 1
push eax
push edi
call fcn.004122f0
add esp, 0xc
test eax, eax
jne 0x4122d5
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x412370
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
xor esi, esi
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x4124ff
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x412410
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4123c0
mov dword [ebp - 8], 1
jmp 0x4123cd
push str.SHGetPathFromIDList___failed.
call fcn.00410250
add esp, 4
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4124ef
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4124ef
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push eax
push esi
push str.SHGetSpecialFolderLocation__d__failed__lu__0x_lX_
call fcn.00410250
mov eax, esi
add esp, 0x10
sub eax, 2
je 0x41244a
sub eax, 5
je 0x412443
sub eax, 0x1a
je 0x41243c
nop
mov edi, 0x4330a4
jmp 0x4124e0
mov edi, str.cookies
jmp 0x41244f
mov edi, str.startup
jmp 0x41244f
mov edi, str.programs
cmp edi, ebx
je 0x412432
lea edx, [ebp - 0x10]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4124e0
push 0x208
mov dword [ebp - 0x14], 0x208
call fcn.0041eb40
mov edx, dword [ebp - 0x10]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push esi
push ecx
push 0
mov ebx, 1
push edi
push edx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4124c3
cmp dword [ebp - 0xc], ebx
jne 0x4124c3
push esi
call fcn.004110e0
add esp, 4
test eax, eax
je 0x4124c3
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 8], ebx
push esi
call fcn.0041e9c0
mov ecx, dword [ebp - 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4124ef
mov esi, dword [ebp + 0xc]
push edi
push esi
push str.GSR_SHGetSpecialFolderPath__:_Manual_retrieval_of_folder__d___s__failed.
call fcn.00410250
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push eax
push str.CoInitialize___failed__lu__0x_lX_
call fcn.00410250
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412520
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x41264f
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x4125db
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, esi
je 0x412551
push edi
call ebx
mov esi, eax
push ebp
call ebx
lea eax, [eax + esi + 0xa]
push eax
call fcn.0041eb40
mov esi, eax
add esp, 4
test esi, esi
je 0x4125ca
push ebp
push str.__s_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test edi, edi
je 0x412593
mov al, byte [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp al, 0x20
je 0x41258f
push 0x433498
push esi
call ebx
push edi
push esi
call ebx
push esi
push str._tAdding___s__to__run__list...
call fcn.00410220
push esi
push 0x431254
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call fcn.004104d0
mov ebx, dword [esp + 0x38]
push esi
mov edi, eax
mov dword [ebx], str.Failed_to_add__Gator__to_the_Startup_folder
call fcn.0041e9c0
add esp, 0x1c
jmp 0x41263e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], str.Failed_to_alloc_path_buf
xor eax, eax
pop ebx
ret
push str._tRemoving_app_from__run__list...
call fcn.00410220
lea edx, [esp + 0x18]
push esi
push edx
push 0x431254
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x2c], esi
call fcn.004102c0
add esp, 0x18
test eax, eax
je 0x41262f
mov eax, dword [esp + 0x14]
push eax
call fcn.0041e9c0
push 0x431254
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call fcn.00410640
add esp, 0x10
mov edi, eax
jmp 0x412634
mov edi, 1
mov ebx, dword [esp + 0x20]
mov dword [ebx], str.Failed_to_remove__Gator__from_the_Startup_folder
test edi, edi
je 0x412648
mov dword [ebx], str.Success
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
lea ecx, [esp + 0x20]
push esi
push ecx
push 0x431254
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x34], esi
call fcn.004102c0
mov eax, dword [esp + 0x34]
xor edx, edx
cmp eax, esi
push eax
setne dl
mov esi, edx
call fcn.0041e9c0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x412d40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
push esi
xor esi, esi
call fcn.00412de0
test eax, eax
jne 0x412d5a
pop esi
add esp, 0x104
ret
push edi
lea ecx, [esp + 0xc]
push 0xff
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov eax, 1
mov dword [esp + 8], eax
cmp eax, 5
jg 0x412db2
push eax
call fcn.00412e00
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
call edi
test eax, eax
je 0x412db2
push esi
call fcn.0041e9c0
lea eax, [esp + 0xc]
xor esi, esi
push eax
call fcn.00412dd0
mov eax, dword [esp + 0x10]
add esp, 8
jmp 0x412d7b
push esi
call fcn.0041e9c0
mov eax, dword [esp + 0xc]
add esp, 4
pop edi
pop esi
add esp, 0x104
ret

Function at 0x413100
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x438b14]
sub esp, 0x98
test eax, eax
jne 0x41314f
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x413145
cmp dword [esp + 8], 5
jae 0x41313b
cmp dword [esp + 0x14], 1
jne 0x413145
cmp dword [esp + 0xc], 0xa
jb 0x413145
mov dword [0x438b10], 1
mov dword [0x438b14], 1
mov eax, dword [0x438b10]
test eax, eax
je 0x4131aa
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 4]
push 1
push ecx
push 0
push 0x2000
mov dword [esp + 0x14], 0
call esi
push 1
push 0
push 0
push 0x2001
call esi
mov edx, dword [esp + 0xa0]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 4]
push 1
push eax
push 0
push 0x2001
call esi
pop esi
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
add esp, 0x98
ret

Function at 0x414c80
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414cf7
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
inc esi
lea eax, [esi + 1]
push eax
call fcn.0041eb40
mov edi, eax
add esp, 4
test edi, edi
je 0x414cf7
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x414cee
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push edi
call fcn.00408120
add esp, 8
test eax, eax
je 0x414cee
mov edx, dword [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0x10]
push eax
call fcn.0041e9c0
add esp, 4
push edi
call fcn.0041e9c0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x415090
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov esi, ecx
push eax
xor ebp, ebp
call fcn.0041e9c0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ebx], ebp
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4150fd
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
jl 0x4150f4
inc esi
push esi
call fcn.0041eb40
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x4150eb
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 8

Function at 0x418e80
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
test esi, esi
jle 0x418edb
inc esi
lea eax, [esi + 1]
push eax
call fcn.0041eb40
mov edi, eax
add esp, 4
test edi, edi
je 0x418edb
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
mov ecx, ebp
call fcn.00418c40
mov esi, eax
test esi, esi
je 0x418ed2
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.0041e9c0
add esp, 4
push edi
call fcn.0041e9c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41acd0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x104
xor al, al
push ebx
mov ebx, dword [esp + 0x114]
push ebp
mov ebp, dword [esp + 0x110]
mov dword [ebx], 0
mov dword [ecx], 0
test ebp, ebp
je 0x41ad9a
cmp byte [ebp], 0
je 0x41ad9a
lea edx, [esp + 8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41ad98
push esi
push edi
mov edi, 0x42f444
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x120]
mov ecx, ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call fcn.0041adb0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
xor al, al
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x41adb0
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 8
mov dword [eax], 0
mov dword [ecx], 0
push ebx
push esi
mov esi, dword [esp + 0x14]
xor bl, bl
test esi, esi
push edi
je 0x41ae47
cmp byte [esi], 0
je 0x41ae47
lea edx, [esp + 0x18]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x41ae47
push ebp
push edi
call fcn.0041eb40
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x1c]
push ebp
push edi
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x42f444
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41ae34
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov bl, 1
mov ecx, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push ebp
call fcn.0041e9c0
add esp, 4
mov al, bl
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
mov al, bl
pop esi
pop ebx
add esp, 8
ret
Function at 0x41aec0
Capabilities:
Initialize winsock library

Disassembly:
push 0x439c34
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x41af00
mov eax, dword [0x439c30]
sub esp, 0x1c8
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x41afce
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x41af8c
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.GatorAsyncWndClass
push esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x41af82
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x30
push edx
mov dword [esp + 0x20], 0x405670
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], str.GatorAsyncWndClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x41af8c
mov dword [0x439c30], 1
mov byte [0x439c38], bl
lea eax, [esp + 0xc]
push ebx
push eax
push str.GetHostByNameTimeout
push str.softwareGator.comGatordyn
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], ebx
call fcn.00410440
add esp, 0x14
test eax, eax
je 0x41afc4
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [0x4353f0], eax
jne 0x41afce
mov dword [0x4353f0], 0x14
call fcn.0041b090
test eax, eax
je 0x41b080
cmp dword [0x4353f4], 0xffffffff
jne 0x41b080
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebp
push 0x108
push 0x40
mov dword [0x4353f4], ebx
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov esi, eax
push ecx
push edx
push esi
push ebx
mov dword [esi], 0x108
push ebx
mov dword [esp + 0x28], 0x108
mov dword [esp + 0x24], ebx
call dword [0x439c48]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp eax, 0x25b
jne 0x41b059
push esi
call ebp
mov eax, dword [esp + 0x14]
push eax
push 0x40
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov esi, eax
push ecx
push edx
push esi
push ebx
push ebx
mov dword [esi], 0x108
call dword [0x439c48]
cmp eax, ebx
jne 0x41b06d
cmp dword [esp + 0x10], ebx
je 0x41b06d
mov dword [0x4353f4], 1
push esi
call ebp
mov eax, dword [0x439c30]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
mov eax, dword [0x439c30]
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
Function at 0x41df90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
lea esi, [ecx + 0x60]
push eax
push esi
push 0x104
push 0
push str.wininet.dll
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ecx
ret
Function at 0x41dfd5
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x5c], ebp
jne 0x41e18a
call fcn.0041df90
test eax, eax
je 0x41e18a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
lea edi, [esi + 0x60]
push edx
push eax
push edi
mov ecx, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.0041e1f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esi + 0x164]
push str._d._d._d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x41e18a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetGetConnectedState
push ebx
call edi
push str.InternetErrorDlg
push ebx
mov dword [esi + 0x10], eax
call edi
push str.InternetAttemptConnect
push ebx
mov dword [esi + 0x14], eax
call edi
push str.InternetQueryOptionA
push ebx
mov dword [esi + 0x18], eax
call edi
push str.InternetOpenA
push ebx
mov dword [esi + 0x28], eax
call edi
push str.InternetConnectA
push ebx
mov dword [esi + 0x1c], eax
call edi
push str.InternetCloseHandle
push ebx
mov dword [esi + 0x30], eax
call edi
push str.InternetReadFile
push ebx
mov dword [esi + 0x34], eax
call edi
push str.InternetOpenUrlA
push ebx
mov dword [esi + 0x38], eax
call edi
push str.InternetSetStatusCallback
push ebx
mov dword [esi + 0x44], eax
call edi
push str.InternetSetOptionA
push ebx
mov dword [esi + 0x20], eax
call edi
push str.InternetGetLastResponseInfoA
push ebx
mov dword [esi + 0x24], eax
call edi
push str.HttpOpenRequestA
push ebx
mov dword [esi + 0x2c], eax
call edi
push str.HttpSendRequestA
push ebx
mov dword [esi + 0x3c], eax
call edi
push str.HttpQueryInfoA
push ebx
mov dword [esi + 0x40], eax
call edi
push str.InternetCanonicalizeUrlA
push ebx
mov dword [esi + 0x48], eax
call edi
push str.InternetCombineUrlA
push ebx
mov dword [esi + 0x4c], eax
call edi
push str.InternetCrackUrlA
push ebx
mov dword [esi + 0x50], eax
call edi
push str.HttpAddRequestHeadersA
push ebx
mov dword [esi + 0x54], eax
call edi
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x58], eax
cmp ecx, ebp
je 0x41e18a
cmp dword [esi + 0x28], ebp
je 0x41e18a
cmp dword [esi + 0x1c], ebp
je 0x41e18a
cmp dword [esi + 0x20], ebp
je 0x41e18a
cmp dword [esi + 0x24], ebp
je 0x41e18a
cmp dword [esi + 0x2c], ebp
je 0x41e18a
cmp dword [esi + 0x30], ebp
je 0x41e18a
cmp dword [esi + 0x34], ebp
je 0x41e18a
cmp dword [esi + 0x38], ebp
je 0x41e18a
cmp dword [esi + 0x3c], ebp
je 0x41e18a
cmp dword [esi + 0x40], ebp
je 0x41e18a
cmp eax, ebp
je 0x41e18a
cmp dword [esi + 0x48], ebp
je 0x41e18a
cmp dword [esi + 0x4c], ebp
je 0x41e18a
cmp dword [esi + 0x50], ebp
je 0x41e18a
cmp dword [esi + 0x54], ebp
je 0x41e18a
cmp dword [esi + 0x44], ebp
je 0x41e18a
mov dword [esi + 0x5c], ebx
mov ecx, dword [esi + 0x5c]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
setne al
pop ebx
add esp, 0x10
ret