joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12464f50
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 0x124651b1
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
push 0x125488e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x64]
lea eax, [esp + 0x10]
push eax
push ebp
mov ecx, 0x1254cac0
call fcn.12473250
push 0x125488e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1252425c]
mov eax, dword [esp + 0x18]
cmp ecx, 0x11
mov ebx, eax
mov edi, 6
je 0x124650cb
cmp ecx, edi
je 0x124650d8
cmp esi, 0xffffffff
je 0x124651b1
test eax, eax
je 0x124651b1
cmp ecx, 5
jne 0x124651b1
mov eax, dword [0x1254c91c]
test eax, eax
jne 0x124651b1
mov eax, dword [esp + 0x70]
cmp eax, 0x23
jl 0x124651b1
cmp eax, 0x32
jg 0x124651b1
cmp dword [esp + 0x6c], 0xc8
jl 0x124651b1
mov edi, dword [esp + 0x8c]
xor esi, esi
test edi, edi
jle 0x12465034
mov ecx, dword [esp + 0x80]
push ecx
call fcn.1249f8a0
add esp, 4
cmp edi, eax
ja 0x12465034
mov esi, edi
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x124651b1
test esi, esi
jle 0x124651b1
mov edx, dword [esp + 0x80]
push esi
push edx
push 0x12548914
call fcn.1249fa35
mov eax, dword [0x1254c918]
add esp, 0xc
test eax, eax
jne 0x124650a1
push 1
push 0x1252ae9c
push 0x12548914
call fcn.1249fab3
add esp, 0xc
test eax, eax
je 0x12465097
push 1
push 0x1252ae98
push 0x12548914
call fcn.1249fab3
add esp, 0xc
test eax, eax
jne 0x124650b5
mov dword [0x1254c918], 1
push 0
push 0
push 0x12548914
push 0
push ebx
call fcn.12463000
add esp, 0x14
mov ecx, 0x800
xor eax, eax
mov edi, 0x12548914
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
call fcn.124b2a70
test eax, eax
je 0x124651b1
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x8c]
test ebx, ebx
jg 0x12465106
xor ebx, ebx
test esi, esi
jle 0x12465106
mov eax, dword [esp + 0x80]
push eax
call fcn.1249f8a0
add esp, 4
cmp esi, eax
ja 0x12465106
mov ebx, esi
cmp dword [0x1252425c], edi
jne 0x1246512c
test esi, esi
jle 0x1246512c
mov ecx, dword [esp + 0x80]
push ecx
call fcn.1249f8a0
add esp, 4
cmp esi, eax
ja 0x1246512c
cmp esi, ebx
jge 0x1246512c
mov ebx, esi
mov esi, dword [esp + 0x74]
test esi, esi
je 0x1246513c
cmp dword [0x1252425c], edi
jne 0x124651b1
test ebx, ebx
jle 0x124651b1
mov ecx, 0x200
xor eax, eax
mov edi, 0x1254a918
cmp ebx, 0x400
rep stosd dword es:[edi], eax
jl 0x1246515b
mov ebx, 0x3ff
mov edx, dword [esp + 0x80]
push ebx
push edx
push 0x1254a918
call fcn.1249fa35
add esp, 0xc
push 0x1254a918
push ebp
push str.DealScriptTextOut_hdc__08x__szName__s_
push 2
push str.IMHookAPI
push 0x1254cfb8
call fcn.12477140
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
add esp, 0x18
push esi
push 0x1254a918
push eax
push ecx
push ebp
mov ecx, 0x12548880
call fcn.1245e3f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x12465630
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 0x12465647
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 0x124656f6
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 0x124656bf
test cl, cl
je 0x124656bb
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x124656bf
add eax, 2
add esi, 2
test cl, cl
jne 0x1246569b
xor eax, eax
jmp 0x124656c4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x124656e5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [ebp - 4], ecx
jb 0x12465694
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 0x12466580
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
mov esi, dword [0x12546e28]
test esi, esi
je 0x12466622
push str.orca.exe
push esi
call fcn.1249fa72
add esp, 8
test eax, eax
jne 0x12466611
push str.opera.exe
push esi
call fcn.1249fa72
add esp, 8
test eax, eax
jne 0x12466611
push str.hao123juzi.exe
push esi
call fcn.1249fa72
add esp, 8
test eax, eax
jne 0x12466611
push str.sogouexplorer.exe
push esi
call fcn.1249fa72
add esp, 8
test eax, eax
jne 0x12466611
push str.iexplore.exe
push esi
call fcn.1249fa72
add esp, 8
test eax, eax
je 0x12466622
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.124b2c30
test eax, eax
je 0x12466622
test esi, esi
je 0x12466622
push str._ServerName:DefaultBrowserServer
push esi
call fcn.1249fa72
add esp, 8
test eax, eax
je 0x12466622
call fcn.12466510
test eax, eax
je 0x12466622
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.124541d0
add esp, 0x10
pop esi
pop ecx
ret
Function at 0x124752b0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x1254cb84]
test eax, eax
jne 0x124752cd
mov dword [0x1254cb84], 1
call fcn.124752d0
jmp 0x124755a0
ret
sub esp, 0x208
mov ecx, 0x82
xor eax, eax
push edi
mov edi, 0x1254cb8c
rep stosd dword es:[edi], eax
mov ecx, 0x82
mov edi, 0x1254cd98
rep stosd dword es:[edi], eax
mov eax, dword [0x1252e690]
test eax, eax
je 0x124755ef
push 0x104
push 0x1254cb8c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push 0x1254cd98
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x12475696
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 0x1254cb8c
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 0x1254cd98
lea eax, [esp + 0x114]
push ecx
push eax
push 0
push 0
call esi
pop esi
push 0x1254cb8c
call fcn.124a26e8
push 0x1254cd98
call fcn.124a26e8
push 0x1254cb8c
call fcn.1249f8a0
push 0x1254cd98
mov dword [0x1254cb88], eax
call fcn.1249f8a0
add esp, 0x10
mov dword [0x1254cd94], eax
pop edi
add esp, 0x208
ret
Function at 0x12475a30
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1250584b
push eax
mov eax, dword [0x1254cfa4]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x12475c49
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 0x12547904
push 0x1250f210
push str.AgentConfig
mov dword [0x1254cfa4], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x12475b0a
cmp word [esp + 0xe1a], bx
jne 0x12475b0a
lea edx, [esp + 0x14]
push 0x400
lea eax, [esp + 0x620]
push edx
push eax
call fcn.1249eaa0
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x12475b0e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x12475c13
lea ecx, [esp + 0xc]
call fcn.12493530
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push SysStringLen
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.124936a0
test eax, eax
je 0x12475b8a
lea ecx, [esp + 8]
push ecx
push 0x1250f2a4
lea ecx, [esp + 0x14]
call fcn.12493ac0
cmp eax, ebx
je 0x12475b8a
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x12475b7d
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 0x12475b81
mov dword [esp + 8], ebx
push eax
call fcn.1249f776
add esp, 4
lea ecx, [esp + 0xc]
call fcn.124936f0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.12493620
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x12475c13
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 0x12547904
push 0x1250f2a4
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x12475c0b
cmp word [esp + 0xe1a], bx
jne 0x12475c0b
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.1249eaa0
add esp, 0xc
jmp 0x12475c0f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x12475c49
cmp eax, 4
jbe 0x12475c49
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x12475c49
cmp dword [esp + 0x14], 1
je 0x12475c49
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x12475c49
add eax, 0xfffffffc
cmp ecx, eax
ja 0x12475c49
mov eax, dword [esp + 0x1c]
mov dword [0x1254cfa0], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x12476db0
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 0x12476dc7
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12476e1b
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12476e1b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12476e1b
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 0x12476e4e
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 0x12476db5
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 0x12476dc7
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12476e1b
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12476e1b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12476e1b
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 0x12476e4e
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 0x12476e60
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 0x12476e76
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12476ec9
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12476ec9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12476ec9
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.1249f8a0
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 0x12476efb
lea eax, [esp + 0xc]
push 0
push eax
push edi
mov dword [esp + 0x18], 0
call fcn.1249f8a0
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 0x1247aa40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x12505e50
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 0x12547fec
mov dword [esp + 0x34], esi
call fcn.12478010
add esp, 0x10
lea ecx, [esp + 4]
push 0x12547904
call fcn.12486370
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.1248c430
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x28], 2
mov eax, dword [eax]
push eax
call fcn.124bfc90
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, esi
jle 0x1247abb5
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.1245c9a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.12486ca0
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call fcn.12486b10
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.12488a50
push 0x12528ccc
push 0x1252afac
lea ecx, [esp + 0x18]
call fcn.12488a50
lea edx, [esp + 0x44]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.1245c9a0
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 0x12547fec
mov byte [esp + 0x54], 4
call fcn.12478010
add esp, 0x24
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 2
call fcn.12486b10
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.1245c9a0
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, 0x1254d8a0
mov byte [esp + 0x4c], 5
call fcn.1247dda0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.12486b10
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x1247aac8
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.1248c440
lea ecx, [esp + 4]
mov byte [esp + 0x24], 0
call fcn.12486b10
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], 0xffffffff
call fcn.12486b10
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
Function at 0x1247c910
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x125060a8
push eax
mov eax, dword [0x1252425c]
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x1247c9d3
mov edi, 0x1254d698
mov eax, edi
test eax, eax
je 0x1247c953
push edi
call fcn.1249f8a0
add esp, 4
test eax, eax
jne 0x1247c96b
mov edi, 0x1254d490
mov ecx, edi
test ecx, ecx
je 0x1247c9d3
push edi
call fcn.1249f8a0
add esp, 4
test eax, eax
je 0x1247c9d3
push esi
push edi
call fcn.124bbab0
add esp, 8
test eax, eax
je 0x1247c9d3
push edi
lea ecx, [esp + 0x20]
call fcn.12486370
mov eax, dword [0x1252425c]
mov dword [esp + 0x14], esi
cmp eax, 0x16
je 0x1247c9b1
cmp eax, 6
je 0x1247c9b1
push str._TEC_DOWNLOADCTRL
lea ecx, [esp + 0x20]
call fcn.12487760
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.12486ca0
lea ecx, [esp + 0x1c]
mov esi, 1
mov dword [esp + 0x14], 0xffffffff
call fcn.12486b10
mov ecx, dword [0x1252425c]
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 0x12547fec
call fcn.12478010
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 0x1247ca10
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x125060c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1252425c]
push ebp
push esi
xor esi, esi
test eax, eax
mov ebp, ecx
je 0x1247cb4d
push eax
call fcn.12479280
test eax, eax
mov dword [esp + 8], eax
je 0x1247cb4d
mov ecx, dword [ebp + 4]
push ebx
push edi
mov edi, dword [esp + 0x24]
test ecx, ecx
je 0x1247caf6
push 0x5c
push edi
call fcn.1249f860
mov esi, eax
mov eax, dword [esp + 0x30]
push 0x5c
push eax
call fcn.1249f860
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x1247caf2
test ebx, ebx
je 0x1247caf2
add esi, 2
lea ecx, [esp + 0x24]
sub esi, edi
add ebx, 2
sar esi, 1
push esi
push edi
call fcn.12486720
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.12487760
push str..TECSQL
lea ecx, [esp + 0x28]
call fcn.12487760
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 0x12547fec
call fcn.12478010
add esp, 0x18
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.12486b10
mov eax, dword [esp + 0x10]
mov ecx, dword [0x1252425c]
cmp ecx, 6
jne 0x1247cb20
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.1247d500
jmp 0x1247cb49
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 0x1247cb44
call fcn.1247cf40
jmp 0x1247cb49
call fcn.1247cb80
pop edi
mov esi, eax
pop ebx
push esi
push str.DealDB____Ret:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
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 0x1247d9b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov edx, dword [esp + 0x214]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp edx, esi
mov dword [esp + 0x10], esi
je 0x1247db47
cmp dword [esp + 0x228], esi
je 0x1247db47
cmp dword [esp + 0x22c], esi
je 0x1247db47
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str._s:zone.identifier
lea eax, [esp + 0x20]
push 0x103
push eax
call fcn.1249fc43
add esp, 0x10
lea ecx, [esp + 0x18]
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1247db47
push 0x400
call fcn.1249f8ef
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x1247db33
push 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xfffffc00
push ebp
call esi
cmp eax, 0xffffffff
jne 0x1247da71
push 0
push 0
push 0
push ebp
call esi
lea edx, [esp + 0x14]
push 0
push edx
push 0x3ff
push ebx
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1247db33
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1247db33
push ebx
push str.ReadZoneFile_1___S_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
push str.HostUrl
push ebx
call fcn.124a08b0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1247db33
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.124a0500
add esp, 8
test eax, eax
je 0x1247db33
mov ecx, dword [esp + 0x22c]
sub eax, esi
cmp eax, ecx
jb 0x1247dafc
lea eax, [ecx - 1]
mov edi, dword [esp + 0x228]
push eax
push edi
push eax
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 0x12547fec
call fcn.12478010
add esp, 0x14
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1247db47
push ebx
call fcn.1249f776
add esp, 4
mov esi, dword [esp + 0x10]
push esi
push str.ReadZoneFile______d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x12547fec
call fcn.12478010
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret