joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034a0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4de8ab
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x484], eax
push ebp
push esi
push edi
mov eax, dword [0x526a28]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
xor esi, esi
push ecx
lea edx, [esp + 0x34]
push edx
push 0x518d5c
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.SHELL32.dll_SHGetDiskFreeSpaceExW]
test eax, eax
je 0x40364c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [esp + 0x18], eax
cmp dword [edi + 0x33c], eax
jb 0x403632
call fcn.00406820
push 0x24c
lea edx, [esp + 0x44]
push esi
push edx
mov dword [esp + 0x48], esi
call fcn.004344a0
add esp, 0xc
call fcn.0041075a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x403571
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x3c]
push ecx
push str.C:Documents_and_Settings.
mov dword [esp + 0x4a8], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test byte [esp + 0x3c], 0x10
je 0x4035d1
cmp word [esp + 0x68], 0x2e
je 0x4035d1
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x18]
push str.C:Documents_and_Settings_sLocal_SettingsTemporary_Internet_Files
push eax
call fcn.00404780
mov edi, dword [esp + 0x20]
add esp, 0xc
mov ecx, edi
call fcn.00406900
lea ecx, [esp + 0x3c]
push ecx
push esi
call ebp
test eax, eax
jne 0x4035a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403607
lea ecx, [esp + 0x28c]
call fcn.00406900
lea eax, [edi - 0x10]
mov dword [esp + 0x4a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40362e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, 5
ja 0x40364c
mov ecx, dword [esp + 0x28]
push 0x30
push 0x518e2c
push 0x518e34
call fcn.00413a3a
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x484]
xor ecx, esp
call fcn.00431c7a
add esp, 0x494
ret
Function at 0x403680
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x224
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x220], eax
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
push 0x100
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 4]
cmp dword [esp + 0x1c], eax
jg 0x4036e7
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 8]
cmp dword [esp + 0x20], ecx
jle 0x403752
push ebx
push 0
push 0
push 0
push 0
push 0
lea edx, [esi + 0x1444]
push edx
lea ecx, [esi + 0x1a08]
mov dword [esi + 0x1a00], 0
call fcn.0041c43e
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
add eax, 0xfffffda8
cdq
push 1
sub eax, edx
push 0x258
sar eax, 1
push 0x320
push eax
lea eax, [ebx - 0x320]
cdq
sub eax, edx
sar eax, 1
push eax
mov ecx, esi
call fcn.00411844
push 5
mov ecx, esi
call fcn.00411884
pop ebx
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, esp
call fcn.00431c7a
add esp, 0x224
ret

Function at 0x403900
Capabilities:
Find taskbar

Disassembly:
push edi
push 0x3b8
lea edi, [esi + 0x1648]
push 0
push edi
call fcn.004344a0
add esp, 0xc
push 0
push str.Shell_TrayWnd
mov dword [edi], 0x3b8
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [esi + 0x164c], eax
mov dword [esi + 0x1650], 0
mov dword [esi + 0x1654], 0x17
call fcn.004103d2
call fcn.004103d2
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x7f
mov dword [esi + 0x165c], eax
push 0x518ed0
lea eax, [esi + 0x1660]
push eax
call edi
push 0xff
push 0x518ed8
lea ecx, [esi + 0x1768]
push ecx
call edi
push 0x3f
push 0x518f04
lea edx, [esi + 0x196c]
push edx
call edi
mov dword [esi + 0x1650], 0x80
mov dword [esi + 0x1968], 0x61a8
mov dword [esi + 0x1760], 2
mov dword [esi + 0x1764], 0
mov dword [esi + 0x19ec], 0x10
pop edi
ret
Function at 0x4039d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea edi, [ebp - 0x74]
mov esi, edi
call fcn.00401bd0
mov ecx, edi
call fcn.00403ba0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call fcn.00401000
add esp, 4
cmp dword [esp + 0x14], 1
lea ebx, [edi + 0x1b00]
jne 0x403b15
push 0x518958
call fcn.004053d0
add esp, 4
call fcn.00401e10
call fcn.00401bd0
mov ecx, edi
call fcn.00401f60
push edi
call fcn.004026a0
call fcn.00402740
call fcn.00402810
call fcn.00402a90
call fcn.00402b60
call fcn.00403870
call fcn.00402d10
call fcn.00402ea0
call fcn.00402fc0
mov ecx, edi
call fcn.00403170
lea esi, [ebp + 0xbd0]
call fcn.00407850
push str.18.
lea ebx, [ebp + 0x1a8c]
call fcn.004053d0
add esp, 4
push 0x518f1c
push 0x85
mov eax, str.C:WindowsSYSTEM32VPClient_setwallpager.exe
call fcn.00405690
push 0x44
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.004344a0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.C:WindowsSYSTEM32VPClient_setwallpager.exe
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp + 0x1990], 0
jne 0x403afd
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004034a0
push 0x1388
call esi
cmp dword [ebp + 0x1990], 0
je 0x403ae6
cmp dword [edi + 0x1a04], 0
je 0x403b2a
mov ecx, edi
call fcn.00414e8f
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x518964
call fcn.004053d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x20]
push 0
push 0x2710
push 3
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
mov ecx, edi
call fcn.00411884
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403ba0
Capabilities:
Create raw socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
sub esp, 0x234
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xa8]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
mov ecx, 2
push eax
push ecx
mov dword [esp + 0xa0], eax
push ecx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov word [esp + 0xa4], cx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x10], eax
push 3
lea eax, [esi + 0xb0]
lea edx, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.00404240
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp eax, edx
je 0x403c46
push eax
call fcn.00431fb7
add esp, 4
movzx eax, word [esi + 0xd0]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x80
lea ebp, [esi + 0x1d38]
push 0
push ebp
mov word [esp + 0xa6], ax
call fcn.004344a0
mov dword [esi + 0x1db8], 0
mov byte [ebp], 0
mov ebx, 1
add dword [esi + 0x1db8], ebx
mov eax, dword [esi + 0x1db8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x403cb6
cmp eax, 0x4004
jb 0x403ca9
mov dword [esi + 0x1db8], 0xffffffff
jmp 0x403cb6
mov byte [eax + esi + 0x1d38], bl
add dword [esi + 0x1db8], ebx
mov edi, str.file.img
call fcn.00403d80
mov eax, dword [esi + 0x1db8]
cmp eax, 0xffffffff
je 0x403cec
cmp eax, 0x4004
jb 0x403cde
mov dword [esi + 0x1db8], 0xffffffff
jmp 0x403cec
mov byte [eax + esi + 0x1d38], 0
add dword [esi + 0x1db8], ebx
mov edi, str.octet
call fcn.00403d80
mov eax, dword [esi + 0x1db8]
cmp eax, 0xffffffff
je 0x403d22
cmp eax, 0x4004
jb 0x403d14
mov dword [esi + 0x1db8], 0xffffffff
jmp 0x403d22
mov byte [eax + esi + 0x1d38], 0
add dword [esi + 0x1db8], ebx
mov edx, dword [esi + 0x1db8]
mov edi, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x9c]
push ecx
push 0
push edx
push ebp
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x518f98
lea ebx, [esi + 0x1b00]
call fcn.004053d0
mov ecx, dword [esp + 0x240]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00431c7a
add esp, 0x234
ret

Function at 0x404540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040de12
Function at 0x4048e0
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 0x4048f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404934
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404930
lea ebx, [ebx]
cmp esi, eax
jae 0x404934
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404920
cmp esi, eax
jb 0x40493a
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 0x405220
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4deaf0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push esi
push edi
mov eax, dword [0x526a28]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x1c], ebp
call fcn.0041075a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405273
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x2c], 0
call fcn.0041075a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4052a4
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push str.c:windowslog_vpclient.log
lea esi, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.004072c0
mov edi, eax
push str.c:windowslog_vpclient.log
lea esi, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.00407260
mov byte [esp + 0x34], 3
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x20]
push 0x518688
push eax
call fcn.00404780
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40531e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40535b
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, str.c:windowslog_vpclient.log
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405363
sub eax, edx
sar eax, 1
push eax
push str.c:windowslog_vpclient.log
mov ecx, ebp
call fcn.00404ce0
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00431c7a
add esp, 0x20
ret 4
Function at 0x4053d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4decbc
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push esi
push edi
mov eax, dword [0x526a28]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.00432414
mov dword [esp + 0x2c], eax
add esp, 4
lea eax, [esp + 0x28]
push eax
lea esi, [esp + 0x28]
mov dword [esp + 0x30], edx
call fcn.00404f40
mov dword [esp + 0xc0], 0
mov eax, dword [eax]
push 3
lea ecx, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
call fcn.00404240
lea edx, [esp + 0xc]
mov byte [esp + 0xc0], 1
mov ecx, dword [esp + 0x30]
push edx
call fcn.00408f70
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
cmp eax, ecx
je 0x40547b
push eax
call fcn.00431fb7
add esp, 4
mov byte [esp + 0xc0], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4054a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
call fcn.0043389d
mov esi, eax
inc esi
push esi
call fcn.0040b65c
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push ecx
push esi
push esi
push edi
call fcn.00433a8c
mov eax, dword [ebx]
add esp, 0x14
push 0x3001
push eax
lea ecx, [esp + 0x1c]
call fcn.0041a8ad
push 2
mov byte [esp + 0xc4], 5
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x28]
push 0
push 0
lea ecx, [esp + 0x20]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0041a012
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405514
sub eax, ecx
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.0041a012
push 2
push 0x5192cc
lea ecx, [esp + 0x1c]
call fcn.0041a012
lea ecx, [esp + 0x14]
call fcn.0041a276
push edi
call fcn.0040b651
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
mov byte [esp + 0xc0], 4
call fcn.0041a3b7
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405690
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4056bf
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
movzx edx, word [esp + 0xc]
push ebx
push edi
push ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
pop ecx
ret
Function at 0x405710
Capabilities:
Get file size

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 7
push 0x80
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, 0xffffffff
jne 0x405751
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x44]
xor edx, edx
mov dword [ecx], eax
div ebp
mov esi, eax
add esi, 2
shl esi, 4
push esi
call fcn.00433afb
add esp, 4
mov ebx, eax
xor eax, eax
push eax
lea edx, [esp + 0x30]
push edx
push esi
push ebx
push 8
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
push 0x90073
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40585c
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
lea eax, [edx + ebp - 1]
xor edx, edx
div ebp
mov ecx, dword [esp + 0x40]
lea edx, [eax*8]
push edx
mov dword [ecx], eax
call fcn.00433afb
mov ecx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
xor edx, edx
add esp, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
cmp eax, edx
jbe 0x40584c
add ebx, 0x10
mov eax, dword [ebx]
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
sub eax, ecx
mov ecx, dword [ebx + 4]
sbb ecx, ebp
mov ebp, eax
or ebp, ecx
je 0x40582d
mov ebp, dword [esp + 0x40]
mov ebp, dword [ebp]
mov dword [esp + 0x24], ebp
cmp dword [esp + 0x24], edx
jbe 0x405868
mov ebp, dword [esp + 0x14]
add eax, 0xffffffff
mov dword [ebp + edx*8], esi
mov dword [ebp + edx*8 + 4], edi
adc ecx, 0xffffffff
inc edx
add esi, 1
mov ebp, eax
adc edi, 0
or ebp, ecx
jne 0x405808
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx]
mov ebp, dword [ebx + 4]
inc eax
add ebx, 0x10
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x28]
jb 0x4057e8
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push ebx
call fcn.00431fb7
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x1c]
push eax
call fcn.00431fb7
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x405b50
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
sub esp, 0x42c
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x424], eax
push 0
push 0
push 0
push 0
push 0x100
lea eax, [esp + 0x234]
push eax
push 3
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.0043346e
add esp, 0x24
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00432045
add esp, 0xc
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.0043451a
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405be8
push eax
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x405c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4d3
je 0x405c36
cmp eax, 2
je 0x405c36
cmp eax, 3
je 0x405c36
push esi
mov ecx, edi
call fcn.00405890
add esp, 4
test eax, eax
je 0x405c36
mov eax, 1
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.00431c7a
add esp, 0x42c
ret
mov ecx, dword [esp + 0x424]
xor ecx, esp
xor eax, eax
call fcn.00431c7a
add esp, 0x42c
ret
Function at 0x406820
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
xor ebp, ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x406855
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040b65c
add esp, 4
lea edx, [esp + 0x10]
push edx
mov esi, eax
push esi
push ebp
call edi
mov edi, eax
cmp edi, ebp
je 0x4068e6
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
lea esp, [esp]
test dword [esi + 0xc], 0x100000
jne 0x4068a0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
add dword [esp + 0x14], 1
adc ebp, 0
jmp 0x4068a0
push esi
call fcn.0040b651
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
mov dword [esp + 0x1c], 0
call ebx
test eax, eax
jne 0x4068ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4068f3
mov edx, dword [esp + 0x10]
push edx
call fcn.0040b65c
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x406880
test esi, esi
je 0x4068f3
push esi
call fcn.0040b651
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4073a0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x407418
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0x51846c
push eax
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4073f6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
lea ecx, [esp + 8]
push ecx
push 1
push esi
mov dword [esp + 0x14], 0x518474
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
pop ecx
ret