joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4539b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4539db
xor eax, eax
pop edi
pop ecx
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
inc esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x453a16
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, ebx
pop ebx
pop edi
pop ecx
ret

Function at 0x4541a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4541b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4541f4
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4541f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4541f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4541e0
cmp esi, eax
jb 0x4541fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4545b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5dd698
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4545f6
and al, 0x10
xor cl, cl
cmp cl, al
sbb edx, edx
neg edx
jne 0x4546bb
push ebx
lea ecx, [esp + 0x14]
call fcn.00454510
mov esi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x20], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x454611
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x454634
cmp word [esi + eax*2 - 2], 0x5c
jne 0x454634
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push 0x5c
push esi
call fcn.0057a816
add esp, 8
push esi
test eax, eax
jne 0x454664
call fcn.00579478
add esp, 4
mov eax, 0xf
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
xor edx, edx
mov word [eax], dx
call fcn.004545b0
mov edi, eax
add esp, 4
test edi, edi
je 0x454695
push esi
call fcn.00579478
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4546b2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x454677
push esi
call fcn.00579478
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x454770
Capabilities:
Get common file path

Disassembly:
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi + 0x140c], eax
je 0x4547a5
mov dword [edi + 0x10b4], 0x3ed
mov dword [edi + 0x10b8], 0
mov dword [edi + 0x10bc], 0
xor eax, eax
pop edi
ret 4
mov eax, dword [esp + 8]
mov ecx, dword [eax]
cmp word [ecx], 0
push esi
lea esi, [edi + 0x10c0]
mov ecx, esi
je 0x4547c2
push eax
call fcn.00453e50
jmp 0x4547da
push 0x104
call fcn.00453dc0
mov edx, dword [esi]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
call fcn.00454070
mov esi, dword [esi]
push esi
call fcn.004545b0
add esp, 8
pop esi
test eax, eax
je 0x454810
mov dword [edi + 0x10b8], eax
mov dword [edi + 0x10b4], 0x3ea
mov dword [edi + 0x10bc], 0
xor eax, eax
pop edi
ret 4
mov eax, 1
pop edi
ret 4
Function at 0x454c90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5dd778
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.Cabinet::CExtract.0
mov dword [esp + 0x14], 5
call fcn.00454290
test eax, eax
je 0x454cf2
mov eax, dword [0x66da90]
cmp eax, 0xffffffff
je 0x454cf2
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x454cf2
mov eax, dword [0x66da90]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov eax, dword [esi + 0x1108]
test eax, eax
je 0x454d03
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esi + 0x10fc]
test eax, eax
je 0x454d16
push eax
call fcn.00506f70
add esp, 4
mov ecx, dword [esi + 0x10dc]
push ecx
call fcn.00579478
mov eax, dword [esi + 0x10c0]
add esp, 4
test eax, eax
je 0x454d38
push eax
call fcn.00579478
add esp, 4
mov dword [esi + 0x10c0], 0
mov edx, dword [esi + 0x5c]
push edx
call fcn.00579478
mov eax, dword [esi + 0x54]
push eax
call fcn.00579478
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.00506f70
mov edx, dword [esi + 0x50]
push edx
call fcn.00506f70
mov eax, dword [esi + 0x14]
push eax
call fcn.00579478
mov ecx, dword [esi + 0xc]
push ecx
call fcn.00579478
add esp, 0x18
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x456950
Capabilities:
Initialize winhttp library

Disassembly:
push 0xffffffffffffffff
push 0x5ddaa8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor edi, edi
mov dword [esi], vtable.RefCountedThreadSafe_class_CHttpAsynPostImp_class_WindowMsgQueue__.0
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.00462080
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi], vtable.CHttpAsynPostImp_class_WindowMsgQueue_.1.0
mov dword [ebx], vtable.CHttpAsynPostImp_class_WindowMsgQueue_.0
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], vtable.WindowMsgQueue.0
mov dword [esi + 0x58], ecx
mov dword [esi + 0x5c], edx
push 0x10000000
mov dword [esi + 0x84], 7
mov dword [esi + 0x80], edi
push edi
push edi
xor eax, eax
mov word [esi + 0x70], ax
push edi
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_2000_
mov dword [esi + 0x88], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x8c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x60], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x457970
Capabilities:
Encode data using xor
Hash data with crc32
Read file via mapping

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x8000027
push 3
push ebx
push 1
push SysReAllocStringLen
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [eax], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, 0xffffffff
jne 0x4579bf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0xc], eax
jmp 0x457ae7
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00457910
add esp, 8
test al, al
jne 0x4579ee
mov dword [esp + 0xc], 0x18
jmp 0x457ae7
mov esi, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, esi
or eax, ebp
je 0x457ae6
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x457a29
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x457ae6
test ebp, ebp
jl 0x457ae6
jg 0x457a44
test esi, esi
jbe 0x457ae6
jmp 0x457a44
mov esi, dword [esp + 0x18]
test ebp, ebp
jg 0x457a52
jl 0x457a57
cmp esi, 0xa00000
jb 0x457a57
mov esi, 0xa00000
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push esi
push ecx
push ebx
push 4
mov edx, ebx
push eax
sar edx, 0x1f
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edx, esi
mov edi, eax
test esi, esi
jbe 0x457ab1
jmp 0x457a80
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
movzx ebp, byte [edi]
mov ebx, ecx
and ebx, 0xff
xor ebx, ebp
shr ecx, 8
xor ecx, dword [ebx*4 + 0x643aa8]
mov ebx, dword [esp + 0x30]
dec edx
inc edi
mov dword [ebx], ecx
test edx, edx
ja 0x457a80
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
xor eax, eax
add dword [esp + 0x20], esi
adc ebx, eax
sub dword [esp + 0x18], esi
mov dword [esp + 0x24], ebx
sbb ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
jg 0x457a40
jl 0x457ae2
cmp dword [esp + 0x18], eax
ja 0x457a40
mov edi, dword [esp + 0x2c]
pop ebp
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test edi, edi
je 0x457af4
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x457aff
push eax
call esi
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
pop edi
not edx
pop esi
mov dword [eax], edx
mov eax, dword [esp + 4]
pop ebx
add esp, 0x18
ret 8

Function at 0x457b20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
mov edx, esi
mov esi, dword [esp + 0xc]
mov dword [esi], 0xffffffff
je 0x457b63
push ebx
push edi
mov edi, edi
mov ecx, dword [esi]
movzx ebx, byte [edx]
mov edi, ecx
and edi, 0xff
xor edi, ebx
shr ecx, 8
xor ecx, dword [edi*4 + 0x643aa8]
dec eax
inc edx
mov dword [esi], ecx
test eax, eax
ja 0x457b40
pop edi
pop ebx
xor eax, eax
pop esi
ret 8
Function at 0x459170
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5ddc68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
lea esi, [edi + edi + 2]
cmp esi, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], edi
jge 0x4591f7
lea eax, [esi + esi*4]
fld qword [ebx + eax*8 - 0x28]
lea eax, [ebx + eax*8]
fcomp qword [eax]
fnstsw ax
test ah, 0x41
jne 0x4591cb
dec esi
lea ecx, [esi + esi*4]
fld qword [ebx + ecx*8]
lea eax, [ebx + ecx*8]
lea edx, [edi + edi*4]
push 0xffffffffffffffff
fstp qword [ebx + edx*8]
lea ecx, [ebx + edx*8]
push 0
add eax, 8
push eax
add ecx, 8
call fcn.00439be0
mov edi, esi
lea esi, [esi + esi + 2]
cmp esi, ebp
jl 0x4591b7
jne 0x459220
lea eax, [ebp + ebp*4]
fld qword [ebx + eax*8 - 0x28]
lea eax, [ebx + eax*8 - 0x28]
push 0xffffffffffffffff
lea ecx, [edi + edi*4]
lea ecx, [ebx + ecx*8]
push 0
fstp qword [ecx]
add eax, 8
push eax
add ecx, 8
call fcn.00439be0
lea edi, [ebp - 1]
fld qword [esp + 0x38]
sub esp, 0x28
mov eax, esp
mov dword [esp + 0x40], esp
fstp qword [eax]
lea ecx, [eax + 8]
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x70]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push eax
mov word [ecx + 4], dx
call fcn.00439be0
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push ebx
call fcn.00458b10
add esp, 0x34
cmp dword [esp + 0x58], 8
jb 0x459276
mov edx, dword [esp + 0x44]
push edx
call fcn.00506f70
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x459330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ddcb8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
fld qword [esi]
push 0xffffffffffffffff
fstp qword [eax]
push 0
lea ecx, [esi + 8]
push ecx
lea ecx, [eax + 8]
mov dword [esp + 0x20], 0
call fcn.00439be0
fld qword [esp + 0x28]
sub esp, 0x28
mov eax, esp
mov dword [esp + 0x30], esp
fstp qword [eax]
lea ecx, [eax + 8]
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x60]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push eax
mov word [ecx + 4], dx
call fcn.00439be0
mov ecx, dword [esp + 0x48]
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push 0
push esi
call fcn.00459170
add esp, 0x34
cmp dword [esp + 0x48], 8
jb 0x4593e0
mov edx, dword [esp + 0x34]
push edx
call fcn.00506f70
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x45b820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45b84c
mov ecx, dword [esp + 8]
test al, 0x10
je 0x45b843
cmp ecx, 1
jne 0x45b843
mov eax, 1
ret
test eax, eax
je 0x45b84c
test cl, 2
jne 0x45b83d
xor eax, eax
ret

Function at 0x45b850
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 0xc]
mov esi, eax
mov ecx, dword [esi]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop esi
pop ecx
ret

Function at 0x45b880
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
push 0x5f2da8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x45b8a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea ecx, [esp]
push ecx
push 0x5fad28
xor eax, eax
push 1
push eax
push 0x5fad48
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45b8ce
xor eax, eax
add esp, 8
ret
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push ecx
push eax
call edx
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x5fad38
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x45b8c8
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
add esp, 8
ret

Function at 0x45b940
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push 0x104
push 0
push 0x66d478
call fcn.00578cb0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, dword [esi]
push ecx
push 0x66d478
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push 0x66d478
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp word [eax*2 + 0x66d478], 0x5c
lea eax, [eax*2 + 0x66d478]
pop esi
je 0x45b9a9
lea ecx, [ecx]
sub eax, 2
cmp word [eax], 0x5c
jne 0x45b9a0
xor edx, edx
mov word [eax], dx
mov eax, 0x66d478
pop ecx
ret
Function at 0x45b9c0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push 0x104
push 0
push 0x66d680
call fcn.00578cb0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, dword [esi]
push ecx
push 0x66d680
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, 0x66d680
pop esi
pop ecx
ret

Function at 0x45ba10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x618], eax
push 0x24
push 0
push 0x5f2e10
push 0x5f2de8
call fcn.004c21a0
add esp, 0x10
cmp eax, 6
jne 0x45bae4
push 0
push 0x10
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp word [esp + eax*2 - 2], 0x5c
jne 0x45ba72
push 0x5f2dd0
lea edx, [esp + 4]
push edx
jmp 0x45ba7c
push 0x5f2db4
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x104
lea ecx, [esp + 0x414]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
call fcn.0045b940
push eax
lea edx, [esp + 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [esp + 0x208]
push eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x418]
push edx
call fcn.0045b8a0
add esp, 0xc
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.005792fc
add esp, 0x61c
ret
mov ecx, dword [esp + 0x618]
xor ecx, esp
xor eax, eax
call fcn.005792fc
add esp, 0x61c
ret

Function at 0x45bb00
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x214
mov eax, dword [0x65f810]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [str.www.duowan.com]
mov ecx, dword [0x5f2e24]
mov edx, dword [0x5f2e28]
push esi
push 0x71
mov dword [esp + 0x1a0], edx
mov dword [esp + 0x198], eax
mov ax, word [0x5f2e2c]
mov dword [esp + 0x19c], ecx
mov cl, byte [0x5f2e2e]
lea edx, [esp + 0x1a7]
push 0
push edx
mov word [esp + 0x1ac], ax
mov byte [esp + 0x1ae], cl
call fcn.00578cb0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x194]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.005792fc
add esp, 0x214
ret
Function at 0x45bbf0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf9f2
add esp, 4
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov dx, word [esp + 0x34]
xor eax, eax
mov word [esi + edi*2], ax
xor ecx, ecx
mov word [esi + edi*2 + 2], cx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x28], ax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
mov word [esp + 0x20], dx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebp
add esp, 0x20
ret
Function at 0x45c150
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5ddef0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65f810]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x3c], 1
neg ecx
or ecx, eax
push ecx
call fcn.004cf9f2
mov esi, eax
mov eax, dword [esp + 0x7c]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf9f2
mov edi, eax
mov eax, dword [esp + 0x64]
lea ecx, [eax + eax + 4]
push ecx
push 0
push esi
call fcn.00578cb0
mov edx, dword [esp + 0x8c]
lea eax, [edx + edx + 4]
push eax
push 0
push edi
call fcn.00578cb0
mov eax, dword [esp + 0x6c]
add esp, 0x20
cmp dword [esp + 0x60], 8
jae 0x45c1f8
lea eax, [esp + 0x4c]
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push eax
push esi
call ebx
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x45c211
lea eax, [esp + 0x68]
push eax
push edi
call ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 0x2c], eax
mov ecx, 0x214
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x30], ax
push edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov word [esp + 0x28], cx
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], 0x5f2e74
call ebx
push 0
push 0
push 3
push SysReAllocString
mov ebp, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [esp + 0x14]
mov eax, 0x14
push ecx
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0
mov word [esp + 0x28], ax
call ebx
push esi
call fcn.00579478
push edi
call fcn.00579478
xor edi, edi
add esp, 8
lea esi, [edi + 8]
cmp ebp, edi
je 0x45c30a
cmp dword [esp + 0x60], esi
jb 0x45c2ce
mov edx, dword [esp + 0x4c]
push edx
call fcn.00506f70
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], ax
cmp dword [esp + 0x7c], esi
jb 0x45c2f4
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00506f70
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x26], edi
jne 0x45c2bb
cmp dword [esp + 0x60], esi
jb 0x45c323
mov edx, dword [esp + 0x4c]
push edx
call fcn.00506f70
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], ax
cmp dword [esp + 0x7c], esi
jb 0x45c349
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00506f70
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret