joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bbeb
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x4385d4
call fcn.00422682
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp + 0x10], eax
cmp byte [ebx + 0x40], cl
mov byte [ebx + 0x10], 1
cmovne ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.0040219e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fe1
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0041bb48
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41bc68
cmp dword [ebp + 0xc], eax
mov ecx, 0x2ee2
cmovne esi, ecx
test esi, esi
jne 0x41bc80
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x41bc7e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402471
mov eax, esi
call fcn.0042265c
ret 0x10

Function at 0x41bc95
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], 0
push dword [esp + 0x20]
mov dword [edi + 0x34], 3
push dword [esp + 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x41bd2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41bd35
jmp 0x41bd0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41bd11
push ebx
lea ecx, [edi + 0xc]
call fcn.0041fe21
lea ecx, [edi + 0xc]
call fcn.0041fe0a
test al, al
jne 0x41bd23
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41bcdf
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x41bd35
test eax, eax
jle 0x41bd33
mov dword [ebp], eax
jmp 0x41bd33
mov eax, 0xe0000008
jmp 0x41bd35
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x41bd3c
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push dword [edi + 0x68]
lea ebx, [edi + 0x38]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebp, dword [esp + 0x18]
xor eax, eax
push eax
push eax
push ebp
push dword [esp + 0x20]
mov byte [edi + 0x41], al
mov dword [edi + 0x34], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x41bdcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41bdd7
jmp 0x41bdae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41bdb3
push ebx
lea ecx, [edi + 0xc]
call fcn.0041fe21
lea ecx, [edi + 0xc]
call fcn.0041fe0a
test al, al
jne 0x41bdc5
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x41bd81
cmp dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
je 0x41bdd7
test eax, eax
jle 0x41bdd5
mov dword [ebp], eax
jmp 0x41bdd5
mov eax, 0xe0000008
jmp 0x41bdd7
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x41c003
Capabilities:
Connect network resource

Disassembly:
push 0x40
mov eax, 0x43865a
call fcn.00422682
mov esi, ecx
mov dword [ebp - 0x24], esi
call fcn.0040219e
push eax
lea ecx, [ebp - 0x14]
call fcn.00401fe1
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040219e
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fe1
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
mov edi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.00407369
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
test ecx, ecx
je 0x41c061
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp - 0x18]
cmp dword [ebp + 0x10], 0
je 0x41c0b8
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
push 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.00423750
xor eax, eax
mov dword [ebp - 0x3c], ebx
inc eax
add esp, 0xc
mov dword [ebp - 0x48], eax
cmp dword [esi - 4], eax
jle 0x41c09f
push dword [esi - 0xc]
lea ecx, [ebp - 0x18]
call fcn.00402489
mov esi, dword [ebp - 0x18]
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
push dword [ebp + 0x14]
mov dword [ebp - 0x30], ebx
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
jne 0x41c0d5
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
call fcn.00407a09
mov edi, eax
pop ecx
test edi, edi
je 0x41c18f
cmp edi, 0x52e
je 0x41c0ee
cmp edi, 0x56
je 0x41c0ee
cmp edi, 0x89a
jne 0x41c19a
push str.Local_Network_Server
lea ecx, [ebp - 0x20]
call fcn.00402742
mov byte [ebp - 4], 3
call fcn.0040219e
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401fe1
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push ebx
call fcn.0041d338
mov ecx, dword [ebp - 0x1c]
mov bl, al
add ecx, 0xfffffff0
call fcn.00402471
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402471
test bl, bl
je 0x41c196
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
cmp dword [eax - 4], 1
jle 0x41c16b
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00402489
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
cmp dword [eax - 4], 1
jle 0x41c188
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00402489
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], eax
xor ebx, ebx
jmp 0x41c064
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
jmp 0x41c198
mov ebx, edi
mov edi, ebx
lea ecx, [esi - 0x10]
call fcn.00402471
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402471
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402471
mov eax, edi
call fcn.0042265c
ret 0x18
Function at 0x41ced1
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00423750
push esi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.00423750
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
add esp, 0x18
mov dword [ebp - 0x3c], esi
push ecx
push edi
push edi
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop edi
pop esi
test eax, eax
jne 0x41cf19
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41cf23
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
xor eax, eax
leave
ret 8
Function at 0x41d8d5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x454
mov eax, 0x43888b
call fcn.004226b6
mov ebx, 0x446df8
xor edi, edi
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], edi
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], edi
call fcn.00414fcc
lea eax, [ebp - 0x444]
push eax
push 0x20119
push edi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41dab7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], edi
push eax
push edi
push edi
push str.CurrentMajorVersionNumber
push dword [ebp - 0x444]
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x458], 4
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
push eax
push edi
push edi
push str.CurrentMinorVersionNumber
push dword [ebp - 0x444]
call esi
cmp dword [ebp - 0x44c], edi
jne 0x41d9e1
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push str.CurrentVersion
push dword [ebp - 0x444]
call esi
mov dx, word [ebp - 0x30]
lea ecx, [ebp - 0x30]
mov eax, edi
test dx, dx
je 0x41d9e1
add ecx, 2
inc eax
cmp word [ecx], di
jne 0x41d9ba
cmp eax, 3
jne 0x41d9e1
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x44c], eax
movzx eax, word [ebp - 0x2c]
sub eax, 0x30
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x44c]
mov dword [0x44fd80], eax
mov eax, dword [ebp - 0x450]
mov dword [0x44fd84], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x45c], 0x208
push eax
push edi
push edi
push str.CurrentBuildNumber
push dword [ebp - 0x444]
call esi
test eax, eax
jne 0x41da41
or dword [ebp - 0x454], 0xffffffff
lea edx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x440]
call fcn.004027c7
pop ecx
mov dword [0x44fd88], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push str.CSDVersion
push dword [ebp - 0x444]
call esi
test eax, eax
jne 0x41daa8
push ecx
lea edx, [ebp - 0x238]
mov ecx, 0x44fd90
call fcn.0040289f
mov eax, edi
pop ecx
lea ecx, [ebp - 0x238]
cmp word [ebp - 0x238], ax
je 0x41da98
lea ecx, [ecx + 2]
inc eax
cmp word [ecx], di
jne 0x41da8f
movzx eax, word [ebp + eax*2 - 0x23a]
sub eax, 0x30
mov dword [0x44fd8c], eax
call fcn.004205e0
mov byte [0x44fe95], al
call fcn.0041dad8
cmp dword [ebp - 0x444], 0
mov dword [ebp - 0x448], ebx
je 0x41dad2
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00422671
ret
Function at 0x41ddb3
Capabilities:
Get geographical location

Disassembly:
push 0x14
mov eax, 0x438907
call fcn.00422682
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040219e
push eax
mov ecx, esi
call fcn.00401fe1
push 0
push 0x443010
mov dword [ebp - 4], ebx
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.0040827e
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], eax
jle 0x41de25
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00402489
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.00408430
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00402471
mov eax, esi
call fcn.0042265c
ret

Function at 0x41de75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.00422df0
push 0xffffffffffffffff
push 0x43892a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x44e080]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x18], eax
jne 0x41deca
xor al, al
jmp 0x41df41
mov ecx, eax
call fcn.00404266
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x41df33
mov esi, dword [ebp - 0x10]
call fcn.0040219e
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404770
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
and dword [ebp - 4], ebx
push eax
call fcn.004042a2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov esi, dword [ebp - 0x1c]
inc edi
test ebx, ebx
je 0x41ded3
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.00421c45
add ebp, 0x8004
leave
ret 4
Function at 0x41e13c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4389a6
call fcn.00422682
mov edi, edx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0xc8
push ebx
jmp 0x41e161
add dword [ebp - 0x10], 2
push esi
call fcn.004221b9
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0040b800
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x41e15c
test eax, eax
jne 0x41e25c
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x41e1d1
cmp eax, 2
je 0x41e1d1
cmp eax, 7
je 0x41e1d1
cmp eax, 4
jne 0x41e260
push dword [esi]
push 0x44591c
push dword [ebp + 8]
call fcn.00408430
xor eax, eax
add esp, 0xc
inc eax
jmp 0x41e25e
mov eax, dword [ebp - 0x10]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
jmp 0x41e1e8
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], bx
je 0x41e1e4
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040219e
push eax
push edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00404770
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edi
cmp edi, ecx
je 0x41e253
cmp dword [ecx + 0xc], ebx
jl 0x41e247
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x41e247
mov ecx, edi
call fcn.00404f5e
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.00402471
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x41e253
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.004026cf
mov ecx, edi
call fcn.00402471
mov bl, 1
mov al, bl
mov bl, al
push esi
call fcn.004221b9
pop ecx
mov al, bl
call fcn.0042265c
ret
Function at 0x41f7c3
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
je 0x41f7fc
push 0xe801
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x41f7ec
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f803
cmp dword [esp + 0xc], 0
jne 0x41f7fc
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x41f819
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
mov ecx, edi
push eax
call fcn.0041f81f
xor eax, eax
pop edi
ret 0x10
Function at 0x4203a3
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x438bd6
call fcn.00422682
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
cmp byte [edi + 0x46], bl
jne 0x4203c4
cmp word [edi + 0x36], bx
jbe 0x420412
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
call fcn.004120d9
mov esi, eax
test esi, esi
je 0x4203e7
push ecx
push esi
push ecx
lea ecx, [edi + 0x28]
call fcn.0042099c
mov eax, esi
jmp 0x4204a4
lea esi, [edi + 0x48]
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x420403
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4203d5
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4203f9
lea eax, [edi + 0x36]
cmp word [eax], bx
jbe 0x420448
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4203f9
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x420448
mov eax, 0xe0000013
jmp 0x4204a4
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00404f5e
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, str..part
mov dword [ebp - 4], ebx
push esi
call fcn.00425b9b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00404e09
push ebx
xor dl, dl
lea ecx, [ebp - 0x10]
call fcn.00407d76
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x4204ac
push ecx
push eax
push ecx
lea ecx, [edi + 0x28]
call fcn.0042099c
mov eax, dword [ebp - 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00402471
mov eax, ebx
call fcn.0042265c
ret 8
cmp byte [edi + 0x34], 0
je 0x4204cd
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4204cd
lea eax, [ebp - 0x10]
push eax
call fcn.00420530
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x42048a
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.004207f8
test eax, eax
jne 0x420498
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x420520
mov eax, dword [ebp + 0xc]
push ebx
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x420519
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x42048a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
push 1
lea ecx, [edi + 0x28]
call fcn.00420970
jmp 0x42049a
Function at 0x4207f8
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [eax]
mov eax, dword [esp + 0xc]
push 2
pop ecx
mov edx, dword [eax]
xor eax, eax
cmp byte [edi + 0x24], al
cmovne eax, ecx
push eax
push 0
push edi
push 0x420862
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x420844
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x420840
push ecx
push esi
push ecx
mov ecx, edi
call fcn.0042099c
mov eax, esi
jmp 0x42085d
cmp byte [edi + 0x1c], 0
je 0x42085b
cmp byte [edi + 0x1d], 0
je 0x42085b
push ecx
push dword [edi + 0x20]
mov ecx, edi
call fcn.00420970
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x895474]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447c65
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.004493c0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x458570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4