joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
xor esi, esi
mov eax, 1
push edi
mov dword [esp + 0x14], str.IEGator
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], str.MiniSetup
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], str.Setup
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.Uninstall
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], str.Trickler
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], str.PdpSetup
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x42a2e8
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0x42b4cc
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], str.Gator
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], str.OfferCompanion
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], str.PrecisionTime
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], str.DateManager
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x42b494
mov dword [esp + 0x78], eax
lea edi, [esp + 0x14]
mov ebx, 0xd
mov eax, dword [edi]
push eax
call ebp
add edi, 8
dec ebx
lea esi, [esi + eax + 2]
jne 0x40daa9
add esi, 0xa
push esi
call fcn.0041b345
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40db25
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebx
and ecx, 3
mov dword [esp + 0x10], 0xd
rep stosb byte es:[edi], al
lea edi, [esp + 0x14]
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x40dafe
mov eax, dword [edi + 4]
test eax, eax
je 0x40db17
mov eax, dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call ebp
mov cl, byte [esp + 0x80]
add esi, eax
mov byte [esi], cl
inc esi
mov eax, dword [esp + 0x10]
add edi, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x40daec
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x6c
ret

Function at 0x40dbc0
Capabilities:
Check os version

Disassembly:
push edi
mov ecx, 0x25
xor eax, eax
mov edi, 0x432030
rep stosd dword es:[edi], eax
push 0x432030
mov dword [0x4320c4], 0
mov dword [0x432030], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov edx, dword [0x43203c]
mov eax, dword [0x432040]
and edx, 0xffff
sub eax, 0
mov dword [0x43203c], edx
mov ecx, 1
pop edi
je 0x40dcc4
dec eax
je 0x40dc8d
dec eax
je 0x40dc2b
mov dword [0x4320c4], 0
mov dword [0x4320c8], ecx
ret
mov eax, dword [0x432034]
cmp eax, 4
jae 0x40dc46
mov dword [0x4320c4], 4
mov dword [0x4320c8], ecx
ret
jne 0x40dc59
mov dword [0x4320c4], 5
mov dword [0x4320c8], ecx
ret
cmp eax, 5
jne 0x40dcca
mov eax, dword [0x432038]
test eax, eax
jne 0x40dc78
mov dword [0x4320c4], 6
mov dword [0x4320c8], ecx
ret
cmp eax, ecx
jne 0x40dcca
mov dword [0x4320c4], 7
mov dword [0x4320c8], ecx
ret
mov eax, dword [0x432034]
cmp eax, 4
ja 0x40dcb3
jne 0x40dca2
mov eax, dword [0x432038]
test eax, eax
ja 0x40dcb3
mov dword [0x4320c4], 2
mov dword [0x4320c8], ecx
ret
mov dword [0x4320c4], 3
mov dword [0x4320c8], ecx
ret
mov dword [0x4320c4], ecx
mov dword [0x4320c8], ecx
ret
Function at 0x40ddd0
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
test esi, esi
je 0x40de24
cmp byte [esi], 0
je 0x40de24
mov eax, dword [0x4320d0]
test eax, eax
jne 0x40ddff
push 0x4320d0
mov dword [0x4320d0], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [0x4320e0]
dec eax
je 0x40de18
dec eax
jne 0x40de24
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
pop edi
pop esi
ret
push esi
call fcn.0040de30
add esp, 4
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x40e210
Capabilities:
Get disk size

Disassembly:
sub esp, 0x14
mov eax, dword [0x42b638]
mov cl, byte [esp + 0x18]
push ebx
push esi
mov dword [esp + 8], eax
lea edx, [esp + 0x18]
push edi
mov byte [esp + 0xc], cl
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
je 0x40e287
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push ecx
push esi
push edx
call fcn.0041c310
mov ecx, dword [esp + 0x18]
push esi
push ecx
push edx
push eax
call fcn.0041c310
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x40e2c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x9c
push ebx
push esi
mov esi, dword [esp + 0xa8]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0xc], ebx
je 0x40e4dc
cmp byte [esi], 0
je 0x40e4dc
mov eax, dword [esp + 0xac]
cmp eax, ebx
je 0x40e4dc
cmp byte [eax], 0
je 0x40e4dc
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push edi
push ebx
push ebp
push eax
call fcn.0040e510
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
call sub.LZ32.DLL_LZOpenFileA
mov ebx, eax
test ebx, ebx
jl 0x40e4c3
push 2
push 0
push ebx
call sub.LZ32.DLL_LZSeek
push 0
push 0
push ebx
mov dword [esp + 0x28], eax
call sub.LZ32.DLL_LZSeek
mov esi, dword [esp + 0xb4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40e4aa
push 0x4000
call fcn.0041b345
mov edi, eax
add esp, 4
test edi, edi
je 0x40e49a
mov dword [esp + 0x10], 0
push 0x4000
push edi
push ebx
call sub.LZ32.DLL_LZRead
mov esi, eax
test esi, esi
jl 0x40e3da
je 0x40e433
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40e3f3
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x40e413
add dword [esp + 0x10], eax
jmp 0x40e3a0
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress:_LZRead_returned__d
push ebp
push ecx
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
push edx
push str.Decompress_failed_to_write_to__s
push ebp
push eax
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
push ecx
push str.Decompress_failed_to_write_all_bytes_to__s
push ebp
push edx
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
push edi
call fcn.0041b272
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, eax
jne 0x40e48a
mov ecx, dword [esp + 0xb8]
push str.Success
push ebp
mov dword [esp + 0x1c], 1
push ecx
call fcn.0040e510
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebp
test ebx, ebx
jl 0x40e47d
push ebx
call sub.LZ32.DLL_LZClose
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x9c
ret
mov edx, dword [esp + 0xb8]
push str.Decompress_failed_to_copy_all_bytes
push ebp
push edx
jmp 0x40e45e
mov eax, dword [esp + 0xb8]
push str.Decompress_failed_to_alloc_copy_buffer
push ebp
push eax
jmp 0x40e45e
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_create__s
push ebp
push ecx
call fcn.0040e510
add esp, 0x10
jmp 0x40e471
mov edx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_open_compressed_file__s
push ebp
push edx
call fcn.0040e510
add esp, 0x10
jmp 0x40e471
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
push str.Invalid_arg_s_
push eax
push ecx
call fcn.0040e510
add esp, 0xc
push ebx
call sub.LZ32.DLL_LZClose
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x40eff0
Capabilities:
Check os version

Disassembly:
mov ecx, dword [esp + 4]
push ebp
xor eax, eax
push esi
test ecx, ecx
push edi
je 0x40f0a2
mov ebp, dword [esp + 0x14]
test ebp, ebp
jle 0x40f0a2
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40f0a2
cmp byte [edi], 0
je 0x40f0a2
mov eax, dword [0x432168]
test eax, eax
jne 0x40f040
push 0x432168
mov dword [0x432168], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov esi, 0x42fa7c
test eax, eax
je 0x40f064
cmp dword [0x432178], 2
jne 0x40f064
cmp dword [0x43216c], 5
jb 0x40f064
mov esi, str.Global_
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
call ebx
mov edx, eax
push edi
mov dword [esp + 0x1c], edx
call ebx
mov ecx, dword [esp + 0x18]
pop ebx
add ecx, eax
cmp ebp, ecx
jle 0x40f0a0
mov edx, dword [esp + 0x10]
push edi
push esi
push 0x42ae94
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x40f0b0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi], 0
test eax, eax
mov dword [edi], 0
je 0x40f0f6
cmp byte [eax], 0
je 0x40f0f6
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x40f0f6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [edi], ecx
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret
Function at 0x40f5c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42577b
push eax
mov dword fs:[0], esp
sub esp, 0xcb4
push ebx
xor ebx, ebx
call fcn.0040fde0
test eax, eax
jne 0x40f5fd
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.00410290
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.0040f760
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 [0x4322fc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xcdc]
neg eax
sbb eax, eax
push ecx
and eax, 2
push ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x4a8]
call fcn.00410510
mov eax, dword [esp + 0xce0]
mov dword [esp + 0xccc], ebx
cmp eax, ebx
jne 0x40f69d
mov eax, 0x42fa7c
push eax
lea ecx, [esp + 0x98]
push str.User_Agent:_Gator_3.1_Log_r_n_s
push ecx
call fcn.0041c117
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.00410a50
mov esi, eax
mov eax, dword [0x432300]
cmp eax, ebx
je 0x40f705
mov edx, dword [0x432304]
mov ecx, dword [esp + 0x10]
push edx
push esi
lea edx, [esp + 0x9c]
push ecx
push edx
lea ecx, [esp + 0x24]
push str._Cmd_client_log_event
push ecx
call eax
add esp, 0x18
cmp esi, 0xc8
jne 0x40f712
mov ebx, 1
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.0041b272
add esp, 4
lea ecx, [esp + 0x494]
mov dword [esp + 0xccc], 0xffffffff
call fcn.00410630
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 0x40f800
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42579b
push eax
mov dword fs:[0], esp
sub esp, 0xd30
push ebx
push ebp
mov ebp, dword [esp + 0xd48]
xor ebx, ebx
cmp ebp, ebx
je 0x40f9be
cmp byte [ebp], bl
je 0x40f9be
mov eax, dword [esp + 0xd4c]
cmp eax, ebx
je 0x40f9be
cmp byte [eax], bl
je 0x40f9be
call fcn.0040fde0
test eax, eax
je 0x40f9be
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040f9e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 [0x4322fc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xd58]
neg eax
sbb eax, eax
push ecx
and eax, 2
push ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x524]
call fcn.00410510
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x91]
mov byte [esp + 0x90], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
lea ecx, [esp + 0x94]
push str._rs.dll__s
push ecx
mov dword [esp + 0xd54], ebx
stosb byte es:[edi], al
call dword [sym.imp.USER32.DLL_wsprintfA]
mov eax, dword [esp + 0xd68]
add esp, 0xc
cmp eax, ebx
jne 0x40f90c
mov eax, 0x42fa7c
push eax
lea edx, [esp + 0x114]
push str.User_Agent:_Gator_3.1_Log_r_n_s
push edx
call fcn.0041c117
mov edi, dword [esp + 0xd60]
add esp, 0xc
lea eax, [esp + 0x110]
lea ecx, [esp + 0x90]
push edi
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x520]
call fcn.00410a50
mov esi, eax
mov eax, dword [0x432300]
cmp eax, ebx
je 0x40f979
mov ecx, dword [0x432304]
lea edx, [esp + 0x110]
push ecx
push esi
push edi
push edx
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x20]
push ecx
push edx
call eax
add esp, 0x18
pop edi
cmp esi, 0xc8
pop esi
jne 0x40f988
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea ecx, [esp + 0x508]
mov dword [esp + 0xd40], 0xffffffff
call fcn.00410630
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0xd30]
mov dword fs:[0], ecx
add esp, 0xd3c
ret
mov ecx, dword [esp + 0xd38]
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xd3c
ret
Function at 0x40faf0
Capabilities:
Initialize winsock library

Disassembly:
push 0x4324a4
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
jmp 0x40fb60
mov eax, dword [0x4324a0]
sub esp, 0x1c8
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x40fc2e
lea eax, [esp + 0x44]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
jne 0x40fbec
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 0x40fbe2
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x30
push edx
mov dword [esp + 0x20], 0x40fcf0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], str.GatorAsyncWndClass
call dword [sym.imp.USER32.DLL_RegisterClassExA]
test ax, ax
je 0x40fbec
mov dword [0x4324a0], 1
mov byte [0x4324a8], 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.0040afb0
add esp, 0x14
test eax, eax
je 0x40fc24
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov dword [0x42b8d8], eax
jne 0x40fc2e
mov dword [0x42b8d8], 0x14
call fcn.0040fd10
test eax, eax
je 0x40fce0
cmp dword [0x42b8dc], 0xffffffff
jne 0x40fce0
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push ebp
push 0x108
push 0x40
mov dword [0x42b8dc], 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 [0x4324b8]
mov ebp, dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp eax, 0x25b
jne 0x40fcb9
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 [0x4324b8]
cmp eax, ebx
jne 0x40fccd
cmp dword [esp + 0x10], ebx
je 0x40fccd
mov dword [0x42b8dc], 1
push esi
call ebp
mov eax, dword [0x4324a0]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
mov eax, dword [0x4324a0]
pop edi
pop esi
pop ebx
add esp, 0x1c8
ret
Function at 0x411420
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 0x4114ea
cmp byte [ebp], 0
je 0x4114ea
lea edx, [esp + 8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x4114e8
push esi
push edi
mov edi, 0x42b380
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.00411500
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 0x411500
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 0x411597
cmp byte [esi], 0
je 0x411597
lea edx, [esp + 0x18]
push edx
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x411597
push ebp
push edi
call fcn.0041b345
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 0x42b380
push ebp
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x411584
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.0041b272
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 0x4115f0
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 0x411635
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 0x4117ea
call fcn.004115f0
test eax, eax
je 0x4117ea
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.00411850
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 0x4117ea
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 0x4117ea
cmp dword [esi + 0x28], ebp
je 0x4117ea
cmp dword [esi + 0x1c], ebp
je 0x4117ea
cmp dword [esi + 0x20], ebp
je 0x4117ea
cmp dword [esi + 0x24], ebp
je 0x4117ea
cmp dword [esi + 0x2c], ebp
je 0x4117ea
cmp dword [esi + 0x30], ebp
je 0x4117ea
cmp dword [esi + 0x34], ebp
je 0x4117ea
cmp dword [esi + 0x38], ebp
je 0x4117ea
cmp dword [esi + 0x3c], ebp
je 0x4117ea
cmp dword [esi + 0x40], ebp
je 0x4117ea
cmp eax, ebp
je 0x4117ea
cmp dword [esi + 0x48], ebp
je 0x4117ea
cmp dword [esi + 0x4c], ebp
je 0x4117ea
cmp dword [esi + 0x50], ebp
je 0x4117ea
cmp dword [esi + 0x54], ebp
je 0x4117ea
cmp dword [esi + 0x44], ebp
je 0x4117ea
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
Function at 0x411850
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push eax
push ebp
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x41190b
push esi
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41190b
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov edi, eax
test edi, edi
je 0x4118f5
mov ecx, dword [esp + 0x1c]
push edi
push esi
push ecx
push ebp
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4118ee
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x42b380
push edi
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4118ee
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cx, word [eax + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x28]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
mov cx, word [eax + 0xc]
mov dword [edx], ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x14