joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c4f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412220
push 0x411d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push str.USER_JPI_PROFILE
call dword [sym.imp.MSVCRT.dll_getenv]
pop ecx
mov edx, eax
cmp edx, ebx
je 0x405ccb
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405ccb
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x41ec80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x41ec80
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00411bf5
test eax, eax
je 0x405ce1
push 0x41ec80
call fcn.00411c5c
pop ecx
jmp 0x405cb7
mov dword [ebp - 4], ebx
push str.shfolder.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x405d19
push str.SHGetFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x405d42
push 0x41ec80
push ebx
push ebx
push 0x1a
push ebx
call eax
jmp 0x405d42
push 0x415d60
call esi
mov dword [ebp - 0x2c], eax
push str.SHGetSpecialFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x405d42
push 1
push 0x1a
push 0x41ec80
push ebx
call eax
or dword [ebp - 4], 0xffffffff
call fcn.00405d52
jmp 0x405cb7

Function at 0x405da9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push eax
push 0x20019
push 0
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405dee
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4065bf
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x415dd0
push dword [esp + 0x14]
xor edi, edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
je 0x406632
push 2
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
mov esi, dword [esp + 0x24]
add esp, 0x10
test eax, eax
mov dword [esi], eax
je 0x40662e
push 0
push 0
push ebx
call edi
push dword [esi]
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40662e
push ebx
push dword [esi]
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, dword [esi]
je 0x406632
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
xor eax, eax
jmp 0x406634
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x406638
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 9
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], esi
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
mov dword [0x420938], esi
mov dword [0x420934], esi
call fcn.00404ab2
cmp eax, 0xffffffff
pop ecx
mov dword [0x4200f0], eax
jne 0x406689
push 5
call fcn.0040694c
push eax
call fcn.00405f21
pop ecx
pop ecx
cmp dword [ebp + 0xc], esi
je 0x4066a2
push 0x42093c
push dword [ebp + 0xc]
call fcn.004065bf
pop ecx
mov dword [0x420938], eax
pop ecx
cmp dword [ebp + 0x10], esi
je 0x4066bb
push 0x420930
push dword [ebp + 0x10]
call fcn.004065bf
pop ecx
mov dword [0x420934], eax
pop ecx
cmp dword [ebp + 8], esi
jg 0x4066cf
push 0x13
call fcn.0040694c
push eax
call fcn.00405f21
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.00404bd8
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
jne 0x4066ee
push 0x11
call fcn.0040694c
push eax
call fcn.00405f21
pop ecx
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push 0x415dd4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push 6
pop edi
push edi
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, edi
je 0x406726
push 0x14
call fcn.0040694c
push eax
call fcn.00405f21
pop ecx
pop ecx
push ebx
call fcn.004052c1
cmp dword [0x420938], esi
pop ecx
jne 0x406741
cmp dword [0x420934], esi
je 0x4067fe
mov ebx, dword [ebp - 8]
push 0x7f00
push esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 0x406394
mov dword [ebp - 0x44], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0x415dd8
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push ebx
push esi
mov eax, bind
push esi
push eax
push eax
push eax
push eax
push eax
push esi
push str.Win32Splash
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x4065b7
mov edi, eax
push 0x4e20
push esi
push edi
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
jne 0x4067ba
push 0x15
call fcn.0040694c
push eax
call fcn.00405f21
pop ecx
pop ecx
push 8
push 0x401
push edi
push dword [0x4200f0]
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
test eax, eax
je 0x4067fe
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x2c]
push esi
push eax
jmp 0x4067db
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x406ae6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stat]
pop ecx
test eax, eax
pop ecx
jne 0x406b64
push 0x4164fc
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x406b64
mov eax, dword [ebp - 0x10]
push ebx
mov ebx, eax
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push dword [ebp + 8]
mov esi, eax
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
add esp, 0x14
cmp edi, ebx
jle 0x406b4d
push 9
call fcn.0040694c
push eax
call fcn.00406bc1
pop ecx
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
cmp edi, ebx
pop ebx
je 0x406b70
push esi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [ebp + 0xc]
and byte [edi + esi], 0
mov dword [eax], esi
mov eax, edi
jmp 0x406b6c

Function at 0x406b7d
Capabilities:
Write file on windows

Disassembly:
push esi
push 0x416500
push dword [esp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x406b97
pop esi
ret
push edi
push esi
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
xor eax, eax
cmp edi, dword [esp + 0x14]
pop edi
pop esi
sete al
ret
Function at 0x408104
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00408c0b
push 0x54
push edi
mov dword [ebp - 4], eax
call fcn.00408bc2
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x408148
push edi
call fcn.00408c0e
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov eax, dword [edi]
mov dword [eax + 0x18], ebx
mov eax, dword [edi]
call dword [eax]
pop ecx
pop ecx
mov dword [esi], fcn.00408219
mov dword [esi + 4], fcn.00408333
mov dword [esi + 8], fcn.004083c4
mov dword [esi + 0xc], fcn.0040845c
mov dword [esi + 0x10], 0x408500
mov dword [esi + 0x14], 0x408561
mov dword [esi + 0x18], 0x4085c2
mov dword [esi + 0x1c], 0x408745
mov dword [esi + 0x20], 0x4088f5
mov dword [esi + 0x24], fcn.00408aab
mov dword [esi + 0x28], 0x408b92
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
push 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
pop ecx
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x4081a7
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
cmp eax, ebx
pop ecx
je 0x408214
lea ecx, [ebp + 0xb]
mov byte [ebp + 0xb], 0x78
push ecx
lea ecx, [ebp - 4]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x408214
cmp byte [ebp + 0xb], 0x6d
je 0x4081fd
cmp byte [ebp + 0xb], 0x4d
jne 0x408208
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
jmp 0x40820b
mov eax, dword [ebp - 4]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a5ec
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x40a619
push esi
call fcn.0040ada2
cmp byte [esi + 0x40], 0
pop ecx
je 0x40a612
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x40a688
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x40a67d
mov eax, dword [esi + 8]
test eax, eax
je 0x40a63a
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x40a679
cmp eax, 2
je 0x40a67d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40a62f
cmp eax, 3
je 0x40a65e
cmp eax, 1
jne 0x40a62f
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x40a62f
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x40a62f
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x40a6a6
cmp eax, 0xcc
je 0x40a6a6
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.0040a6af
pop ecx
pop esi
ret
Function at 0x411bf5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x420918], 0
je 0x411c0e
mov eax, dword [0x42091c]
leave
ret
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
push 1
pop ecx
pop edi
jne 0x411c4d
cmp dword [ebp - 0x90], 6
jne 0x411c4d
mov eax, ecx
jmp 0x411c4f
xor eax, eax
mov dword [0x42091c], eax
mov dword [0x420918], ecx
leave
ret
Function at 0x412281
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x412290
pop dword [ebp - 0x30]
mov eax, 0xf984263a
add eax, 0x6bcfc56
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3b57a
push 0
mov eax, 0x3cce85f3
sub eax, 0x3c8bf5c7
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x512f
mov edx, eax
mov edi, 0x436e00
add edi, dword [ebp - 0x30]
mov esi, 0xee837325
xor dword [ebp - 0x1c], 0xe6d55cbd
mov ebx, dword [edi]
xor ebx, esi
xor dword [ebp - 0xc], esi
mov dword [edx], ebx
add edx, 0xb2a12e5b
sub edx, 0xb2a12e57
add edi, 4
loop 0x4122dd
add eax, 0xbf6be235
sub eax, 0xbf6aaaa6
mov ebx, eax
add eax, 0x67357749
sub eax, 0x67357744
mov ecx, 0x399dd777
add ecx, 0xc6a22889
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401ca0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450358
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x45e8d1], 0
je 0x401d70
push ecx
lea ecx, [ebp - 0x28]
call fcn.004090c0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 1
push 0x459a14
cmp eax, 1
jb 0x401d1d
cmp edx, 0x10
lea esi, [ebp - 0x28]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call fcn.0041b280
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x401d2e
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
call fcn.0040b490
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x401d70
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401d66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d8a
push edx
push ecx
call fcn.004120fb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
int3
Function at 0x404600
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4505e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x13
push str.__starting_:Spooler
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409910
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00401ca0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x404696
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40468c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047df
push edx
push ecx
call fcn.004120fb
add esp, 8
push 7
push str.Spooler
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409910
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00404230
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4046fa
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4046f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4047e4
push edx
push ecx
call fcn.004120fb
add esp, 8
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4047c1
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, 0x45ff50
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0
push 0xf01ff
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4047bc
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4047b4
cmp dword [ebp - 0x40], 4
je 0x404786
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
xor esi, esi
nop
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4047b4
cmp dword [ebp - 0x40], 4
je 0x404786
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jb 0x404760
push dword [ebp - 0x48]
call ebx
push edi
call ebx
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
add eax, 0x104
add edx, 0x104
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
cmp eax, 0x10400
jae 0x4047c1
mov eax, dword [ebp - 0x48]
jmp 0x404726
push dword [ebp - 0x48]
call ebx
push edi
jmp 0x4047bf
push dword [ebp - 0x48]
call ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
call fcn.0041c6cd
int3
Function at 0x4064f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450840
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push esi
mov edx, str.__del_reg__KEY:
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00401ca0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40657c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406572
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066fa
push edx
push ecx
call fcn.004120fb
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x406586
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40667e
cmp dword [esi + 0x14], 0x10
jb 0x4065ad
mov esi, dword [esi]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
jne 0x406633
push 9
push str.____done.
call fcn.00409910
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00401ca0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40662c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406622
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066ff
push edx
push ecx
call fcn.004120fb
add esp, 8
mov al, 1
jmp 0x4066e0
push 0xb
push str.____failed.
call fcn.00409910
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.00401ca0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4066de
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406704
jmp 0x4066d4
push 0xd
push str.____not_exist
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409910
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
call fcn.00401ca0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4066de
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406709
push edx
push ecx
call fcn.004120fb
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
call fcn.0041c6cd
int3
Function at 0x406710
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45087b
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x138], esi
xor ebx, ebx
mov dword [ebp - 0x134], 0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40675c
mov eax, dword [esi]
lea ecx, [ebp - 0x134]
push ecx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40691d
nop
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x104
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, eax
mov dword [ebp - 0x144], edi
test edi, edi
jne 0x406908
push esi
lea ecx, [ebp - 0x130]
call fcn.004090c0
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x11c]
mov eax, edx
mov ecx, dword [ebp - 0x120]
sub eax, ecx
push 1
push 0x459a2c
cmp eax, 1
jb 0x406812
cmp edx, 0x10
lea esi, [ebp - 0x130]
lea eax, [ecx + 1]
cmovae esi, dword [ebp - 0x130]
add esi, ecx
mov dword [ebp - 0x120], eax
push esi
call fcn.0041b280
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x40682c
mov byte [ebp - 0x140], 0
lea ecx, [ebp - 0x130]
push dword [ebp - 0x140]
push 1
call fcn.0040b490
lea esi, [ebp - 0x118]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406835
mov edx, dword [ebp - 0x11c]
sub esi, ecx
mov ecx, dword [ebp - 0x120]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x40688a
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x120], eax
lea edi, [ebp - 0x130]
cmovae edi, dword [ebp - 0x130]
lea eax, [ebp - 0x118]
add edi, ecx
push eax
push edi
call fcn.0041b280
mov byte [edi + esi], 0
add esp, 0xc
mov edi, dword [ebp - 0x144]
jmp 0x4068aa
lea eax, [ebp - 0x118]
mov byte [ebp - 0x148], 0
push eax
push dword [ebp - 0x148]
lea ecx, [ebp - 0x130]
push esi
call fcn.0040b490
lea edx, [ebp - 0x130]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00406710
lea edx, [ebp - 0x130]
call fcn.004064f0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x406902
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4068f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40693b
push edx
push ecx
call fcn.004120fb
add esp, 8
mov esi, dword [ebp - 0x138]
inc ebx
test edi, edi
je 0x406780
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
int3
Function at 0x407720
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450a00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x407755
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
mov eax, esi
je 0x4077d0
cmp dword [esi + 0x14], 0x10
jb 0x40776a
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x40785a
push esi
mov edx, str.__del_dir_on_reboot_:
lea ecx, [ebp - 0x28]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00401ca0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x407856
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40784c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407876
jmp 0x40784c
cmp dword [esi + 0x14], 0x10
jb 0x4077d8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407856
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407856
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4077f8
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x40785a
push esi
mov edx, str.__del_file_on_reboot_:
lea ecx, [ebp - 0x40]
call fcn.0040a3a0
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00401ca0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x407856
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40784c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40787b
push edx
push ecx
call fcn.004120fb
add esp, 8
mov al, 1
jmp 0x40785c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cb8
mov esp, ebp
pop ebp
ret
call fcn.0041c6cd
call fcn.0041c6cd
int3