joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039a0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x431128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push 0x402600
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.00402570
mov eax, dword [esp + 0x24]
mov dword [0x4433d0], eax
call fcn.00402730
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea ecx, [esp + 4]
push ecx
mov dword [0x4433f0], eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp dword [esp + 4], 2
jl 0x403a20
push 0x4433dc
push str.TTRTI.dll
call fcn.00404180
add esp, 8
test eax, eax
mov dword [0x4433d4], eax
jne 0x403a3b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
mov eax, dword [0x4433dc]
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov eax, dword [esi + 4]
push eax
call fcn.00403450
add esp, 4
test eax, eax
jne 0x403a74
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x4433f4]
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
push 0
call fcn.00418700
add esp, 4
test al, al
je 0x403aa4
push 0x433f6c
push 0xcb
push str..TVShow.cpp
push 0
call fcn.00418720
add esp, 0xc
push eax
call fcn.00418950
add esp, 8
call fcn.00402b90
test eax, eax
je 0x403a27
lea ecx, [esp + 8]
call fcn.0040d940
mov eax, dword [esi + 4]
mov cx, word [eax]
cmp cx, 0x5c
mov dword [esp + 0x1c], 0
je 0x403ad4
cmp cx, 0x2f
jne 0x403ad7
add eax, 2
push eax
lea ecx, [esp + 0xc]
call fcn.0040d960
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 8]
push ecx
call fcn.00403720
add esp, 4
test eax, eax
je 0x403b40
push 0
push 0x32
push 0xa
push 0
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00403680
push 0xa
push 0
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.00402ca0
mov eax, dword [0x4433dc]
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
mov eax, dword [0x4433d4]
push eax
call fcn.004042f0
add esp, 4
call fcn.004017b0
mov ecx, eax
call fcn.0040ee00
mov esi, dword [0x4433f4]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040d850
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x403e30
Capabilities:
Create thread

Disassembly:
add ecx, 0x390
jmp 0x40a330
push esi
push 0x4b4
mov esi, ecx
call fcn.00423c1e
add esp, 4
mov dword [esi + 0x40], eax
lea eax, [esi + 0x2c]
push eax
push 0
push esi
push 0x40a2f0
push 0
push 0
mov dword [esi + 0x44], 0x12d
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x28], eax
pop esi
mov eax, ecx
ret
Function at 0x404730
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.00426470
mov eax, dword [0x443350]
push edi
mov dword [esp + 0x100c], eax
xor eax, eax
xor edx, edx
mov word [esp + 8], dx
mov ecx, 0x1ff
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x808], dx
mov ecx, 0x1ff
lea edi, [esp + 0x80a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x3ff
push eax
call fcn.004017b0
mov ecx, eax
call fcn.0040e440
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push str.UserConfig.ini
push ecx
push edx
lea eax, [esp + 0x14]
push eax
push str._sUsers_I64d_s
lea ecx, [esp + 0x81c]
push 0x3ff
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x1c
lea edx, [esp + 0x808]
push edx
push 1
push str.TipCreateShortCut
push 0x433624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x100c]
call fcn.00426448
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x4047f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc6c
mov eax, dword [0x443350]
push ebx
push esi
push edi
xor edx, edx
mov dword [esp + 0xc74], eax
xor eax, eax
mov word [esp + 0x260], dx
mov ecx, 0x82
lea edi, [esp + 0x262]
rep stosd dword es:[edi], eax
mov word [esp + 0x470], dx
mov ecx, 0x1ff
lea edi, [esp + 0x472]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
push edx
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x470]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x470]
push 0x4340b0
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
mov edi, dword [ebp + 8]
push edi
lea ecx, [esp + 0x26c]
push 0x4340a8
push ecx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4048a9
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x4048e2
mov ebx, dword [sym.imp.MSVCR71.dll_wcscmp]
nop
test byte [esp + 0x10], 0x10
jne 0x4048c6
lea edx, [esp + 0x3c]
push edx
push edi
call ebx
add esp, 8
test eax, eax
je 0x4048ff
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4048b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [esp + 0xc74]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xc74]
mov eax, 1
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404930
Capabilities:
Parse url

Disassembly:
mov eax, 0x108c
call fcn.00426470
mov eax, dword [0x443350]
push esi
mov esi, dword [esp + 0x109c]
test esi, esi
mov dword [esp + 0x108c], eax
je 0x404b20
mov edx, dword [esp + 0x10a0]
test edx, edx
je 0x404b20
mov eax, dword [esp + 0x1098]
push ebx
mov ebx, dword [esp + 0x1098]
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
push edi
mov dword [eax], 0x1000
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push 0x2000000
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], edx
push ecx
lea edx, [esp + 0x58]
mov eax, 0x824
push edx
mov dword [esp + 0x30], esi
push ebx
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x20], eax
xor esi, esi
call ebp
test eax, eax
jne 0x404a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404a09
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
push ecx
call fcn.00423c1e
mov edi, eax
add esp, 4
test edi, edi
je 0x404a09
push 0x2000000
lea edx, [esp + 0x14]
push edx
push edi
push ebx
mov esi, 1
call ebp
test eax, eax
jne 0x404a28
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x1088]
call fcn.00426448
add esp, 0x108c
ret 0x14
lea edi, [esp + 0x50]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test esi, esi
mov ebx, eax
je 0x404a47
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
jne 0x404a5c
mov ecx, dword [esp + 0x10a4]
mov dword [ecx], 0x1000
mov eax, ebx
jmp 0x404a0b
mov ax, word [esp + 0x2c]
mov edx, dword [esp + 0x10b0]
mov word [edx], ax
mov eax, dword [esp + 0x20]
dec eax
cmp eax, 6
ja case.default.0x404a79
jmp dword [eax*4 + 0x404b38]
mov ecx, dword [esp + 0x10a4]
mov dword [ecx], 1
mov eax, ebx
jmp 0x404a0b
mov edx, dword [esp + 0x10a4]
mov dword [edx], 2
mov eax, ebx
jmp 0x404a0b
mov eax, dword [esp + 0x10a4]
mov dword [eax], 3
mov eax, ebx
jmp 0x404a0b
mov ecx, dword [esp + 0x10a4]
mov dword [ecx], 0x100b
mov eax, ebx
jmp 0x404a0b
mov edx, dword [esp + 0x10a4]
mov dword [edx], 0x1001
mov eax, ebx
jmp 0x404a0b
mov eax, dword [esp + 0x10a4]
mov dword [eax], 0x1006
mov eax, ebx
jmp 0x404a0b
mov ecx, dword [esp + 0x10a4]
mov dword [ecx], 0x1002
mov eax, ebx
jmp 0x404a0b
mov edx, dword [esp + 0x10a4]
mov dword [edx], 0x1000
mov eax, ebx
jmp 0x404a0b
mov ecx, dword [esp + 0x108c]
xor eax, eax
pop esi
call fcn.00426448
add esp, 0x108c
ret 0x14
Function at 0x404b60
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1094
call fcn.00426470
mov eax, dword [0x443350]
push ebx
mov dword [esp + 0x1094], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov esi, ecx
je 0x404cd4
mov edx, dword [ebp + 0x10]
cmp edx, ebx
je 0x404cd4
cmp dword [ebp + 0x14], ebx
je 0x404cd4
xor eax, eax
mov word [esp + 0x18], bx
mov ecx, 0x1f
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x98], bx
mov ecx, 0x3ff
lea edi, [esp + 0x9a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x28], 0x1388
mov dword [esp + 0x20], ebx
call fcn.00404930
test eax, eax
je 0x404cd4
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], esi
je 0x404cd4
mov edx, dword [esp + 0xc]
push ebx
push ebx
push 3
push ebx
push ebx
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0xc], edi
je 0x404ccd
mov edx, dword [ebp + 8]
push ebx
push 0x4400007
push ebx
push ebx
push ebx
lea ecx, [esp + 0xac]
push ecx
push edx
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, dword [sym.imp.MSVCR71.dll_wcslen]
mov esi, eax
mov eax, dword [ebp + 0x14]
push 0x20000000
push eax
call ebx
mov ecx, dword [ebp + 0x14]
add esp, 4
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test esi, esi
je 0x404cc2
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [esp + 0x18]
push edx
push 5
push esi
call edi
push 4
lea eax, [esp + 0x18]
push eax
push 6
push esi
call edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push edi
call ebx
add esp, 4
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x109c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404cf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x100c
call fcn.00426470
mov eax, dword [0x443350]
push edi
mov dword [esp + 0x100c], eax
xor eax, eax
xor edx, edx
mov word [esp + 8], dx
mov ecx, 0x1ff
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x808], dx
mov ecx, 0x1ff
lea edi, [esp + 0x80a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x3ff
push eax
call fcn.004017b0
mov ecx, eax
call fcn.0040e440
push str.UserConfig.ini
call fcn.004017b0
mov ecx, eax
call fcn.00401850
push edx
push eax
lea ecx, [esp + 0x14]
push ecx
push str._sUsers_I64d_s
lea edx, [esp + 0x81c]
push 0x3ff
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x1c
lea eax, [esp + 0x808]
push eax
push 1
push str.ExitCurrentRoom
push 0x433624
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x100c]
call fcn.00426448
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408210
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xaf0]
sub eax, dword [esi + 0xaf4]
jns 0x408227
add eax, dword [esi + 0xaec]
test eax, eax
jle 0x408275
mov eax, dword [esi + 0x68]
test eax, eax
je 0x40825c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x408275
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x6c]
mov dword [esi + 0x68], 0
mov dword [eax], 0
push eax
jmp 0x408260
lea ecx, [esi + 0x6c]
push ecx
push 0
push esi
push 0x407590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x68], eax
pop esi
ret

Function at 0x40a670
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1264
call fcn.00426470
mov eax, dword [0x443350]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x1268], eax
push edi
je 0x40a7c3
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
mov ebx, eax
add esp, 4
xor eax, eax
cmp ebx, 4
mov dword [esp + 0x10], ebx
jl 0x40a7e4
mov dword [esp + 0x18], eax
mov ecx, 0x93
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40a6fa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx eax, byte [esp + 0x18]
shr eax, 4
and eax, 1
mov ecx, dword [esp + 0x126c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test ebx, ebx
mov dword [esp + 0xc], eax
jle 0x40a7a5
lea edx, [esp + 0x268]
sub edx, esi
mov ebx, esi
mov dword [esp + 0x14], edx
jmp 0x40a720
mov edx, dword [esp + 0x14]
lea ecx, [ecx]
mov cx, word [ebx]
cmp cx, 0x5c
je 0x40a72f
cmp cx, 0x2f
jne 0x40a791
cmp eax, 2
jl 0x40a791
cmp word [ebx - 2], 0x3a
je 0x40a791
lea ecx, [eax + eax]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov word [edx + ebx], 0
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40a783
push 0
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40a78a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc eax
add ebx, 2
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x40a719
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40a7d8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a7df
xor eax, eax
mov ecx, dword [esp + 0x126c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0x126c]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b100
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esp
push esi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040f100
lea eax, [esi + 4]
push eax
mov ecx, edi
call fcn.0040f0a0
push 0x15
lea ecx, [esi + 6]
push ecx
mov ecx, edi
call fcn.0040f330
push 0x15
lea edx, [esi + 0x30]
push edx
mov ecx, edi
call fcn.0040f330
lea eax, [esi + 0x5c]
push eax
mov ecx, edi
call fcn.0040f100
lea ecx, [esi + 0x60]
push ecx
mov ecx, edi
call fcn.0040f040
lea edx, [esi + 0x62]
push edx
mov ecx, edi
call fcn.0040f0a0
push 0x41
lea eax, [esi + 0x64]
push eax
mov ecx, edi
call fcn.0040f330
push 0x41
lea ecx, [esi + 0xe6]
push ecx
mov ecx, edi
call fcn.0040f330
push 0x41
lea edx, [esi + 0x168]
push edx
mov ecx, edi
call fcn.0040f330
push 0x21
lea eax, [esi + 0x1ea]
push eax
mov ecx, edi
call fcn.0040f1c0
lea ecx, [esi + 0x20b]
push ecx
mov ecx, edi
call fcn.0040f040
lea edx, [esi + 0x210]
push edx
mov ecx, edi
call fcn.0040f150
lea eax, [esi + 0x218]
push eax
mov ecx, edi
call fcn.0040f100
push 0x21
push 0x20
lea ecx, [esi + 0x21c]
push ecx
mov ecx, edi
call fcn.0040f2c0
push 0x21
push 0x20
lea edx, [esi + 0x23d]
push edx
mov ecx, edi
call fcn.0040f2c0
lea eax, [esi + 0x260]
push eax
mov ecx, edi
call fcn.0040f150
push 7
lea ecx, [esi + 0x268]
push ecx
mov ecx, edi
call fcn.0040f330
push 0x60
push 0x5f
add esi, 0x276
push esi
mov ecx, edi
call fcn.0040f2c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ca30
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40e440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7e0
mov eax, dword [0x443350]
push esi
push edi
mov dword [esp + 0x7e4], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x1f3
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40e4bd
lea ecx, [esp + 0xc]
push ecx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40e4b3
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.MSVCR71.dll_wcslen]
lea edx, [esp + 0x10]
push edx
call edi
add esp, 4
test eax, eax
jne 0x40e519
push 0x3e8
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0040e2e0
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
call edi
add esp, 4
dec eax
js 0x40e519
mov cx, word [esp + eax*2 + 0x10]
cmp cx, 0x5c
je 0x40e502
cmp cx, 0x2f
jne 0x40e50f
inc esi
cmp esi, 2
mov word [esp + eax*2 + 0x10], 0
jge 0x40e519
dec eax
mov word [esp + eax*2 + 0x12], 0
jns 0x40e4f1
lea edx, [esp + 0x10]
push str.QXiu_Files
push edx
call dword [sym.imp.MSVCR71.dll_wcscat]
lea eax, [esp + 0x18]
push eax
call edi
mov ecx, dword [ebp + 8]
add esp, 0xc
test ecx, ecx
je 0x40e558
mov edx, dword [ebp + 0xc]
cmp eax, edx
jg 0x40e558
push edx
lea edx, [esp + 0x14]
push edx
push ecx
call dword [sym.imp.MSVCR71.dll_wcsncpy]
lea eax, [esp + 0x1c]
push eax
call edi
add esp, 0x10
mov ecx, dword [esp + 0x7e4]
call fcn.00426448
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4115b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1008
call fcn.00426470
mov eax, dword [0x443350]
push esi
push edi
mov dword [esp + 0x100c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x1ff
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push 0x3e8
push eax
call fcn.004017b0
mov ecx, eax
call fcn.0040e440
mov word [esp + 0x808], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x80a]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x80c]
push 0x435a5c
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCR71.dll_swprintf]
lea eax, [esp + 0x814]
push eax
call fcn.0040a670
mov ecx, dword [esi + 4]
add esp, 0x10
test ecx, ecx
je 0x411652
mov edx, dword [ecx]
push 0
lea eax, [esp + 0xc]
push eax
call dword [edx]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x411664
mov edx, dword [ecx]
push 0
lea eax, [esp + 0xc]
push eax
call dword [edx]
mov eax, dword [esi + 4]
test eax, eax
je 0x411684
lea ecx, [esi + 0x18]
push ecx
push 0
push esi
push 0x4115a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x100c]
mov eax, 1
call fcn.00426448
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4116c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431a50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1014
call fcn.00426470
mov eax, dword [0x443350]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x814], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x812]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
stosw word es:[edi], ax
lea eax, [ebp - 0x814]
push 0x3e8
push eax
mov dword [ebp - 0x1024], esi
call fcn.004017b0
mov ecx, eax
call fcn.0040e3b0
lea ecx, [ebp - 0x814]
push 0x435acc
push ecx
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x41179c
xor eax, eax
mov word [ebp - 0x1014], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x1012]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1014]
push str.LoadPlugin_LoadLibrary__s
push ecx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
lea edx, [ebp - 0x1014]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x4118b1
push str.GetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x4117bd
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x4118b1
lea ecx, [ebp - 0x1020]
push ecx
push 0x4337e8
push 0x433838
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1020], ebx
call eax
cmp eax, ebx
jne 0x4117e8
mov edx, dword [ebp - 0x1020]
mov dword [esi + 8], edx
jmp 0x411823
push ebx
call fcn.00418700
add esp, 4
cmp al, bl
je 0x411823
push 0x38
push str..ProxyHttpUpLoadLibProxy.cpp
push ebx
call fcn.00418720
add esp, 0xc
push 0x433fc8
push eax
call fcn.00418950
add esp, 8
jmp 0x411823
mov eax, dword [esi + 8]
lea edx, [ebp - 0x1018]
push edx
mov dword [ebp - 0x1018], ebx
mov ecx, dword [eax]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1018]
cmp eax, ebx
je 0x411878
mov edi, dword [eax]
call fcn.004017b0
mov ecx, eax
call fcn.0040e5e0
push eax
mov eax, dword [ebp - 0x1018]
push eax
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1018]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov esi, dword [esi + 8]
lea ecx, [ebp - 0x101c]
push ecx
push 0x4336e8
mov dword [ebp - 0x101c], ebx
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebp - 0x101c]
cmp eax, ebx
je 0x4118ac
push eax
push 0x4336e8
mov ecx, 0x443880
call fcn.00411fc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00426448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413110
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
mov eax, 1
cmp ecx, eax
jl 0x41319c
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41319c
test dword [esi + 0x28], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x41314f
call edi
sub eax, dword [esi + 0x2c]
cmp eax, 0x1388
jb 0x41314f
call edi
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
mov eax, dword [esi + 0x28]
test al, 2
jne 0x41319b
call edi
sub eax, dword [esi + 0x30]
cmp eax, 0x1388
jb 0x41319b
call fcn.004017b0
mov ecx, eax
call fcn.00401850
test edx, edx
jl 0x413196
jg 0x413178
test eax, eax
jbe 0x413196
mov ecx, dword [esi + 0x14]
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [esi + 0x24]
push ebp
mov ebp, dword [esi + 0x20]
push ebp
mov ebp, dword [esi + 0x1c]
push ebp
mov ebp, dword [esi + 0x18]
push ebp
push edx
push eax
call dword [ebx + 0x18]
pop ebp
pop ebx
call edi
mov dword [esi + 0x30], eax
pop edi
pop esi
ret