joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b62
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.004039ad
mov esi, eax
test esi, esi
je 0x403cdf
push 0x4012e4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012f0
push esi
mov dword [0x40ce68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012fc
push esi
mov dword [0x40ce6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401308
push esi
mov dword [0x40ce70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x40ce68], 0
mov dword [0x40ce74], eax
je 0x403bd8
cmp dword [0x40ce6c], 0
je 0x403bd8
cmp dword [0x40ce70], 0
je 0x403bd8
test eax, eax
jne 0x403c00
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40ce6c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x40ce70], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40ce68], 0x403720
mov dword [0x40ce74], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40c574], eax
cmp eax, 0xffffffff
je 0x403ce4
push dword [0x40ce6c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x403ce4
call fcn.00403f12
push dword [0x40ce68]
call fcn.004037d2
push dword [0x40ce6c]
mov dword [0x40ce68], eax
call fcn.004037d2
push dword [0x40ce70]
mov dword [0x40ce6c], eax
call fcn.004037d2
push dword [0x40ce74]
mov dword [0x40ce70], eax
call fcn.004037d2
add esp, 0x10
mov dword [0x40ce74], eax
call fcn.00406135
test eax, eax
je 0x403cdf
push 0x403850
push dword [0x40ce68]
call fcn.0040375d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x40f138]
call esi
mov dword [0x40c570], eax
cmp eax, 0xffffffff
je 0x403cdf
push 0x214
push 1
call fcn.00406239
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403cdf
push edi
push dword [0x40c570]
push dword [0x40ce70]
call fcn.0040375d
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x40f138]
call esi
test eax, eax
jne 0x403ce9
push edi
call fcn.0040619c
pop ecx
call fcn.00403cfc
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.00403a89
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x403ce6
Function at 0x404161
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + 0x401008]
je 0x404180
inc esi
cmp esi, 0x17
jb 0x404171
cmp esi, 0x17
jae 0x4042c0
push 3
call fcn.00407281
pop ecx
cmp eax, 1
je 0x40428a
push 3
call fcn.00407281
pop ecx
test eax, eax
jne 0x4041b3
cmp dword [0x40c560], 1
je 0x40428a
cmp edi, 0xfc
je 0x4042c0
push 0x4018e0
push 0x314
mov edi, 0x40ceb0
push edi
call fcn.00407192
add esp, 0xc
test eax, eax
je 0x4041e8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405bfb
add esp, 0x14
push 0x104
push 0x40cec9
push ebx
mov byte [0x40cfcd], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40422b
push 0x4018fc
push 0x2fb
push 0x40cec9
call fcn.00407192
add esp, 0xc
test eax, eax
je 0x40422b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405bfb
add esp, 0x14
push 0x401914
push 0x314
push edi
call fcn.00407202
add esp, 0xc
test eax, eax
je 0x40424f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405bfb
add esp, 0x14
push dword [esi*8 + 0x40100c]
push 0x314
push edi
call fcn.00407202
add esp, 0xc
test eax, eax
je 0x404275
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405bfb
add esp, 0x14
push 0x12010
push 0x401918
push edi
call fcn.004072cd
add esp, 0xc
jmp 0x4042c0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x4042c0
cmp edx, 0xffffffff
je 0x4042c0
mov esi, dword [esi*8 + 0x40100c]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4042a9
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a15
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x404aa7
xor edx, edx
push esi
mov esi, edi
cmp word [edi], dx
je 0x404a4a
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x404a45
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x404a32
push ebx
push edx
push edx
push edx
sub esi, edi
push edx
sar esi, 1
inc esi
push esi
push edi
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x404a9c
push eax
call fcn.00407d44
mov ebx, eax
pop ecx
test ebx, ebx
je 0x404a9c
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404a91
push ebx
call fcn.0040619c
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x404aa5
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x406cb0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406cee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406ce6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x406cf0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406cd6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x406dc0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x406df1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406df1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x406df1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4072cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40c59c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
call fcn.00403847
xor esi, esi
mov ebx, eax
cmp dword [0x40d468], esi
jne 0x4073ad
push esi
push esi
push 0x401cb0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40748f
push 0x401cc8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40748f
push eax
call fcn.004037d2
mov dword [esp], 0x401cd4
push edi
mov dword [0x40d468], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004037d2
mov dword [esp], 0x401ce4
push edi
mov dword [0x40d46c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004037d2
mov dword [esp], 0x401cf8
push edi
mov dword [0x40d470], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004037d2
pop ecx
mov ecx, eax
mov dword [0x40d478], ecx
test ecx, ecx
je 0x4073a6
push 0x401d14
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004037d2
pop ecx
mov dword [0x40d474], eax
jmp 0x4073b2
mov eax, dword [0x40d474]
jmp 0x4073b8
mov eax, dword [0x40d474]
mov ecx, dword [0x40d478]
cmp eax, ebx
je 0x40741e
cmp ecx, ebx
je 0x40741e
push eax
call fcn.0040375d
push dword [0x40d478]
mov dword [ebp - 0x14], eax
call fcn.0040375d
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x40741e
test edi, edi
je 0x40741e
mov ecx, eax
call dword [0x40f138]
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x407415
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov ecx, edi
call dword [0x40f138]
call edi
test eax, eax
je 0x407415
test byte [ebp - 8], 1
jne 0x40741e
or dword [ebp + 0x10], 0x200000
jmp 0x407467
mov eax, dword [0x40d46c]
cmp eax, ebx
je 0x407467
push eax
call fcn.0040375d
mov edi, eax
pop ecx
test edi, edi
je 0x407467
mov ecx, edi
call dword [0x40f138]
call edi
mov esi, eax
test esi, esi
je 0x407467
mov eax, dword [0x40d470]
cmp eax, ebx
je 0x407467
push eax
call fcn.0040375d
mov edi, eax
pop ecx
test edi, edi
je 0x407467
push esi
mov ecx, edi
call dword [0x40f138]
call edi
mov esi, eax
push dword [0x40d468]
call fcn.0040375d
mov edi, eax
pop ecx
test edi, edi
je 0x40748f
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [0x40f138]
call edi
jmp 0x407491
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040328a
leave
ret
Function at 0x40acae
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x40c59c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
xor esi, esi
pop eax
mov dword [ebp - 0xc], esi
call fcn.0040a850
mov eax, esp
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40adbd
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
push 0x401330
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ad3f
push 0x40268c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40ad3f
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call dword [0x40f138]
call edi
cmp eax, 1
jne 0x40ad3f
cmp dword [ebp - 0xc], esi
jbe 0x40ad3f
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push esi
call fcn.00404526
add esp, 0xc
test eax, eax
js 0x40adbd
mov esi, dword [ebp - 8]
not edi
and esi, edi
mov dword [ebp - 8], esi
je 0x40ad75
lea eax, [ebp - 8]
push eax
push ebx
push esi
call fcn.00404526
add esp, 0xc
test eax, eax
js 0x40adbd
mov esi, dword [ebp - 8]
lea eax, [ebx + ebx]
cmp esi, eax
jae 0x40ad7e
mov esi, eax
mov eax, dword [ebp - 0x14]
mov edi, ebx
neg edi
add eax, ebx
and edi, dword [ebp - 0x10]
sub edi, esi
cmp edi, eax
jb 0x40adbd
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40adbd
lea ecx, [ebp - 0x18]
push ecx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40adbd
xor eax, eax
inc eax
jmp 0x40adbf
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040328a
leave
ret
Function at 0x409764
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
jmp 0x40980d
cmp dword [esi + 0x10], 0x1000
jne 0x4097f9
test byte [esi + 0x15], 1
jne 0x4097f9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4097b8
cmp eax, 2
je 0x4097b8
cmp eax, 0x10
je 0x4097b8
cmp eax, 0x20
jne 0x4097cd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4097cd
mov bl, 1
xor ebp, ebp
jmp 0x4097de
mov eax, dword [esi]
add eax, ebp
call fcn.0040975c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4097d1
test bl, bl
je 0x4097f9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409818
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409790
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.00401ac0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret
Function at 0x401541
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x22c]
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
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.00408856
sub esp, 0x10
test eax, eax
jne 0x4016a1
test byte [ebp + 0x10], 2
mov eax, dword [ebp - 0x22c]
je 0x4015d7
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x228], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x228]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x222]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x401642
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015ff
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401541
sub esp, 0xc
test eax, eax
jne 0x401659
mov dword [esp + 0xc], 0x105
lea edx, [ebp - 0x222]
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401659
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015e5
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4016a1
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp], 3
call fcn.004090f3
push edx
test eax, eax
jne 0x40168b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ecx
push ecx
jmp 0x4016a1
mov dword [esp + 8], edi
xor edx, edx
mov dword [esp + 0xc], edx
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 0x40824c
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
xor ecx, ecx
lea eax, [ebp - 0x18]
sub esp, 0x48
mov dword [0x7c9a20], 0x44
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x7c9a20
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x4082b8
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 0x4082bc
Capabilities:
Create process on windows

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

Function at 0x40852e
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_GetFileAttributesW]
push edx
mov ebx, eax
inc eax
je 0x40855c
mov dword [esp], esi
mov eax, ebx
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.0040852e
push ecx
cmp eax, 0xffffffff
je 0x4085bc
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x4085b4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
jne 0x4085ad
test byte [ebp + 0xc], 4
jne 0x4085bc
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x4085bc
mov eax, 1
jmp 0x4085be
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408591
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x4085c7
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_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x4085e2
xor eax, eax
mov dword [esp + 0x14], eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc
Function at 0x40861b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x64
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
div ecx
xor eax, eax
add word [ebp - 0xc], dx
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
jne 0x40867a
dec esi
jne 0x40862b
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x408685
Capabilities:
Read file on windows

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

Function at 0x4086c9
Capabilities:
Write file on windows

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

Function at 0x40890a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x10], 0x2000
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
setne al
shl eax, 8
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408856
sub esp, 0x10
test eax, eax
je 0x408958
mov word [ebx], 0
jmp 0x4089ab
mov dword [esp + 0x10], ebx
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
push edx
mov word [ebx + 0x1ffe], 0
jne 0x408951
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408951
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x408fb3
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x7c5a20
mov dword [esp + 4], eax
call fcn.00408a84
push ebx
push ebx
mov dword [esp], 0x7c5a20
call fcn.00408414
push edx
test eax, eax
jne 0x408fe4
xor eax, eax
jmp 0x40905e
mov dword [esp], eax
mov ebx, eax
call fcn.00408b40
push ecx
test byte [0x41812c], 0x80
je 0x409004
movzx eax, word [ebx]
test eax, eax
je 0x408fe0
cmp eax, 0x5c
je 0x408fe0
sub ebx, 0x7c5a20
sar ebx, 1
mov dword [esp], 0x7c5a20
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
cmp ebx, eax
mov dword [esp], 0x7c5a20
jge 0x409043
call fcn.00408f7b
push edx
test eax, eax
je 0x409034
test byte [eax], 0x10
je 0x408fe0
mov dword [esp], 0x7c5a20
call fcn.004083a3
push eax
jmp 0x40900c
call fcn.00408ab8
push eax
mov dword [esp], 0x7c5a20
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
inc eax
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x409065
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x4090a3
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x4090aa
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40d3a0
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x409ab4
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x7c9a84], 0
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x409af1
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409adc
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409ace
mov dword [ecx*4 + 0x7c9a80], eax
inc ecx
cmp ecx, 0x100
jne 0x409ac7
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409b13
mov cl, byte [edx]
inc edx
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7c9a80]
jmp 0x409afb
pop ebx
not eax
pop esi
pop ebp
ret 0xc