joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e74
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x44c750]
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0042a000
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
mov ecx, dword [ebp - 4]
seta al
call fcn.0042a8ce
leave
ret

Function at 0x413f67
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x44c750]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x100
mov dword [ebp + 0x3a0], eax
xor ebx, ebx
push edi
lea eax, [ebp + 0x1a0]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x69], bl
push ebx
jmp 0x41403e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp + 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x414030
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.GDFBinaryPath
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414022
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x68]
push eax
call fcn.0042c335
test eax, eax
pop ecx
pop ecx
jne 0x414022
push dword [ebp + 0x3b4]
lea eax, [ebp + 0x1a0]
push eax
mov byte [ebp - 0x69], 1
call fcn.00413ec6
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x69], bl
jne 0x41404e
inc dword [ebp - 0x70]
push edi
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x70]
push dword [ebp + 0x3ac]
call esi
test eax, eax
je 0x413fa7
mov ecx, dword [ebp + 0x3a0]
mov al, byte [ebp - 0x69]
pop edi
pop esi
pop ebx
call fcn.0042a8ce
add ebp, 0x3a4
leave
ret
Function at 0x414067
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov eax, 0x2c14
lea ebp, [esp - 0x2b94]
call fcn.0042a860
mov eax, dword [0x44c750]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp + 0x2b90], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [ebp - 0x78]
push eax
push 0x444010
push 1
push ebx
push 0x444030
setge byte [ebp - 0x71]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x414197
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push ebx
push ebx
mov edi, 0x2800
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x2b9c]
mov byte [ebp - 0x70], bl
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x2ba0], ebx
je 0x414110
push ebx
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x2ba0]
mov byte [ebp - 0x70], bl
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x2790]
push eax
push 0x200
push dword [ebp + 0x2b9c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x414136
mov word [eax], bx
push ebx
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2790]
push eax
push ebx
push ebx
mov byte [ebp - 0x70], bl
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x43ef30
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
pop edi
jl 0x41418e
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x2ba4]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x71], bl
je 0x4141a2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x2b90]
mov eax, esi
pop esi
pop ebx
call fcn.0042a8ce
add ebp, 0x2b94
leave
ret
Function at 0x4141e0
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x88c]
sub esp, 0x90c
mov eax, dword [0x44c750]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x888], eax
mov dword [ebp - 0x80], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [ebp - 0x80]
push eax
push 0x43f144
push 1
push ebx
push 0x43f134
setge byte [ebp - 0x79]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x41424a
mov esi, dword [ebp + 0x894]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x10]
mov esi, eax
jmp 0x4142e7
cmp dword [ebp + 0x894], ebx
je 0x4142e7
push 0x3f
pop ecx
xor eax, eax
mov word [ebp + 0x788], bx
lea edi, [ebp + 0x78a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
lea eax, [ebp + 0x788]
push eax
push dword [ebp + 0x894]
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
cmp esi, ebx
jl 0x4142e7
lea eax, [ebp + 0x788]
push eax
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
mov esi, 0x400
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.004141b9
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x10
test eax, eax
jl 0x4142bd
lea eax, [ebp - 0x78]
push eax
push SysReAllocString
call edi
lea eax, [ebp + 0x788]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.004141b9
add esp, 0x10
test eax, eax
jl 0x4142e5
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
xor esi, esi
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x4142f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x79], bl
je 0x4142ff
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x888]
mov eax, esi
call fcn.0042a8ce
pop edi
pop esi
pop ebx
add ebp, 0x88c
leave
ret 4
Function at 0x414641
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0c
mov eax, dword [0x44c750]
push ebx
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp + 8], 2
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
jne 0x414668
push 0x1c
jmp 0x41466a
push 0x23
push ebx
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
push 0x100
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jl 0x41472c
cmp dword [ebp + 0x10], ebx
mov eax, str.SupportTasks
jne 0x41469d
mov eax, str.PlayTasks
push esi
push dword [ebp + 0x14]
mov esi, 0x200
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._sMicrosoftWindowsGameExplorer_s_s_d
lea eax, [ebp - 0xa0c]
push esi
push eax
call fcn.004141b9
add esp, 0x1c
push ebx
push ebx
push esi
lea eax, [ebp - 0x40c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa0c]
push eax
push ebx
push ebx
mov byte [ebp - 0x40c], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x40c]
push ebx
push eax
call fcn.00413511
push dword [ebp + 0x18]
lea eax, [ebp - 0xa0c]
push eax
push 0x43f39c
lea eax, [ebp - 0xe0c]
push esi
push eax
call fcn.004141b9
lea eax, [ebp - 0xe0c]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00414067
add esp, 0x28
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042a8ce
leave
ret 0x1c
Function at 0x414739
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov eax, 0x3234
lea ebp, [esp - 0x31b4]
call fcn.0042a860
mov eax, dword [0x44c750]
push ebx
push esi
mov esi, dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
push edi
mov dword [ebp + 0x31b0], eax
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x2db0], bx
mov ecx, 0xff
lea edi, [ebp + 0x2db2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x29a8]
push eax
push ebx
push ebx
push 0x1c
push ebx
call esi
cmp eax, ebx
jl 0x4148b3
lea eax, [ebp + 0x27a0]
push eax
push ebx
push ebx
push 0x23
push ebx
call esi
cmp eax, ebx
jl 0x4148b3
push 0x100
lea eax, [ebp + 0x2bb0]
push eax
push dword [ebp + 0x31bc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
cmp eax, ebx
jl 0x4148b3
lea eax, [ebp + 0x2bb0]
push eax
lea eax, [ebp + 0x29a8]
push eax
push str._sMicrosoftWindowsGameExplorer_s
lea eax, [ebp + 0x2db0]
push 0x200
push eax
call fcn.004141b9
add esp, 0x14
cmp eax, ebx
jl 0x4148b3
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0042a000
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push ebx
push ebx
push 0x2800
lea eax, [ebp - 0x60]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2db0]
push eax
push ebx
push ebx
mov dword [ebp - 0x7c], 3
mov byte [ebp - 0x60], bl
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov word [ebp - 0x70], 0x414
call edi
lea eax, [ebp + 0x2bb0]
push eax
lea eax, [ebp + 0x27a0]
push eax
push str._sMicrosoftWindowsGameExplorer_s
lea eax, [ebp + 0x2db0]
push 0x200
push eax
call fcn.004141b9
add esp, 0x14
cmp eax, ebx
jl 0x4148b3
push 0x1e
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0042a000
add esp, 0xc
push ebx
push ebx
push 0x2800
lea eax, [ebp - 0x60]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2db0]
push eax
push ebx
push ebx
mov dword [ebp - 0x7c], 3
mov byte [ebp - 0x60], bl
call esi
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov word [ebp - 0x70], 0x414
call edi
xor eax, eax
mov ecx, dword [ebp + 0x31b0]
pop edi
pop esi
pop ebx
call fcn.0042a8ce
add ebp, 0x31b4
leave
ret 4
Function at 0x415238
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov esi, 0x9c
push esi
mov dword [ebp + 0x74], eax
xor edi, edi
lea eax, [ebp - 0x28]
push edi
push eax
mov ebx, ecx
call fcn.0042a000
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x41528f
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
jne 0x41528f
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x24], 5
jne 0x41529c
cmp dword [ebp - 0x20], edi
jne 0x41529e
jmp 0x4152e2
jb 0x4152e2
mov eax, dword [ebx + 0x14]
cmp eax, edi
je 0x4152e2
push eax
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x4152e2
push str.ToolbarCompatibilityCheck
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4152db
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], edi
call eax
test eax, eax
je 0x4152db
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
pop ebx
call fcn.0042a8ce
add ebp, 0x78
leave
ret

Function at 0x4153e6
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
test esi, esi
je 0x415419
push esi
call fcn.0042a590
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x415408
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x4153ff
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x41541e
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x44c750]
mov dword [ebp - 4], eax
je 0x41563a
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x415639
push dword [ebp + 0xc]
call fcn.0042a590
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x415639
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
mov byte [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0042b230
cmp eax, edi
pop ecx
pop ecx
je 0x4154a1
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.0042a990
pop ecx
pop ecx
push ebx
push esi
push edi
mov esi, 0x80
push esi
push 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
jne 0x4154ff
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
push 4
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
je 0x415637
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x41553c
cmp eax, 0x19000
jbe 0x41553c
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
push 5
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
mov edi, eax
jmp 0x415542
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x415637
push 2
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x10], ebx
mov esi, dword [ebp - 0x510]
je 0x41557b
push dword [ebp + 0x10]
call fcn.0042a590
cmp eax, esi
pop ecx
jle 0x41557b
push dword [ebp + 0x10]
call fcn.0042a590
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.004281b4
mov ebx, 0x43f678
mov esi, eax
push ebx
push esi
call fcn.0042a980
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x4155a2
push edi
call fcn.004153e6
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.0042b793
lea eax, [ebp + 8]
push eax
call fcn.0042cc02
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0042cbe7
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.0042a980
push edi
call fcn.004153e6
push dword [ebp + 0xc]
push esi
call fcn.0042a980
push edi
call fcn.004153e6
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x415619
push dword [ebp + 0x10]
call fcn.0042a590
test eax, eax
pop ecx
jbe 0x415619
push dword [ebp + 0x10]
push esi
call fcn.0042a980
push edi
call fcn.004153e6
add esp, 0xc
push ebx
push esi
call fcn.0042a980
push edi
call fcn.004153e6
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042a54b
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.0042a8ce
leave
ret
Function at 0x41775e
Capabilities:
Delete file

Disassembly:
mov eax, 0x43c52c
call fcn.0042a52c
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xa054]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [esi], 0x43f860
mov dword [ebp - 4], ebx
je 0x41778d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esi + 0x1c], ebx
je 0x4177d2
mov ecx, esi
call fcn.0041633d
mov edi, eax
cmp edi, ebx
je 0x4177b6
mov eax, dword [esi + 0x1c]
push dword [eax + 4]
push 0x444050
push edi
call fcn.00407e4a
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x4177c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x20], ebx
je 0x4177f6
push dword [esi + 0x2c]
push 0x4440c0
push dword [esi + 0x28]
call fcn.00407e4a
mov eax, dword [esi + 0x20]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x417803
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x417810
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x41781c
call fcn.0041535d
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x41782a
push eax
call fcn.0042b2c6
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x417838
push eax
call fcn.0042b2c6
pop ecx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x417846
push eax
call fcn.0042b2c6
pop ecx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x417854
push eax
call fcn.0042b2c6
pop ecx
lea eax, [esi + 0x48]
cmp byte [eax], bl
je 0x417862
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x41817c
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44c750]
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, 0x43da11
push esi
push esi
push 1
push str.MyZylomActiveXPlugin
mov dword [ebp - 4], eax
mov byte [ebp - 0x11], bl
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x418348
push edi
mov edi, dword [ebp + 0x10]
cmp di, 0x50
jne 0x4181c0
push 0x50
pop edi
jmp 0x4181cc
cmp di, 0x1bb
jne 0x4181cc
mov edi, 0x1bb
push ebx
push 0x4000000
push 3
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x41833e
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x418335
cmp dword [ebp + 0x14], ebx
lea eax, [ebp - 0x10]
jne 0x41820a
push 0x43f960
jmp 0x41820f
push str.POST
push eax
call fcn.0042a980
cmp di, 0x1bb
pop ecx
pop ecx
mov eax, 0xa0000000
jne 0x418228
mov eax, 0xa0800000
push ebx
push eax
push ebx
push esi
push str.HTTP_1.0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x418335
mov eax, dword [0x5483a4]
xor esi, esi
cmp eax, ebx
je 0x418275
push eax
call fcn.0042a590
inc eax
push eax
call fcn.004281b9
push dword [0x5483a4]
mov esi, eax
push esi
call fcn.0042a980
add esp, 0x10
cmp dword [ebp + 0x18], ebx
jbe 0x4182f5
cmp dword [ebp + 0x14], ebx
je 0x4182f5
mov edi, dword [ebp + 0x1c]
cmp edi, ebx
je 0x4182f5
cmp esi, ebx
jne 0x4182b2
push edi
call fcn.0042a590
add eax, 0x14
push eax
call fcn.004281b9
mov esi, eax
push str.Content_Type:
push esi
call fcn.0042a980
push edi
push esi
call fcn.0042a990
add esp, 0x18
jmp 0x4182f5
push esi
mov dword [ebp - 0x1c], esi
call fcn.0042a590
push edi
mov esi, eax
call fcn.0042a590
lea eax, [esi + eax + 0x15]
push eax
call fcn.004281b9
push dword [ebp - 0x1c]
mov esi, eax
push esi
call fcn.0042a980
push str.Content_Type:
push esi
call fcn.0042a990
push edi
push esi
call fcn.0042a990
push dword [ebp - 0x1c]
call fcn.0042a54b
add esp, 0x28
cmp esi, ebx
jne 0x4182fd
xor eax, eax
jmp 0x418304
push esi
call fcn.0042a590
pop ecx
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x418325
mov byte [ebp - 0x11], 1
push esi
call fcn.0042a54b
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
pop esi
pop ebx
call fcn.0042a8ce
leave
ret
Function at 0x418e32
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x418ee5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 2]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
setne al
cmp al, bl
je 0x418ee4
cmp dword [ebp - 8], 1
jne 0x418ea5
cmp byte [ebp - 2], bl
je 0x418ea5
inc dword [ebp - 0xc]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 2]
push eax
push dword [ebp + 8]
call esi
test eax, eax
setne al
cmp al, bl
jne 0x418e7e
cmp al, bl
je 0x418ee4
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x418ee4
mov edi, dword [ebp - 0xc]
inc edi
push edi
call fcn.004281b4
pop ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ecx], eax
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x418ee1
cmp dword [ebp - 8], edi
mov byte [ebp - 1], 1
je 0x418ee4
mov byte [ebp - 1], bl
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret

Function at 0x418f3e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x418f8e
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418f8e
cmp dword [ebp - 8], 2
jne 0x418f8e
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
leave
ret
Function at 0x41bf9d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x154]
mov byte [ebp - 1], 0
call fcn.0042b2c6
xor edi, edi
cmp dword [ebp + 8], edi
pop ecx
mov dword [esi + 0x154], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x14c], edi
je 0x41c109
push ebx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c108
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esi + 4]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x41c101
mov edx, dword [esi + 0x68]
sub edx, 0x40
lea ecx, [esi + 0x6c]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 4]
test al, al
je 0x41c101
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x41c101
push dword [esi + 0x11c]
lea ecx, [esi + 0x120]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x48]
test al, al
je 0x41c101
lea eax, [esi + 0x120]
push eax
push dword [esi + 0x94]
lea edi, [esi + 0x134]
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0xc]
test al, al
je 0x41c101
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x14]
test al, al
je 0x41c101
mov edi, dword [esi + 0x130]
jmp 0x41c0a0
mov eax, dword [edi]
push esi
push ebx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x41c112
mov edi, dword [edi + 4]
test edi, edi
jne 0x41c090
push 1
push edi
push edi
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41c101
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], ecx
je 0x41c0fd
push ecx
call fcn.004281b4
and dword [ebp + 8], edi
pop ecx
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x150]
mov dword [esi + 0x154], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c112
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x150]
jne 0x41c112
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 4
mov byte [ebp - 1], 0
jmp 0x41c101