joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bba2
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c8]
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp + 0x1b4], bx
lea edi, [ebp + 0x1b6]
stosd dword es:[edi], eax
push 0x206
stosw word es:[edi], ax
lea eax, [ebp - 0x52]
push ebx
push eax
mov dword [ebp - 0x58], ecx
mov word [ebp - 0x54], bx
call fcn.0043db40
push esi
call fcn.0043dd2a
add esp, 0x10
cmp eax, 3
jl 0x41bc10
push 3
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.0044093a
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x58]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 0x5c], eax
and dword [ebp - 0x5c], 0x80000000
and eax, 0x7fffffff
cmp dword [esi + 0x6b4], ebx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], ebx
fild qword [ebp - 0x70]
fild qword [ebp - 0x60]
fchs
faddp st(1)
fstp dword [ebp - 0x5c]
je 0x41bcbd
fld dword [ebp - 0x5c]
call fcn.0043ddf0
cmp eax, 0x400
jle 0x41bc9c
fld dword [ebp - 0x5c]
push ecx
fmul qword [0x4cbc38]
push ecx
lea eax, [ebp - 0x54]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp qword [esp]
push str._.2fGB
push eax
call fcn.0043ec44
add esp, 0x10
jmp 0x41bcae
push eax
lea eax, [ebp - 0x54]
push str._dMB
push eax
call fcn.0043ec44
add esp, 0xc
mov ecx, dword [esi + 0x6b4]
mov eax, dword [ecx]
lea edx, [ebp - 0x54]
push edx
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0x1bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x1c0
leave
ret 4
Function at 0x41c3e2
Capabilities:
Check if file exists

Disassembly:
push 0xd0
mov eax, 0x4c3ebc
call fcn.0043e71b
mov esi, ecx
lea eax, [esi + 0x6ac]
xor edi, edi
cmp dword [eax], edi
je 0x41c588
mov ecx, dword [eax]
mov eax, dword [ecx]
lea edx, [ebp - 0xdc]
xor ebx, ebx
push edx
inc ebx
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], edi
call dword [0x4e3328]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015d0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call dword [0x4e32ac]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41c444
lea eax, [ebp - 0x28]
push eax
call fcn.0043dd2a
cmp eax, 3
pop ecx
jle 0x41c487
push 3
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403430
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x41c46b
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41c478
xor ebx, ebx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.004017a0
cmp ebx, edi
jne 0x41c4a7
lea eax, [esi + 0x66c]
cmp dword [eax], edi
je 0x41c57d
mov eax, dword [eax]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xd8]
jmp 0x41c57d
mov ecx, dword [esi + 0x67c]
cmp ecx, edi
je 0x41c509
call dword [0x4e32ec]
test al, al
lea eax, [esi + 0x66c]
je 0x41c4e1
cmp dword [eax], edi
je 0x41c4d3
mov eax, dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x678]
cmp dword [eax], edi
je 0x41c509
push 1
jmp 0x41c4fd
cmp dword [eax], edi
je 0x41c4f2
mov eax, dword [eax]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x678]
cmp dword [eax], edi
je 0x41c509
push edi
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd8]
lea ebx, [esi + 0x50c]
push ebx
push dword [ebx + 4]
lea ecx, [ebp - 0x50]
call fcn.0040d352
push ebx
push dword [ebx + 8]
lea ecx, [ebp - 0x58]
call fcn.0040d352
jmp 0x41c559
lea ecx, [ebp - 0x50]
call fcn.0040d243
cmp dword [eax], edi
je 0x41c551
lea ecx, [ebp - 0x50]
call fcn.0040d243
cmp dword [ebp - 0x14], 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0x28]
jae 0x41c54b
lea eax, [ebp - 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x50]
call fcn.00409b43
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040e0bd
test al, al
je 0x41c529
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41c575
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0041bba2
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017a0
call fcn.0043e79e
ret
Function at 0x41d266
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
xor edi, edi
xor esi, esi
test ebx, ebx
jle 0x41d373
cmp ebx, 2
mov eax, dword [ebp + 8]
jl 0x41d29e
movzx ecx, byte [esi + eax]
cmp ecx, 0x2f72
jne 0x41d29e
movzx ecx, byte [esi + eax + 1]
cmp ecx, 0x2f6e
je 0x41d2ce
mov cl, byte [esi + eax]
movzx eax, cl
cmp eax, 0x2f6e
je 0x41d2ce
cmp cl, 0x3d
jne 0x41d2b6
inc edi
cmp edi, 2
jg 0x41d2f5
cmp cl, 0x7f
ja 0x41d2f5
mov al, byte [eax + 0x4cd3d0]
cmp al, 0x7f
je 0x41d2f5
cmp al, 0x40
jae 0x41d2cd
test edi, edi
jne 0x41d2f5
inc edx
inc esi
dec ebx
cmp esi, dword [ebp + 0xc]
jl 0x41d27d
test edx, edx
je 0x41d373
mov ebx, dword [ebp + 0x14]
imul edx, edx, 6
add edx, 7
sar edx, 3
mov eax, edx
cmp dword [ebx], eax
jge 0x41d2fa
mov dword [ebx], eax
push 0xfffffffffffffff0
jmp 0x41d2f7
push 0xffffffffffffffee
pop eax
jmp 0x41d375
mov ecx, dword [ebp + 0x10]
xor edx, edx
and dword [ebp + 0xc], edx
test esi, esi
push 3
pop edi
jle 0x41d36e
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x2f72
je 0x41d363
cmp eax, 0x2f6e
je 0x41d363
movzx eax, byte [eax + 0x4cd3d0]
xor ebx, ebx
cmp al, 0x40
sete bl
shl edx, 6
and eax, 0x3f
or eax, edx
mov edx, eax
sub edi, ebx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 4
jne 0x41d363
and dword [ebp + 0xc], 0
test edi, edi
jle 0x41d34e
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jle 0x41d35b
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jle 0x41d363
mov byte [ecx], dl
inc ecx
dec esi
inc dword [ebp + 8]
test esi, esi
jg 0x41d309
mov ebx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0x10]
mov dword [ebx], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d3b6
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0043dd2a
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00433c36
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.0043dd0e
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x41d425
cmp word [esi + ebp*2], 0x5c
jne 0x41d41c
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d416
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41d423
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x41d3f3
jmp 0x41d425
xor bl, bl
push esi
call fcn.004ba1f0
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x41d574
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41d5c3
xor eax, eax
jmp 0x41d696
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0043db40
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x4e3194
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x104
mov dword [ebp - 0x80], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x70]
push eax
call esi
test eax, eax
jne 0x41d67a
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp + 0x19a]
push ebx
push eax
mov word [ebp + 0x198], bx
call fcn.0043db40
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp + 0x198]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x198]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.0043dce4
pop ecx
pop ecx
lea eax, [ebp + 0x198]
push eax
call esi
test eax, eax
je 0x41d694
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x78]
call fcn.0043dd0e
pop ecx
pop ecx
jmp 0x41d691
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call fcn.0043dd0e
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x3a4
leave
ret

Function at 0x41d7d3
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push esi
push edi
mov edi, dword [ebp + 0x7b0]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0043db40
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0043db40
push edi
lea eax, [ebp - 0x2c]
push 0x4ca39c
push eax
call fcn.0043ec44
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d857
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x7a4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043db25
add ebp, 0x7a8
leave
ret
Function at 0x41d86e
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push ebx
push esi
mov esi, dword [ebp + 0x7b0]
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0043db40
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0043db40
push esi
lea eax, [ebp - 0x2c]
push 0x4ca39c
push eax
call fcn.0043ec44
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d911
cmp byte [ebp + 0x7b4], bl
je 0x41d901
mov eax, dword [ebp + 0x7b8]
cmp eax, ebx
jg 0x41d8f7
or eax, 0xffffffff
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x7a4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x7a8
leave
ret

Function at 0x41d928
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x5c4]
sub esp, 0x644
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x5c0], eax
push ebx
mov ebx, dword [ebp + 0x5cc]
push edi
xor edi, edi
cmp ebx, edi
jne 0x41d958
xor eax, eax
jmp 0x41da1f
push esi
mov esi, 0x206
push esi
lea eax, [ebp + 0x3ba]
push edi
push eax
mov word [ebp + 0x3b8], di
call fcn.0043db40
lea eax, [ebp + 0x3b8]
push ebx
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x3b8]
push eax
call fcn.00441ab8
push 0x228
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x7c], edi
call fcn.0043db40
add esp, 0x24
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41da1c
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41da11
push esi
lea eax, [ebp + 0x1b2]
push edi
push eax
mov word [ebp + 0x1b0], di
call fcn.0043db40
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x1b0]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x1b0]
push eax
call fcn.00441ab8
push dword [ebp - 0x80]
push eax
call fcn.0043ecda
add esp, 0x20
test eax, eax
je 0x41da36
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d9c6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp + 0x5c0]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x5c4
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74]
jmp 0x41da1e
Function at 0x41dc7f
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
mov eax, dword [ebp + 0x5b4]
push ebx
mov ebx, dword [ebp + 0x5b0]
push esi
push edi
mov edi, 0x206
xor esi, esi
push edi
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x196]
push esi
push eax
mov dword [ebp - 0x80], ebx
mov word [ebp + 0x194], si
call fcn.0043db40
push edi
lea eax, [ebp - 0x72]
push esi
push eax
mov word [ebp - 0x74], si
call fcn.0043db40
lea eax, [ebp + 0x194]
push ebx
push eax
call fcn.0043dd0e
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x194]
push eax
call fcn.00440b5f
lea eax, [ebp - 0x74]
push eax
call fcn.00440b5f
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043ecda
add esp, 0x38
test eax, eax
je 0x41dddf
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x7c], esi
push edi
lea eax, [ebp + 0x39e]
push esi
push eax
mov word [ebp + 0x39c], si
call fcn.0043db40
add esp, 0xc
cmp dword [ebp - 0x7c], esi
lea eax, [ebp + 0x39c]
jne 0x41dd62
push dword [ebp - 0x78]
push str._s.bak
push eax
call fcn.0043ec44
add esp, 0xc
jmp 0x41dd76
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push str._s.bak_d
push eax
call fcn.0043ec44
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dd94
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x39c]
push eax
push dword [ebp - 0x78]
call fcn.00441b21
pop ecx
pop ecx
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
push esi
lea eax, [ebp + 0x39c]
push eax
jne 0x41dddd
call ebx
cmp dword [ebp - 0x7c], 0xa
jge 0x41dddf
inc dword [ebp - 0x7c]
jmp 0x41dd2c
call ebx
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x5a8
leave
ret
Function at 0x41ddf7
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push str..del
push edi
call fcn.0043e9de
test eax, eax
pop ecx
pop ecx
je 0x41de2f
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41dec6
push esi
xor esi, esi
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0043db40
add esp, 0xc
test esi, esi
lea eax, [ebp - 0x20c]
jne 0x41de6b
push edi
push str._s.del
push eax
call fcn.0043ec44
add esp, 0xc
jmp 0x41de7b
push esi
push edi
push str._s.del_d
push eax
call fcn.0043ec44
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dea5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41dea5
cmp esi, 0xa
jge 0x41dec5
inc esi
jmp 0x41de32
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00441b21
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043db25
leave
ret

Function at 0x41ded3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0043db40
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x41df23
cmp dword [ebp - 0x78], 2
jb 0x41df23
xor eax, eax
inc eax
jmp 0x41df2a
cmp dword [ebp - 0x7c], 0xa
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0043db25
add ebp, 0xa0
leave
ret

Function at 0x41df3f
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push edi
push 0x114
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.0043db40
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41dfe7
cmp dword [ebp - 0x6c], 5
jbe 0x41dfe7
push 4
pop eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41dfe7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push str.EnableLUA
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41dfde
cmp dword [ebp - 0x78], edi
setne al
mov edi, eax
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0043db25
add ebp, 0xa8
leave
ret
Function at 0x41e219
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7fc]
sub esp, 0x87c
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0x7f8], eax
mov eax, dword [ebp + 0x804]
push ebx
mov ebx, dword [ebp + 0x808]
push esi
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x80c]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1e2]
push edi
push eax
mov word [ebp + 0x1e0], di
call fcn.0043db40
push esi
lea eax, [ebp + 0x3ea]
push edi
push eax
mov word [ebp + 0x3e8], di
call fcn.0043db40
lea eax, [ebp + 0x3e8]
push ebx
push eax
call fcn.0043dd0e
push dword [ebp - 0x74]
lea eax, [ebp + 0x1e0]
push str._s.
push eax
call fcn.0043ec44
add esp, 0x2c
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edi
je 0x41e3c4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41e3c4
cmp word [ebp - 0x44], 0x2e
je 0x41e2ca
cmp word [ebp - 0x42], di
je 0x41e2ca
cmp word [ebp - 0x42], 0x2e
jne 0x41e2f9
cmp word [ebp - 0x40], di
je 0x41e2ca
test byte [ebp - 0x70], 0x10
je 0x41e343
push esi
lea eax, [ebp + 0x5f2]
push edi
push eax
mov word [ebp + 0x5f0], di
call fcn.0043db40
lea eax, [ebp + 0x3e8]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x5f0]
push 0x4ca2b8
push eax
call fcn.0043ec44
add esp, 0x20
lea eax, [ebp + 0x5f0]
push eax
call ebx
test eax, eax
jne 0x41e3ac
lea eax, [ebp + 0x3e8]
push eax
call fcn.00440b5f
pop ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00440b5f
pop ecx
push eax
call fcn.0043ecda
test eax, eax
pop ecx
pop ecx
jne 0x41e2ca
push esi
lea eax, [ebp + 0x5f2]
push edi
push eax
mov word [ebp + 0x5f0], di
call fcn.0043db40
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x5f0]
push 0x4ca484
push eax
call fcn.0043ec44
add esp, 0x1c
lea eax, [ebp + 0x5f0]
push eax
call ebx
test eax, eax
je 0x41e2ca
lea eax, [ebp + 0x5f0]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x78], 1
call fcn.0043dd0e
pop ecx
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x7f8]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043db25
add ebp, 0x7fc
leave
ret

Function at 0x41e61a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043dd2a
test eax, eax
pop ecx
je 0x41e672
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0043db40
add esp, 0xc
xor ecx, ecx
inc ecx
push ecx
push 0
push 0
mov eax, str.open
push esi
push eax
push 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41e672
push esi
call fcn.0041d7d3
pop ecx
pop esi
leave
ret
Function at 0x41e675
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0043dd2a
test eax, eax
pop ecx
je 0x41e6fe
push ebx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0043db40
add esp, 0xc
push 1
push ebx
push ebx
mov eax, str.open
push esi
push eax
push ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 0x200
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41e6d7
push dword [ebp + 0x10]
push 1
push esi
call fcn.0041d86e
add esp, 0xc
jmp 0x41e6fd
cmp byte [ebp + 0xc], bl
je 0x41e6fd
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jg 0x41e6e6
or eax, 0xffffffff
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
pop ebx
pop esi
leave
ret

Function at 0x41ed8d
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xfdc]
sub esp, 0xfdc
push 0xffffffffffffffff
push 0x4c418d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0xfd8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xfe4]
push 0x7d0
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x4cd734
call fcn.0043dd2a
pop ecx
lea eax, [ebp + eax*2 + 0x38]
push eax
call fcn.0043dd0e
lea eax, [ebp + 0x38]
push esi
push eax
call fcn.0043dce4
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0043db40
add esp, 0x1c
mov edi, str.open
push esi
lea ecx, [ebp]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], 0x200
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 1
call fcn.004015d0
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x41ee41
lea eax, [ebp + 4]
mov ebx, 0x4e3234
push ebx
push eax
call fcn.0043e9de
pop ecx
pop ecx
push 0x4e3194
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
call fcn.004015d0
cmp dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
jne 0x41ee72
push ebx
lea ecx, [ebp + 0x1c]
call fcn.00403360
push esi
lea ecx, [ebp + 0x1c]
call fcn.00403470
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x41ee87
lea eax, [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push esi
push esi
push eax
push edi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x41eeaf
push 0x7d0
lea eax, [ebp + 0x38]
push ebx
push eax
call fcn.0041d86e
add esp, 0xc
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004017a0
push esi
push ebx
lea ecx, [ebp]
call fcn.004017a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xfd8]
xor ecx, ebp
call fcn.0043db25
add ebp, 0xfdc
leave
ret