joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12434c30
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 0x12434e91
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
push 0x12517260
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esp + 0x64]
lea eax, [esp + 0x10]
push eax
push ebp
mov ecx, 0x1251b440
call fcn.12442f30
push 0x12517260
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x124f325c]
mov eax, dword [esp + 0x18]
cmp ecx, 0x11
mov ebx, eax
mov edi, 6
je 0x12434dab
cmp ecx, edi
je 0x12434db8
cmp esi, 0xffffffff
je 0x12434e91
test eax, eax
je 0x12434e91
cmp ecx, 5
jne 0x12434e91
mov eax, dword [0x1251b29c]
test eax, eax
jne 0x12434e91
mov eax, dword [esp + 0x70]
cmp eax, 0x23
jl 0x12434e91
cmp eax, 0x32
jg 0x12434e91
cmp dword [esp + 0x6c], 0xc8
jl 0x12434e91
mov edi, dword [esp + 0x8c]
xor esi, esi
test edi, edi
jle 0x12434d14
mov ecx, dword [esp + 0x80]
push ecx
call fcn.1246f510
add esp, 4
cmp edi, eax
ja 0x12434d14
mov esi, edi
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x12434e91
test esi, esi
jle 0x12434e91
mov edx, dword [esp + 0x80]
push esi
push edx
push 0x12517294
call fcn.1246f6a5
mov eax, dword [0x1251b298]
add esp, 0xc
test eax, eax
jne 0x12434d81
push 1
push 0x124f9b10
push 0x12517294
call fcn.1246f723
add esp, 0xc
test eax, eax
je 0x12434d77
push 1
push 0x124f9b0c
push 0x12517294
call fcn.1246f723
add esp, 0xc
test eax, eax
jne 0x12434d95
mov dword [0x1251b298], 1
push 0
push 0
push 0x12517294
push 0
push ebx
call fcn.12432ce0
add esp, 0x14
mov ecx, 0x800
xor eax, eax
mov edi, 0x12517294
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
call fcn.12482610
test eax, eax
je 0x12434e91
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x8c]
test ebx, ebx
jg 0x12434de6
xor ebx, ebx
test esi, esi
jle 0x12434de6
mov eax, dword [esp + 0x80]
push eax
call fcn.1246f510
add esp, 4
cmp esi, eax
ja 0x12434de6
mov ebx, esi
cmp dword [0x124f325c], edi
jne 0x12434e0c
test esi, esi
jle 0x12434e0c
mov ecx, dword [esp + 0x80]
push ecx
call fcn.1246f510
add esp, 4
cmp esi, eax
ja 0x12434e0c
cmp esi, ebx
jge 0x12434e0c
mov ebx, esi
mov esi, dword [esp + 0x74]
test esi, esi
je 0x12434e1c
cmp dword [0x124f325c], edi
jne 0x12434e91
test ebx, ebx
jle 0x12434e91
mov ecx, 0x200
xor eax, eax
mov edi, 0x12519298
cmp ebx, 0x400
rep stosd dword es:[edi], eax
jl 0x12434e3b
mov ebx, 0x3ff
mov edx, dword [esp + 0x80]
push ebx
push edx
push 0x12519298
call fcn.1246f6a5
add esp, 0xc
push 0x12519298
push ebp
push str.DealScriptTextOut_hdc__08x__szName__s_
push 2
push str.IMHookAPI
push 0x1251b938
call fcn.12446e20
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
add esp, 0x18
push esi
push 0x12519298
push eax
push ecx
push ebp
mov ecx, 0x12517200
call fcn.1242e100
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x12435310
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 0x12435327
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 0x124353d6
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 0x1243539f
test cl, cl
je 0x1243539b
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x1243539f
add eax, 2
add esi, 2
test cl, cl
jne 0x1243537b
xor eax, eax
jmp 0x124353a4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x124353c5
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [ebp - 4], ecx
jb 0x12435374
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 0x12436260
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
mov esi, dword [0x125157a8]
test esi, esi
je 0x12436302
push str.orca.exe
push esi
call fcn.1246f6e2
add esp, 8
test eax, eax
jne 0x124362f1
push str.opera.exe
push esi
call fcn.1246f6e2
add esp, 8
test eax, eax
jne 0x124362f1
push str.hao123juzi.exe
push esi
call fcn.1246f6e2
add esp, 8
test eax, eax
jne 0x124362f1
push str.sogouexplorer.exe
push esi
call fcn.1246f6e2
add esp, 8
test eax, eax
jne 0x124362f1
push str.iexplore.exe
push esi
call fcn.1246f6e2
add esp, 8
test eax, eax
je 0x12436302
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.124827d0
test eax, eax
je 0x12436302
test esi, esi
je 0x12436302
push str._ServerName:DefaultBrowserServer
push esi
call fcn.1246f6e2
add esp, 8
test eax, eax
je 0x12436302
call fcn.124361f0
test eax, eax
je 0x12436302
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.124241d0
add esp, 0x10
pop esi
pop ecx
ret
Function at 0x12444f90
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x1251b504]
test eax, eax
jne 0x12444fad
mov dword [0x1251b504], 1
call fcn.12444fb0
jmp 0x12445280
ret
sub esp, 0x208
mov ecx, 0x82
xor eax, eax
push edi
mov edi, 0x1251b50c
rep stosd dword es:[edi], eax
mov ecx, 0x82
mov edi, 0x1251b718
rep stosd dword es:[edi], eax
mov eax, dword [0x124fd300]
test eax, eax
je 0x124452cf
push 0x104
push 0x1251b50c
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push 0x1251b718
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x12445376
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 0x1251b50c
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 0x1251b718
lea eax, [esp + 0x114]
push ecx
push eax
push 0
push 0
call esi
pop esi
push 0x1251b50c
call fcn.12472358
push 0x1251b718
call fcn.12472358
push 0x1251b50c
call fcn.1246f510
push 0x1251b718
mov dword [0x1251b508], eax
call fcn.1246f510
add esp, 0x10
mov dword [0x1251b714], eax
pop edi
add esp, 0x208
ret
Function at 0x12445710
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x124d46db
push eax
mov eax, dword [0x1251b924]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x12445929
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 0x12516280
push 0x124de1e8
push str.AgentConfig
mov dword [0x1251b924], 1
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x124457ea
cmp word [esp + 0xe1a], bx
jne 0x124457ea
lea edx, [esp + 0x14]
push 0x400
lea eax, [esp + 0x620]
push edx
push eax
call fcn.1246e710
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x124457ee
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x124458f3
lea ecx, [esp + 0xc]
call fcn.12463200
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push SysStringLen
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.12463370
test eax, eax
je 0x1244586a
lea ecx, [esp + 8]
push ecx
push 0x124de27c
lea ecx, [esp + 0x14]
call fcn.12463790
cmp eax, ebx
je 0x1244586a
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x1244585d
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 0x12445861
mov dword [esp + 8], ebx
push eax
call fcn.1246f3e6
add esp, 4
lea ecx, [esp + 0xc]
call fcn.124633c0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.124632f0
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x124458f3
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 0x12516280
push 0x124de27c
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x124458eb
cmp word [esp + 0xe1a], bx
jne 0x124458eb
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.1246e710
add esp, 0xc
jmp 0x124458ef
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x12445929
cmp eax, 4
jbe 0x12445929
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x12445929
cmp dword [esp + 0x14], 1
je 0x12445929
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x12445929
add eax, 0xfffffffc
cmp ecx, eax
ja 0x12445929
mov eax, dword [esp + 0x1c]
mov dword [0x1251b920], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x12446a90
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 0x12446aa7
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12446afb
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12446afb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12446afb
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 0x12446b2e
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 0x12446a95
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 0x12446aa7
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12446afb
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12446afb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12446afb
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 0x12446b2e
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 0x12446b40
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 0x12446b56
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x12446ba9
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x12446ba9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [esi + 0x20]
jae 0x12446ba9
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.1246f510
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 0x12446bdb
lea eax, [esp + 0xc]
push 0
push eax
push edi
mov dword [esp + 0x18], 0
call fcn.1246f510
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 0x1244a720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x124d4ce0
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 0x1251696c
mov dword [esp + 0x34], esi
call fcn.12447cf0
add esp, 0x10
lea ecx, [esp + 4]
push 0x12516280
call fcn.12456050
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.1245c110
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x28], 2
mov eax, dword [eax]
push eax
call fcn.1248ec40
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, esi
jle 0x1244a895
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.1242c940
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.12456980
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call fcn.124567f0
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.12458730
push 0x124f8e68
push 0x124f9c20
lea ecx, [esp + 0x18]
call fcn.12458730
lea edx, [esp + 0x44]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.1242c940
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 0x1251696c
mov byte [esp + 0x54], 4
call fcn.12447cf0
add esp, 0x24
lea ecx, [esp + 0x44]
mov byte [esp + 0x30], 2
call fcn.124567f0
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.1242c940
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, 0x1251c220
mov byte [esp + 0x4c], 5
call fcn.1244da80
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.124567f0
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x1244a7a8
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.1245c120
lea ecx, [esp + 4]
mov byte [esp + 0x24], 0
call fcn.124567f0
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], 0xffffffff
call fcn.124567f0
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18
Function at 0x1244c5f0
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x124d4f38
push eax
mov eax, dword [0x124f325c]
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x1244c6b3
mov edi, 0x1251c018
mov eax, edi
test eax, eax
je 0x1244c633
push edi
call fcn.1246f510
add esp, 4
test eax, eax
jne 0x1244c64b
mov edi, 0x1251be10
mov ecx, edi
test ecx, ecx
je 0x1244c6b3
push edi
call fcn.1246f510
add esp, 4
test eax, eax
je 0x1244c6b3
push esi
push edi
call fcn.1248b4a0
add esp, 8
test eax, eax
je 0x1244c6b3
push edi
lea ecx, [esp + 0x20]
call fcn.12456050
mov eax, dword [0x124f325c]
mov dword [esp + 0x14], esi
cmp eax, 0x16
je 0x1244c691
cmp eax, 6
je 0x1244c691
push str._TEC_DOWNLOADCTRL
lea ecx, [esp + 0x20]
call fcn.12457440
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.12456980
lea ecx, [esp + 0x1c]
mov esi, 1
mov dword [esp + 0x14], 0xffffffff
call fcn.124567f0
mov ecx, dword [0x124f325c]
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 0x1251696c
call fcn.12447cf0
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 0x1244c6f0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x124d4f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x124f325c]
push ebp
push esi
xor esi, esi
test eax, eax
mov ebp, ecx
je 0x1244c82d
push eax
call fcn.12448f60
test eax, eax
mov dword [esp + 8], eax
je 0x1244c82d
mov ecx, dword [ebp + 4]
push ebx
push edi
mov edi, dword [esp + 0x24]
test ecx, ecx
je 0x1244c7d6
push 0x5c
push edi
call fcn.1246f4d0
mov esi, eax
mov eax, dword [esp + 0x30]
push 0x5c
push eax
call fcn.1246f4d0
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x1244c7d2
test ebx, ebx
je 0x1244c7d2
add esi, 2
lea ecx, [esp + 0x24]
sub esi, edi
add ebx, 2
sar esi, 1
push esi
push edi
call fcn.12456400
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0
call fcn.12457440
push str..TECSQL
lea ecx, [esp + 0x28]
call fcn.12457440
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 0x1251696c
call fcn.12447cf0
add esp, 0x18
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.124567f0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x124f325c]
cmp ecx, 6
jne 0x1244c800
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.1244d1e0
jmp 0x1244c829
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 0x1244c824
call fcn.1244cc20
jmp 0x1244c829
call fcn.1244c860
pop edi
mov esi, eax
pop ebx
push esi
push str.DealDB____Ret:__d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
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 0x1244d690
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 0x1244d827
cmp dword [esp + 0x228], esi
je 0x1244d827
cmp dword [esp + 0x22c], esi
je 0x1244d827
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.1246f8b3
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 0x1244d827
push 0x400
call fcn.1246f55f
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x1244d813
push 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0xfffffc00
push ebp
call esi
cmp eax, 0xffffffff
jne 0x1244d751
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 0x1244d813
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1244d813
push ebx
push str.ReadZoneFile_1___S_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
push str.HostUrl
push ebx
call fcn.12470520
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1244d813
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.12470170
add esp, 8
test eax, eax
je 0x1244d813
mov ecx, dword [esp + 0x22c]
sub eax, esi
cmp eax, ecx
jb 0x1244d7dc
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 0x1251696c
call fcn.12447cf0
add esp, 0x14
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1244d827
push ebx
call fcn.1246f3e6
add esp, 4
mov esi, dword [esp + 0x10]
push esi
push str.ReadZoneFile______d_
push str.UpDlFileFrame
push 0xffffffffffffffff
push 0x1251696c
call fcn.12447cf0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret