joyce8/EMBER2024-capa huggingface dataset:
Function at 0x128e5790
Capabilities:
Check http status code

Disassembly:
mov eax, dword [esp + 0x20]
sub esp, 0x50
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x128e59f1
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
push 0x129ce020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x64]
lea eax, [esp + 0x10]
push eax
push ebp
mov ecx, 0x129d2200
call fcn.128f3b50
push 0x129ce020
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x129a84d4]
mov eax, dword [esp + 0x18]
cmp ecx, 0x11
mov ebx, eax
mov edi, 6
je 0x128e590b
cmp ecx, edi
je 0x128e5918
cmp esi, 0xffffffff
je 0x128e59f1
test eax, eax
je 0x128e59f1
cmp ecx, 5
jne 0x128e59f1
mov eax, dword [0x129d205c]
test eax, eax
jne 0x128e59f1
mov eax, dword [esp + 0x70]
cmp eax, 0x23
jl 0x128e59f1
cmp eax, 0x32
jg 0x128e59f1
cmp dword [esp + 0x6c], 0xc8
jl 0x128e59f1
mov edi, dword [esp + 0x8c]
xor esi, esi
test edi, edi
jle 0x128e5874
mov ecx, dword [esp + 0x80]
push ecx
call fcn.12922b80
add esp, 4
cmp edi, eax
ja 0x128e5874
mov esi, edi
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x128e59f1
test esi, esi
jle 0x128e59f1
mov edx, dword [esp + 0x80]
push esi
push edx
push 0x129ce054
call fcn.12922d15
mov eax, dword [0x129d2058]
add esp, 0xc
test eax, eax
jne 0x128e58e1
push 1
push 0x129af5c4
push 0x129ce054
call fcn.12922d93
add esp, 0xc
test eax, eax
je 0x128e58d7
push 1
push 0x129af5c0
push 0x129ce054
call fcn.12922d93
add esp, 0xc
test eax, eax
jne 0x128e58f5
mov dword [0x129d2058], 1
push 0
push 0
push 0x129ce054
push 0
push ebx
call fcn.128e3840
add esp, 0x14
mov ecx, 0x800
xor eax, eax
mov edi, 0x129ce054
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
call fcn.12935d60
test eax, eax
je 0x128e59f1
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x8c]
test ebx, ebx
jg 0x128e5946
xor ebx, ebx
test esi, esi
jle 0x128e5946
mov eax, dword [esp + 0x80]
push eax
call fcn.12922b80
add esp, 4
cmp esi, eax
ja 0x128e5946
mov ebx, esi
cmp dword [0x129a84d4], edi
jne 0x128e596c
test esi, esi
jle 0x128e596c
mov ecx, dword [esp + 0x80]
push ecx
call fcn.12922b80
add esp, 4
cmp esi, eax
ja 0x128e596c
cmp esi, ebx
jge 0x128e596c
mov ebx, esi
mov esi, dword [esp + 0x74]
test esi, esi
je 0x128e597c
cmp dword [0x129a84d4], edi
jne 0x128e59f1
test ebx, ebx
jle 0x128e59f1
mov ecx, 0x200
xor eax, eax
mov edi, 0x129d0058
cmp ebx, 0x400
rep stosd dword es:[edi], eax
jl 0x128e599b
mov ebx, 0x3ff
mov edx, dword [esp + 0x80]
push ebx
push edx
push 0x129d0058
call fcn.12922d15
add esp, 0xc
push 0x129d0058
push ebp
push str.DealScriptTextOut_hdc__08x__szName__s_
push 2
push str.IMHookAPI
push 0x129d26f8
call fcn.128f7a50
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
add esp, 0x18
push esi
push 0x129d0058
push eax
push ecx
push ebp
mov ecx, 0x129cdfc0
call fcn.128dec30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x128e5e70
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jne 0x128e5e87
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx]
xor edx, edx
mov edi, dword [eax + 8]
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi + 0x78]
mov ecx, dword [eax + edi + 0x1c]
add eax, edi
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ebx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ecx, edi
add eax, edi
cmp ebx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jbe 0x128e5f36
mov dword [ebp - 4], ecx
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
add eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x128e5eff
test cl, cl
je 0x128e5efb
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x128e5eff
add eax, 2
add esi, 2
test cl, cl
jne 0x128e5edb
xor eax, eax
jmp 0x128e5f04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x128e5f25
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [ebp - 4], ecx
jb 0x128e5ed4
mov esi, dword [ebp - 0xc]
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [ecx + edx*2]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + eax*4]
add esi, edi
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x128e6dc0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
mov esi, dword [0x129cc518]
test esi, esi
je 0x128e6e62
push str.orca.exe
push esi
call fcn.12922d52
add esp, 8
test eax, eax
jne 0x128e6e51
push str.opera.exe
push esi
call fcn.12922d52
add esp, 8
test eax, eax
jne 0x128e6e51
push str.hao123juzi.exe
push esi
call fcn.12922d52
add esp, 8
test eax, eax
jne 0x128e6e51
push str.sogouexplorer.exe
push esi
call fcn.12922d52
add esp, 8
test eax, eax
jne 0x128e6e51
push str.iexplore.exe
push esi
call fcn.12922d52
add esp, 8
test eax, eax
je 0x128e6e62
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.12935f20
test eax, eax
je 0x128e6e62
test esi, esi
je 0x128e6e62
push str._ServerName:DefaultBrowserServer
push esi
call fcn.12922d52
add esp, 8
test eax, eax
je 0x128e6e62
call fcn.128e6d50
test eax, eax
je 0x128e6e62
mov eax, 1
pop esi
pop ecx
ret
push 0
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.128d4260
add esp, 0x10
pop esi
pop ecx
ret
Function at 0x128f5bb0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x129d22c4]
test eax, eax
jne 0x128f5bcd
mov dword [0x129d22c4], 1
call fcn.128f5bd0
jmp 0x128f5ea0
ret
sub esp, 0x208
mov ecx, 0x82
xor eax, eax
push edi
mov edi, 0x129d22cc
rep stosd dword es:[edi], eax
mov ecx, 0x82
mov edi, 0x129d24d8
rep stosd dword es:[edi], eax
mov eax, dword [0x129b2f08]
test eax, eax
je 0x128f5eef
push 0x104
push 0x129d22cc
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push 0x129d24d8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x128f5f96
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
repne scasb al, byte es:[edi]
not ecx
push 0x103
dec ecx
push 0x129d22cc
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push eax
call esi
lea edi, [esp + 0x10c]
or ecx, 0xffffffff
xor eax, eax
push 0x103
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x129d24d8
lea eax, [esp + 0x114]
push ecx
push eax
push 0
push 0
call esi
pop esi
push 0x129d22cc
call fcn.129259c8
push 0x129d24d8
call fcn.129259c8
push 0x129d22cc
call fcn.12922b80
push 0x129d24d8
mov dword [0x129d22c8], eax
call fcn.12922b80
add esp, 0x10
mov dword [0x129d24d4], eax
pop edi
add esp, 0x208
ret
Function at 0x128f6330
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1298961b
push eax
mov eax, dword [0x129d26e4]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x128f6549
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x414]
lea ecx, [esp + 0x61c]
push eax
push 0x400
push ecx
push 0x129cd044
push 0x12993408
push str.AgentConfig
mov dword [0x129d26e4], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x128f640a
cmp word [esp + 0xe1a], bx
jne 0x128f640a
lea edx, [esp + 0x14]
push 0x400
lea eax, [esp + 0x620]
push edx
push eax
call fcn.12921d80
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x128f640e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x128f6513
lea ecx, [esp + 0xc]
call fcn.129167f0
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push SysStringLen
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.12916960
test eax, eax
je 0x128f648a
lea ecx, [esp + 8]
push ecx
push 0x1299349c
lea ecx, [esp + 0x14]
call fcn.12916d80
cmp eax, ebx
je 0x128f648a
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x128f647d
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x128f6481
mov dword [esp + 8], ebx
push eax
call fcn.12922a56
add esp, 4
lea ecx, [esp + 0xc]
call fcn.129169b0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.129168e0
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x128f6513
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x129cd044
push 0x1299349c
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x128f650b
cmp word [esp + 0xe1a], bx
jne 0x128f650b
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.12921d80
add esp, 0xc
jmp 0x128f650f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x128f6549
cmp eax, 4
jbe 0x128f6549
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x128f6549
cmp dword [esp + 0x14], 1
je 0x128f6549
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x128f6549
add eax, 0xfffffffc
cmp ecx, eax
ja 0x128f6549
mov eax, dword [esp + 0x1c]
mov dword [0x129d26e0], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x128f76c0
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x128f76d7
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x128f772b
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x128f772b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x128f772b
mov eax, dword [esi + 0x18]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x18], 0
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x128f775e
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
push ecx
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
pop edi
pop esi
pop ebx
ret 4

Function at 0x128f76c5
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x128f76d7
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x128f772b
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x128f772b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x128f772b
mov eax, dword [esi + 0x18]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x18], 0
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x128f775e
lea eax, [esp + 0x10]
push 0
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 0
push ecx
push ebx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
pop edi
pop esi
pop ebx
ret 4
Function at 0x128f7770
Capabilities:
Get file size
Print debug messages
Write file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
test eax, eax
je 0x128f7786
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x128f77d9
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x128f77d9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x128f77d9
mov eax, dword [esi + 0x18]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
mov dword [esp + 0x18], 0
call fcn.12922b80
mov edx, dword [esi + 0x18]
add esp, 4
shl eax, 1
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x128f780b
lea eax, [esp + 0xc]
push 0
push eax
push edi
mov dword [esp + 0x18], 0
call fcn.12922b80
add esp, 4
shl eax, 1
push eax
push edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
pop edi
pop esi
ret 4
Function at 0x128fbdf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x12989cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push str.EnumFileAddUpdownLog_1
push str.History
xor esi, esi
push 0xffffffffffffffff
push 0x129cd72c
mov dword [esp + 0x34], esi
call fcn.128f8920
add esp, 0x10
lea ecx, [esp + 4]
push 0x129cd044
call fcn.12907ea0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.1290df60
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x28], 2
mov eax, dword [eax]
push eax
call fcn.129439a0
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, esi
jle 0x128fbf65
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x48]
lea edx, [esp + 0x40]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.128dd1e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.129087d0
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call fcn.12908640
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
mov ecx, dword [ecx]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.1290a580
push 0x129ad3f4
push 0x129af6d4
lea ecx, [esp + 0x18]
call fcn.1290a580
lea edx, [esp + 0x44]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.128dd1e0
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
push ebp
push ebx
push str.EnumFileAddUpdownLog_Add_Type__d__iTime__I64u__wstrUrl__s___wstrTargetPath__s_
push str.History
push 0xffffffffffffffff
push 0x129cd72c
mov byte [esp + 0x54], 4
call fcn.128f8920
add esp, 0x24
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 2
call fcn.12908640
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.128dd1e0
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push str.115chrome
push ecx
push eax
push edx
push edi
push ebp
push ebx
mov ecx, 0x129d2fe0
mov byte [esp + 0x4c], 5
call fcn.128ff690
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.12908640
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x128fbe78
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.1290df70
lea ecx, [esp + 4]
mov byte [esp + 0x24], 0
call fcn.12908640
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], 0xffffffff
call fcn.12908640
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
Function at 0x128fe1a0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x12989f78
push eax
mov eax, dword [0x129a84d4]
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x128fe263
mov edi, 0x129d2dd8
mov eax, edi
test eax, eax
je 0x128fe1e3
push edi
call fcn.12922b80
add esp, 4
test eax, eax
jne 0x128fe1fb
mov edi, 0x129d2bd0
mov ecx, edi
test ecx, ecx
je 0x128fe263
push edi
call fcn.12922b80
add esp, 4
test eax, eax
je 0x128fe263
push esi
push edi
call fcn.1293eda0
add esp, 8
test eax, eax
je 0x128fe263
push edi
lea ecx, [esp + 0x20]
call fcn.12907ea0
mov eax, dword [0x129a84d4]
mov dword [esp + 0x14], esi
cmp eax, 0x16
je 0x128fe241
cmp eax, 6
je 0x128fe241
push str._TEC_DOWNLOADCTRL
lea ecx, [esp + 0x20]
call fcn.12909290
mov edx, dword [esp + 0x1c]
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.129087d0
lea ecx, [esp + 0x1c]
mov esi, 1
mov dword [esp + 0x14], 0xffffffff
call fcn.12908640
mov ecx, dword [0x129a84d4]
mov edx, dword [ebx]
push ecx
push edx
push esi
push str.DealHistoryFile____bRet:__d__Path:__s__Type:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x28]
add esp, 0x1c
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x128fe2a0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x12989f98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x129a84d4]
push ebp
push esi
xor esi, esi
test eax, eax
mov ebp, ecx
je 0x128fe3dd
push eax
call fcn.128f9c00
test eax, eax
mov dword [esp + 8], eax
je 0x128fe3dd
mov ecx, dword [ebp + 4]
push ebx
push edi
mov edi, dword [esp + 0x24]
test ecx, ecx
je 0x128fe386
push 0x5c
push edi
call fcn.12922b40
mov esi, eax
mov eax, dword [esp + 0x30]
push 0x5c
push eax
call fcn.12922b40
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x128fe382
test ebx, ebx
je 0x128fe382
add esi, 2
lea ecx, [esp + 0x24]
sub esi, edi
add ebx, 2
sar esi, 1
push esi
push edi
call fcn.12908250
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.12909290
push str..TECSQL
lea ecx, [esp + 0x28]
call fcn.12909290
mov ecx, dword [esp + 0x24]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x24]
push edx
push edi
push str.DealDB_:__s____s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x18
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.12908640
mov eax, dword [esp + 0x10]
mov ecx, dword [0x129a84d4]
cmp ecx, 6
jne 0x128fe3b0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push edi
push eax
mov ecx, ebp
call fcn.128fed90
jmp 0x128fe3d9
mov edx, dword [esp + 0x30]
cmp ecx, 0x16
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push edi
push eax
mov ecx, ebp
jne 0x128fe3d4
call fcn.128fe7d0
jmp 0x128fe3d9
call fcn.128fe410
pop edi
mov esi, eax
pop ebx
push esi
push str.DealDB____Ret:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebp
add esp, 0x10
ret 0x14
Function at 0x128ff240
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov edx, dword [esp + 0x218]
push ebx
xor ebx, ebx
push ebp
push esi
cmp edx, ebx
push edi
mov dword [esp + 0x14], ebx
je 0x128ff437
cmp dword [esp + 0x22c], ebx
je 0x128ff437
cmp dword [esp + 0x230], ebx
je 0x128ff437
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str._s:zone.identifier
lea eax, [esp + 0x24]
push 0x103
push eax
call fcn.12922f82
add esp, 0x10
lea ecx, [esp + 0x1c]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x128ff437
push 0x1000
call fcn.12922bcf
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x128ff423
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push 0xfffff000
push edi
call esi
cmp eax, 0xffffffff
jne 0x128ff302
push ebx
push ebx
push ebx
push edi
call esi
lea edx, [esp + 0x18]
push ebx
push edx
push 0xfff
push ebp
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x128ff423
cmp dword [esp + 0x18], ebx
je 0x128ff423
push ebp
push str.ReadZoneFile_1___S_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
push str.HostUrl
push ebp
call fcn.12923b90
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x128ff423
mov edi, str.HostUrl
or ecx, 0xffffffff
xor eax, eax
push 0xd
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
push esi
call fcn.129237e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x128ff41f
mov edi, str.about:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.about:
push esi
call fcn.129333f0
add esp, 0xc
test eax, eax
jne 0x128ff3d8
push str.ReferrerUrl
push ebp
call fcn.12923b90
mov esi, eax
add esp, 8
test esi, esi
je 0x128ff41f
mov edi, str.ReferrerUrl
or ecx, 0xffffffff
xor eax, eax
push 0xd
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
push esi
call fcn.129237e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x128ff41f
mov eax, dword [esp + 0x230]
sub ebx, esi
cmp ebx, eax
jb 0x128ff3e8
lea ebx, [eax - 1]
mov edi, dword [esp + 0x22c]
push ebx
push edi
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push str.ReadZoneFile_2___s_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x128ff437
push ebp
call fcn.12922a56
add esp, 4
mov esi, dword [esp + 0x14]
push esi
push str.ReadZoneFile______d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x129cd72c
call fcn.128f8920
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret