joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441a00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x470410]
push 0
lea ecx, [esp + 0x20]
call fcn.00467cfa
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004413a0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00467c28
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004644e9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004644e9
push 1
push 0
push 0
mov ecx, esi
call fcn.00464491
push 1
push 0
push 1
mov ecx, esi
call fcn.00464491
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467d6c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441b80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00467cfa
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004413a0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00467c28
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x470410]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441c44
cmp dword [esp + 0x40], 1
jne 0x441c42
cmp ecx, eax
jge 0x441c44
mov eax, ecx
cmp eax, 0xc8
jge 0x441c50
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00441a00
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x470414]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467d6c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4423c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46f3c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046290a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x11ea9d0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x11e9ae0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4700b4]
push eax
mov ecx, edi
call fcn.00467fa2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004695b8
test eax, eax
je 0x4424dc
mov ecx, dword [esp + 0x3c]
call fcn.00467fcf
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4703f0]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4424a0
push edi
mov ecx, esi
call fcn.00465634
mov ecx, esi
call fcn.00442640
cmp dword [esp + 0x38], 1
jne 0x4424d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046576f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x444f00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444f33
push esi
call fcn.00447ff0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444f2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444fb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444fa2
mov eax, dword [esi + 8]
test eax, eax
je 0x444f57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444f9e
cmp eax, 2
je 0x444fa2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444f4a
cmp eax, 3
je 0x444f7d
cmp eax, 1
jne 0x444f4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444f4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444f4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444fe0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444fc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444fe0
add esp, 4
pop esi
ret
Function at 0x401523
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x128]
push ebx
sub esp, 0x14c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.0040801b
sub esp, 0x10
test eax, eax
jne 0x40169b
test byte [ebp + 0x10], 2
je 0x4015cd
lea eax, [ebp - 0x124]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x11d]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x124], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
sub esp, 0x20
cmp eax, 0x103
jne 0x40163a
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x12c], eax
jmp 0x4015f5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401523
sub esp, 0xc
test eax, eax
jne 0x401651
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x11d]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [ebp - 0x11d]
sub esp, 0x10
test eax, eax
jne 0x401651
cmp dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x128]
je 0x4015db
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40169b
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408e09
push edx
test eax, eax
jne 0x401683
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edx
push edx
jmp 0x40169b
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403bdc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
cmp dword [ebp + 8], 0
mov eax, dword [0x41d560]
je 0x403c0b
test eax, eax
je 0x403bfc
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x41d560], 0
jmp 0x403cbd
test eax, eax
je 0x403c21
mov dword [esp], 0
call fcn.00408e7b
push edx
jmp 0x403cbd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x415500]
jbe 0x403cbd
cmp dword [0x42962c], 0
je 0x403c74
test byte [0x414094], 1
je 0x403cbd
call fcn.00403b08
lea ebx, [ebp - 0x48]
mov dword [esp + 4], str....__d__
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040724e
jmp 0x403cbb
mov eax, dword [0x429628]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403b3a
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x41d560], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403f08
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test eax, eax
js 0x403f4e
add eax, dword [0x415558]
mov dword [esp + 0xc], 0
mov dword [0x429618], eax
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00403d1c
mov edi, eax
push ecx
test eax, eax
js 0x404066
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00407e24
sub esp, 0xc
test eax, eax
jne 0x403f92
mov edi, 0xfffffffd
jmp 0x404066
mov eax, dword [ebp - 0x1c]
add dword [0x429618], 4
mov dword [esp], eax
call fcn.00403d1c
mov edi, eax
push edx
test eax, eax
js 0x404066
test esi, esi
jne 0x40401f
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x404066
cmp eax, 0x4000
mov edx, 0x4000
mov dword [esp + 4], 0x425580
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00407e24
sub esp, 0xc
test eax, eax
je 0x403f88
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x425580
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00407e6a
sub esp, 0xc
test eax, eax
je 0x404061
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x429618], eax
add edi, eax
jmp 0x403fb3
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x1c], ebx
cmovle ebx, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x40b010]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403f88
mov edi, dword [ebp - 0x20]
add dword [0x429618], edi
jmp 0x404066
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x407924
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40c670
mov dword [ebp - 0x24], 0x40c670
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40c660
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edx
push edx
test eax, eax
je 0x407981
xor eax, eax
jmp 0x4079ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x4079ae
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
sub esp, 0xc
test eax, eax
jne 0x40797d
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x4079e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x42e080], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x42e080
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x407a64
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x407a68
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExA]

Function at 0x407cc5
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
inc eax
push edx
je 0x407cf3
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407cfe
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00407cc5
push ecx
cmp eax, 0xffffffff
jne 0x407d1f
xor edi, edi
jmp 0x407d5c
mov dword [esp], ebx
mov esi, eax
test edi, 1
je 0x407d54
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
test eax, eax
jne 0x407d4d
and edi, 4
jne 0x407d1b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
push eax
jmp 0x407d5c
mov edi, 1
jmp 0x407d5c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407d32
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407d68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
cmp eax, 0xffffffff
jne 0x407d83
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x407dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x65
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x407e14
mov dword [ebp - 0xc], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
mov dword [esp + 8], 0
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add byte [ebp - 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x407dd0
jmp 0x407e19
mov byte [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x407e24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x407e63
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407e6a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x407ea9
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x4080df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x4080fd
mov eax, 0x100
or eax, 0x20019
lea edx, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040801b
sub esp, 0x10
test eax, eax
je 0x40812b
mov byte [ebx], 0
jmp 0x40817e
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov byte [ebx + 0x3ff], 0
test esi, esi
jne 0x408126
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408126
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x408767
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42d480], 0x4c554e
test esi, esi
jne 0x4087b6
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x42d080
mov dword [esp], eax
call ebx
sub esp, 0xc
test eax, eax
je 0x4089aa
cmp eax, 0x400
jle 0x408807
jmp 0x4089aa
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.00407d68
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x42d480
mov dword [esp], esi
call ebx
sub esp, 0xc
test eax, eax
je 0x4089aa
cmp eax, 0x400
jle 0x408787
jmp 0x4089aa
mov dword [esp + 0xc], 0x42d080
mov dword [esp + 8], 0x42d480
mov dword [esp + 4], str._s_s_r_n
mov dword [esp], 0x42cc80
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x415510]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x42d080
mov dword [esp + 4], eax
call fcn.00408469
push edi
push edi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x42d080
call fcn.00407d68
sub esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x4089aa
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, ebx
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
mov dword [esp], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
mov esi, eax
test eax, eax
je 0x4089a0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00407e24
sub esp, 0xc
test eax, eax
je 0x4089a0
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], esi
call fcn.00407c3d
push edx
push edx
lea edx, [esi + ebx]
test eax, eax
jne 0x408901
mov dword [esp + 4], str._Rename__r_n
add ebx, 0xa
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, ebx
push eax
push eax
jmp 0x408940
add eax, 0xa
mov dword [esp + 4], 0x40c4be
mov dword [esp], eax
mov dword [ebp - 0x28], edx
call fcn.00407c3d
mov dword [ebp - 0x20], eax
push ecx
push ecx
mov ecx, ebx
test eax, eax
je 0x408940
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add ecx, esi
cmp edx, dword [ebp - 0x20]
jbe 0x408938
mov al, byte [edx]
dec edx
dec ecx
mov byte [ecx + 1], al
jmp 0x40892a
mov eax, dword [ebp - 0x20]
sub eax, esi
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add ecx, esi
mov dword [esp + 4], 0x42cc80
mov dword [esp], ecx
mov dword [esp + 8], eax
call fcn.00407ca8
add ebx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00407e6a
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408a2f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x42d880
mov dword [esp + 4], eax
call fcn.0040826f
push ebx
push ebx
mov dword [esp], 0x42d880
call fcn.00407bb5
push edx
test eax, eax
jne 0x408a60
xor eax, eax
jmp 0x408adc
mov dword [esp], eax
mov ebx, eax
call fcn.004083a0
push ecx
test byte [0x41550c], 0x80
je 0x408a97
mov al, byte [ebx]
test al, al
je 0x408a5c
cmp al, 0x5c
jne 0x408a97
jmp 0x408a5c
call fcn.004089f7
push edx
test eax, eax
jne 0x408aba
mov dword [esp], 0x42d880
call fcn.00407b4f
push eax
mov dword [esp], 0x42d880
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, ebx
push ecx
sub edx, 0x42d880
mov dword [esp], 0x42d880
cmp edx, eax
jl 0x408a80
jmp 0x408ac1
test byte [eax], 0x10
jne 0x408a8a
jmp 0x408a5c
call fcn.004082a3
push eax
mov dword [esp], 0x42d880
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408d7e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408dbb
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x408dc2
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40c4a0
add eax, ebx
mov dword [esp + 4], str._s_s.dll
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408f1c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x42e0e4], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408f59
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408f44
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408f36
mov dword [ecx*4 + 0x42e0e0], eax
inc ecx
cmp ecx, 0x100
jne 0x408f2f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408f7b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42e0e0]
jmp 0x408f63
pop ebx
not eax
pop esi
pop ebp
ret 0xc