joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bb0e
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.0043db10
push esi
call fcn.0043dcfa
add esp, 0x10
cmp eax, 3
jl 0x41bb7c
push 3
lea eax, [ebp + 0x1b4]
push esi
push eax
call fcn.0044090a
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 0x41bc29
fld dword [ebp - 0x5c]
call fcn.0043ddc0
cmp eax, 0x400
jle 0x41bc08
fld dword [ebp - 0x5c]
push ecx
fmul qword [0x4cbb50]
push ecx
lea eax, [ebp - 0x54]
fstp dword [ebp - 0x58]
fld dword [ebp - 0x58]
fstp qword [esp]
push str._.2fGB
push eax
call fcn.0043ec14
add esp, 0x10
jmp 0x41bc1a
push eax
lea eax, [ebp - 0x54]
push str._dMB
push eax
call fcn.0043ec14
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.0043daf5
add ebp, 0x1c0
leave
ret 4
Function at 0x41c34e
Capabilities:
Check if file exists

Disassembly:
push 0xd0
mov eax, 0x4c3e7c
call fcn.0043e6eb
mov esi, ecx
lea eax, [esi + 0x6ac]
xor edi, edi
cmp dword [eax], edi
je 0x41c4f4
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 [0x4e3228]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004015d0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call dword [0x4e31ac]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41c3b0
lea eax, [ebp - 0x28]
push eax
call fcn.0043dcfa
cmp eax, 3
pop ecx
jle 0x41c3f3
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 0x41c3d7
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41c3e4
xor ebx, ebx
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.004017a0
cmp ebx, edi
jne 0x41c413
lea eax, [esi + 0x66c]
cmp dword [eax], edi
je 0x41c4e9
mov eax, dword [eax]
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xd8]
jmp 0x41c4e9
mov ecx, dword [esi + 0x67c]
cmp ecx, edi
je 0x41c475
call dword [0x4e31ec]
test al, al
lea eax, [esi + 0x66c]
je 0x41c44d
cmp dword [eax], edi
je 0x41c43f
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 0x41c475
push 1
jmp 0x41c469
cmp dword [eax], edi
je 0x41c45e
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 0x41c475
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.0040e7d0
push ebx
push dword [ebx + 8]
lea ecx, [ebp - 0x58]
call fcn.0040e7d0
jmp 0x41c4c5
lea ecx, [ebp - 0x50]
call fcn.0040e125
cmp dword [eax], edi
je 0x41c4bd
lea ecx, [ebp - 0x50]
call fcn.0040e125
cmp dword [ebp - 0x14], 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0x28]
jae 0x41c4b7
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.00424dec
test al, al
je 0x41c495
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x41c4e1
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0041bb0e
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017a0
call fcn.0043e76e
ret
Function at 0x41d1d2
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 0x41d2df
cmp ebx, 2
mov eax, dword [ebp + 8]
jl 0x41d20a
movzx ecx, byte [esi + eax]
cmp ecx, 0x2f72
jne 0x41d20a
movzx ecx, byte [esi + eax + 1]
cmp ecx, 0x2f6e
je 0x41d23a
mov cl, byte [esi + eax]
movzx eax, cl
cmp eax, 0x2f6e
je 0x41d23a
cmp cl, 0x3d
jne 0x41d222
inc edi
cmp edi, 2
jg 0x41d261
cmp cl, 0x7f
ja 0x41d261
mov al, byte [eax + 0x4cd2d0]
cmp al, 0x7f
je 0x41d261
cmp al, 0x40
jae 0x41d239
test edi, edi
jne 0x41d261
inc edx
inc esi
dec ebx
cmp esi, dword [ebp + 0xc]
jl 0x41d1e9
test edx, edx
je 0x41d2df
mov ebx, dword [ebp + 0x14]
imul edx, edx, 6
add edx, 7
sar edx, 3
mov eax, edx
cmp dword [ebx], eax
jge 0x41d266
mov dword [ebx], eax
push 0xfffffffffffffff0
jmp 0x41d263
push 0xffffffffffffffee
pop eax
jmp 0x41d2e1
mov ecx, dword [ebp + 0x10]
xor edx, edx
and dword [ebp + 0xc], edx
test esi, esi
push 3
pop edi
jle 0x41d2da
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x2f72
je 0x41d2cf
cmp eax, 0x2f6e
je 0x41d2cf
movzx eax, byte [eax + 0x4cd2d0]
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 0x41d2cf
and dword [ebp + 0xc], 0
test edi, edi
jle 0x41d2ba
shr eax, 0x10
mov byte [ecx], al
inc ecx
cmp edi, 1
jle 0x41d2c7
mov eax, edx
shr eax, 8
mov byte [ecx], al
inc ecx
cmp edi, 2
jle 0x41d2cf
mov byte [ecx], dl
inc ecx
dec esi
inc dword [ebp + 8]
test esi, esi
jg 0x41d275
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 0x41d322
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x14]
call fcn.0043dcfa
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.00433c04
push dword [esp + 0x1c]
mov esi, eax
push esi
call fcn.0043dcde
add esp, 0x10
xor ebp, ebp
test edi, edi
mov bl, 1
jl 0x41d391
cmp word [esi + ebp*2], 0x5c
jne 0x41d388
and word [esi + ebp*2], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41d382
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41d38f
mov word [esi + ebp*2], 0x5c
inc ebp
cmp ebp, edi
jle 0x41d35f
jmp 0x41d391
xor bl, bl
push esi
call fcn.004ba1b0
pop ecx
pop edi
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x41d4e0
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 0x41d52f
xor eax, eax
jmp 0x41d602
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 0x70], bx
call fcn.0043db10
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push 0x4e3094
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 0x41d5e6
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.0043db10
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.0043dcb4
pop ecx
pop ecx
lea eax, [ebp + 0x198]
push eax
call esi
test eax, eax
je 0x41d600
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x78]
call fcn.0043dcde
pop ecx
pop ecx
jmp 0x41d5fd
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call fcn.0043dcde
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.0043daf5
add ebp, 0x3a4
leave
ret

Function at 0x41d73f
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.0043db10
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0043db10
push edi
lea eax, [ebp - 0x2c]
push 0x4ca34c
push eax
call fcn.0043ec14
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 0x41d7c3
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.0043daf5
add ebp, 0x7a8
leave
ret
Function at 0x41d7da
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.0043db10
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0043db10
push esi
lea eax, [ebp - 0x2c]
push 0x4ca34c
push eax
call fcn.0043ec14
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 0x41d87d
cmp byte [ebp + 0x7b4], bl
je 0x41d86d
mov eax, dword [ebp + 0x7b8]
cmp eax, ebx
jg 0x41d863
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.0043daf5
add ebp, 0x7a8
leave
ret

Function at 0x41d894
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 0x41d8c4
xor eax, eax
jmp 0x41d98b
push esi
mov esi, 0x206
push esi
lea eax, [ebp + 0x3ba]
push edi
push eax
mov word [ebp + 0x3b8], di
call fcn.0043db10
lea eax, [ebp + 0x3b8]
push ebx
push eax
call fcn.0043dcde
lea eax, [ebp + 0x3b8]
push eax
call fcn.00441a88
push 0x228
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x7c], edi
call fcn.0043db10
add esp, 0x24
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d988
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x41d97d
push esi
lea eax, [ebp + 0x1b2]
push edi
push eax
mov word [ebp + 0x1b0], di
call fcn.0043db10
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x1b0]
push eax
call fcn.0043dcde
lea eax, [ebp + 0x1b0]
push eax
call fcn.00441a88
push dword [ebp - 0x80]
push eax
call fcn.0043ecaa
add esp, 0x20
test eax, eax
je 0x41d9a2
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d932
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.0043daf5
add ebp, 0x5c4
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x74]
jmp 0x41d98a
Function at 0x41dbeb
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.0043db10
push edi
lea eax, [ebp - 0x72]
push esi
push eax
mov word [ebp - 0x74], si
call fcn.0043db10
lea eax, [ebp + 0x194]
push ebx
push eax
call fcn.0043dcde
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call fcn.0043dcde
lea eax, [ebp + 0x194]
push eax
call fcn.00440b2f
lea eax, [ebp - 0x74]
push eax
call fcn.00440b2f
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.0043ecaa
add esp, 0x38
test eax, eax
je 0x41dd4b
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.0043db10
add esp, 0xc
cmp dword [ebp - 0x7c], esi
lea eax, [ebp + 0x39c]
jne 0x41dcce
push dword [ebp - 0x78]
push str._s.bak
push eax
call fcn.0043ec14
add esp, 0xc
jmp 0x41dce2
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push str._s.bak_d
push eax
call fcn.0043ec14
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41dd00
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.00441af1
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 0x41dd49
call ebx
cmp dword [ebp - 0x7c], 0xa
jge 0x41dd4b
inc dword [ebp - 0x7c]
jmp 0x41dc98
call ebx
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043daf5
add ebp, 0x5a8
leave
ret
Function at 0x41dd63
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.0043e9ae
test eax, eax
pop ecx
pop ecx
je 0x41dd9b
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x41de32
push esi
xor esi, esi
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0043db10
add esp, 0xc
test esi, esi
lea eax, [ebp - 0x20c]
jne 0x41ddd7
push edi
push str._s.del
push eax
call fcn.0043ec14
add esp, 0xc
jmp 0x41dde7
push esi
push edi
push str._s.del_d
push eax
call fcn.0043ec14
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41de11
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41de11
cmp esi, 0xa
jge 0x41de31
inc esi
jmp 0x41dd9e
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00441af1
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.0043daf5
leave
ret

Function at 0x41de3f
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.0043db10
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 0x41de8f
cmp dword [ebp - 0x78], 2
jb 0x41de8f
xor eax, eax
inc eax
jmp 0x41de96
cmp dword [ebp - 0x7c], 0xa
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0043daf5
add ebp, 0xa0
leave
ret

Function at 0x41deab
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.0043db10
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 0x41df53
cmp dword [ebp - 0x6c], 5
jbe 0x41df53
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 0x41df53
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 0x41df4a
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.0043daf5
add ebp, 0xa8
leave
ret
Function at 0x41e185
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xb94]
sub esp, 0xc14
mov eax, dword [0x509690]
xor eax, ebp
mov dword [ebp + 0xb90], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x782]
push edi
push eax
mov word [ebp + 0x780], di
call fcn.0043db10
lea eax, [ebp + 0x780]
push str.C:log_
push eax
call fcn.0043dcde
push 0x3e6
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.0043db10
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._sgswb.log
push eax
call fcn.0043ec14
push esi
lea eax, [ebp + 0x372]
push edi
push eax
mov word [ebp + 0x370], di
call fcn.0043db10
push esi
lea eax, [ebp + 0x98a]
push edi
push eax
mov word [ebp + 0x988], di
call fcn.0043db10
add esp, 0x44
push 0x104
lea eax, [ebp + 0x988]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x988]
push 0x5c
push eax
call fcn.0043ea96
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
mov word [eax], di
pop ecx
lea eax, [ebp + 0x578]
push eax
call esi
test eax, eax
je 0x41e35d
lea eax, [ebp + 0x988]
push ebx
push eax
call fcn.0043dcfa
lea eax, [ebp + eax*2 + 0x98a]
push eax
lea eax, [ebp + 0x370]
push eax
call fcn.0043dcde
lea eax, [ebp + 0x370]
push eax
lea eax, [ebp + 0x780]
push eax
lea eax, [ebp + 0x578]
push str._s_s.txt
push eax
call fcn.0043ec14
lea eax, [ebp + 0xba0]
push eax
push dword [ebp + 0xb9c]
lea eax, [ebp - 0x78]
push 0x1f3
push eax
call fcn.00441e6a
add esp, 0x2c
lea eax, [ebp + 0x578]
push eax
mov word [ebp + 0x36e], di
mov dword [ebp - 0x7c], edi
call esi
xor ebx, ebx
inc ebx
test eax, eax
je 0x41e2df
mov dword [ebp - 0x7c], ebx
lea eax, [ebp + 0x578]
push 0x4cd568
push eax
call fcn.0043eda2
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
je 0x41e35c
cmp dword [ebp - 0x7c], edi
jne 0x41e314
push esi
push 2
lea eax, [ebp - 0x80]
push ebx
push eax
mov dword [ebp - 0x80], 0xfeff
call fcn.0043d3f4
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
call fcn.0043dcfa
push esi
add eax, eax
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0043d3f4
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xd
call fcn.0043d3f4
push esi
push 2
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x7c], 0xa
call fcn.0043d3f4
push esi
call fcn.0043cf33
add esp, 0x38
pop ebx
mov ecx, dword [ebp + 0xb90]
pop edi
xor ecx, ebp
pop esi
call fcn.0043daf5
add ebp, 0xb94
leave
ret
Function at 0x41e374
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.0043db10
push esi
lea eax, [ebp + 0x3ea]
push edi
push eax
mov word [ebp + 0x3e8], di
call fcn.0043db10
lea eax, [ebp + 0x3e8]
push ebx
push eax
call fcn.0043dcde
push dword [ebp - 0x74]
lea eax, [ebp + 0x1e0]
push str._s.
push eax
call fcn.0043ec14
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 0x41e51f
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 0x41e51f
cmp word [ebp - 0x44], 0x2e
je 0x41e425
cmp word [ebp - 0x42], di
je 0x41e425
cmp word [ebp - 0x42], 0x2e
jne 0x41e454
cmp word [ebp - 0x40], di
je 0x41e425
test byte [ebp - 0x70], 0x10
je 0x41e49e
push esi
lea eax, [ebp + 0x5f2]
push edi
push eax
mov word [ebp + 0x5f0], di
call fcn.0043db10
lea eax, [ebp + 0x3e8]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x5f0]
push 0x4ca2d0
push eax
call fcn.0043ec14
add esp, 0x20
lea eax, [ebp + 0x5f0]
push eax
call ebx
test eax, eax
jne 0x41e507
lea eax, [ebp + 0x3e8]
push eax
call fcn.00440b2f
pop ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00440b2f
pop ecx
push eax
call fcn.0043ecaa
test eax, eax
pop ecx
pop ecx
jne 0x41e425
push esi
lea eax, [ebp + 0x5f2]
push edi
push eax
mov word [ebp + 0x5f0], di
call fcn.0043db10
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x74]
lea eax, [ebp + 0x5f0]
push 0x4ca398
push eax
call fcn.0043ec14
add esp, 0x1c
lea eax, [ebp + 0x5f0]
push eax
call ebx
test eax, eax
je 0x41e425
lea eax, [ebp + 0x5f0]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x78], 1
call fcn.0043dcde
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.0043daf5
add ebp, 0x7fc
leave
ret

Function at 0x41e775
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.0043dcfa
test eax, eax
pop ecx
je 0x41e7cd
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.0043db10
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 0x41e7cd
push esi
call fcn.0041d73f
pop ecx
pop esi
leave
ret