joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x628
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x624], eax
test edi, edi
jne 0x40117f
xor al, al
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cda
add esp, 0x628
ret
lea eax, [esp + 0xc]
push esi
test eax, eax
je 0x401226
push 0x104
mov ecx, eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x401226
cmp esi, 0x104
jne 0x4011b5
cmp eax, 0x7a
je 0x401226
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.00404f14
add esp, 8
test eax, eax
je 0x4011ce
xor ecx, ecx
mov word [eax + 2], cx
lea edx, [esp + 4]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsScanner.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401226
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.Path
push eax
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40123e
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cda
add esp, 0x628
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
xor eax, eax
push edx
mov word [esp + 0x426], ax
call fcn.00404e81
add esp, 8
test eax, eax
jne 0x401298
lea eax, [esp + 0x10]
push eax
mov edx, 0x104
mov ecx, edi
call section..text
test eax, eax
setge al
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cda
add esp, 0x628
ret
push 0x104
lea ecx, [esp + 0x424]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x401226
cmp eax, 0x104
ja 0x401226
lea eax, [esp + 0x420]
push eax
lea ecx, [esp + 0x21c]
push ecx
call fcn.00404e81
add esp, 8
mov ecx, edi
test eax, eax
jne 0x40130b
lea edx, [esp + 0x10]
push edx
mov edx, 0x104
call section..text
test eax, eax
setge al
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00404cda
add esp, 0x628
ret
lea eax, [esp + 0x218]
push eax
mov edx, 0x104
call section..text
mov ecx, dword [esp + 0x628]
test eax, eax
setge al
pop esi
xor ecx, esp
call fcn.00404cda
add esp, 0x628
ret

Function at 0x401400
Capabilities:
Encode data using xor

Disassembly:
test esi, esi
je 0x401431
test ebx, ebx
je 0x401431
xor ecx, ecx
test edx, edx
jle 0x40142b
mov eax, dword [ebx]
push ebp
movzx ebp, byte [ecx + esi]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [edi + ebp*4]
inc ecx
cmp ecx, edx
jl 0x401411
mov dword [ebx], eax
pop ebp
mov eax, 1
ret
xor eax, eax
ret
Function at 0x401530
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x401564
mov dword [0x41b260], 0
pop edi
pop ecx
ret
push esi
mov esi, 1
cmp eax, esi
jle 0x40158c
mov edi, edi
mov ecx, dword [edi + esi*4]
push str._InstLog
push ecx
call fcn.00404e81
add esp, 8
test eax, eax
je 0x401596
inc esi
cmp esi, dword [esp + 8]
jl 0x401570
mov dword [0x41b260], 0
pop esi
pop edi
pop ecx
ret

Function at 0x4015a0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1278
call fcn.0040cbd0
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x1274], eax
mov eax, dword [esp + 0x127c]
push ebx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
test eax, eax
je 0x401607
test ecx, ecx
je 0x401607
test edi, edi
je 0x401607
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401622
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor al, al
mov ecx, dword [esp + 0x1284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404cda
add esp, 0x1278
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [esp + 0x424], eax
mov dword [esp + 0x428], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esp + 0x42c]
push ecx
push ebp
call ebx
cmp dword [esp + 0x10], 8
je 0x401667
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401607
test eax, eax
je 0x401656
or esi, 0xffffffff
lea edx, [esp + 0x20]
mov dword [esp + 0x14], esi
call fcn.00401370
push 0
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0xe8c]
push eax
push ebp
call ebx
mov edx, dword [esp + 0x10]
test edx, edx
jbe 0x4016e0
lea ebx, [ebx]
lea ebx, [esp + 0x14]
lea esi, [esp + 0xe80]
lea edi, [esp + 0x20]
call fcn.00401400
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x400
mov edx, esi
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
test edx, edx
ja 0x4016a0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
not esi
cmp esi, dword [esp + 0x424]
jne 0x40165e
push 0
push 0
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401656
push 0xa52
lea eax, [esp + 0x42c]
push 0
push eax
call fcn.00409a00
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xa52
lea edx, [esp + 0x434]
push edx
push ebp
call ebx
cmp dword [esp + 0x10], 0xa52
jne 0x401656
test eax, eax
je 0x401656
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov ecx, 0x294
lea esi, [esp + 0x428]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov al, 1
jmp 0x401609
Function at 0x401860
Capabilities:
Get disk size

Disassembly:
sub esp, 0x240
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x244]
test eax, eax
je 0x4018d5
test edi, edi
je 0x4018d5
test esi, esi
je 0x4018d5
lea edx, [esp + 0x30]
mov dword [esi], 0
call fcn.004014d0
push 0x415eb0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018fd
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4018fd
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
call eax
test eax, eax
jne 0x4018ec
mov dword [esi], 0x6a
xor al, al
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00404cda
add esp, 0x240
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
shrd eax, ecx, 0x14
shr ecx, 0x14
jmp 0x401931
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x4018cf
mov eax, dword [esp + 0xc]
imul eax, dword [esp + 4]
imul eax, dword [esp + 8]
shr eax, 0x14
cmp eax, edi
jae 0x401952
mov dword [esi], 0x6b
xor al, al
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00404cda
add esp, 0x240
ret
mov ecx, dword [esp + 0x23c]
xor ecx, esp
mov al, 1
call fcn.00404cda
add esp, 0x240
ret
Function at 0x401970
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0x84]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x4019fc
cmp ebp, ebx
je 0x401a06
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401994
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4019b0
sub eax, esi
sar eax, 1
lea esi, [eax + edx + 4]
lea eax, [esi + esi]
push eax
call fcn.00405cd3
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4019fc
mov ecx, dword [esp + 0x88]
push ebp
push ecx
push str.__s___s
mov ecx, esi
mov ebx, edi
call fcn.00401440
add esp, 0xc
test eax, eax
jge 0x401a0a
push edi
call fcn.00405bf6
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
xor edi, edi
jmp 0x401a13
mov esi, dword [esp + 0x88]
xor ebx, ebx
mov edx, 0xc
mov ecx, edx
lea eax, [esp + 0x1c]
mov edi, edi
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x401a20
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, edx
lea eax, [esp + 0x10]
lea ebx, [ebx]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x401a40
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, 0x44
lea eax, [esp + 0x38]
lea ecx, [ecx]
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x401a60
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
push ebx
xor edx, edx
push ebx
mov word [esp + 0x80], dx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push esi
mov dword [esp + 0x60], 0x44
mov dword [esp + 0x8c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401ac4
cmp edi, ebx
je 0x4019fc
push edi
call fcn.00405bf6
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
cmp edi, ebx
je 0x401ad1
push edi
call fcn.00405bf6
add esp, 4
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401b00
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x28]
push eax
call esi
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x74
ret
Function at 0x404460
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa30
mov eax, dword [0x41a2b4]
xor eax, esp
mov dword [esp + 0xa2c], eax
push ebx
push str.GetRandomTemporaryFolder
lea eax, [esp + 8]
push eax
call fcn.00401b20
push str.Entry
mov ecx, 2
lea ebx, [esp + 8]
call fcn.00401d00
add esp, 4
test edi, edi
je 0x40462b
lea ecx, [esp + 0x828]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4044ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTempPath_Failed___u_
mov ecx, 1
call fcn.00401d00
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.00404cda
add esp, 0xa30
ret
push esi
push 0
call fcn.00406ae3
push eax
call fcn.00406f3b
call fcn.00406f4d
cdq
mov ecx, 0x64
idiv ecx
mov esi, edx
call fcn.00406f4d
cdq
mov ecx, 0x64
idiv ecx
mov ecx, 0x104
lea ebx, [esp + 0x62c]
push edx
push esi
lea edx, [esp + 0x83c]
push edx
push str._sQH_02d_02d.ins
call fcn.00401440
add esp, 0x18
test eax, eax
jl 0x4045a9
jmp 0x404540
lea eax, [esp + 0x624]
push 0
push eax
call fcn.00405a8d
add esp, 8
test eax, eax
jne 0x4045d9
push eax
call fcn.00406ae3
push eax
call fcn.00406f3b
call fcn.00406f4d
cdq
mov ecx, 0x64
idiv ecx
mov esi, edx
call fcn.00406f4d
cdq
mov ecx, 0x64
idiv ecx
mov ecx, 0x104
lea ebx, [esp + 0x62c]
push edx
push esi
lea edx, [esp + 0x83c]
push edx
push str._sQH_02d_02d.ins
call fcn.00401440
add esp, 0x18
test eax, eax
jge 0x404540
push eax
push str.StringCchPrintf_1_Failed___08X_
mov ecx, 1
lea ebx, [esp + 0x10]
call fcn.00401d00
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.00404cda
add esp, 0xa30
ret
lea eax, [esp + 0x624]
push eax
push str.Unique_Path_Found:__s
mov ecx, 2
lea ebx, [esp + 0x10]
call fcn.00401d00
add esp, 8
lea ecx, [esp + 0x624]
push ecx
mov edx, 0x104
mov ecx, edi
call section..text
test eax, eax
jl 0x4045a9
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xa2c]
xor ecx, esp
call fcn.00404cda
add esp, 0xa30
ret
push str.NULL_Parameter_Received.
mov ecx, 1
lea ebx, [esp + 8]
call fcn.00401d00
mov ecx, dword [esp + 0xa34]
add esp, 4
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00404cda
add esp, 0xa30
ret
Function at 0x404cda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a2b4]
jne 0x404ce4
repz ret
jmp fcn.0040711f

Function at 0x405a04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x405a35
call fcn.004058dd
mov dword [eax], esi
call fcn.004058ca
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004083b6
add esp, 0x14
push 0x16
pop eax
jmp 0x405a8a
test dword [ebp + 0xc], 0xfffffff9
jne 0x405a11
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405a62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004058f0
pop ecx
call fcn.004058ca
mov eax, dword [eax]
jmp 0x405a8a
test al, 0x10
jne 0x405a88
test al, 1
je 0x405a88
test byte [ebp + 0xc], 2
je 0x405a88
call fcn.004058dd
mov dword [eax], 5
call fcn.004058ca
mov dword [eax], 0xd
jmp 0x405a59
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4107a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407c9f
and dword [ebp - 4], 0
cmp dword [0x41be38], 0
mov ebx, eax
jne 0x410856
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410907
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410907
push eax
call fcn.00407c2d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41be38], eax
call esi
push eax
call fcn.00407c2d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41be3c], eax
call esi
push eax
call fcn.00407c2d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41be40], eax
call esi
push eax
call fcn.00407c2d
pop ecx
mov dword [0x41be48], eax
test eax, eax
je 0x410856
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c2d
pop ecx
mov dword [0x41be44], eax
mov eax, dword [0x41be44]
cmp eax, ebx
je 0x4108ae
cmp dword [0x41be48], ebx
je 0x4108ae
push eax
call fcn.00407ca8
push dword [0x41be48]
mov esi, eax
call fcn.00407ca8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4108ae
test edi, edi
je 0x4108ae
call esi
test eax, eax
je 0x4108a5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4108a5
test byte [ebp - 0xc], 1
jne 0x4108ae
or dword [ebp + 0x10], 0x200000
jmp 0x4108e7
mov eax, dword [0x41be3c]
cmp eax, ebx
je 0x4108e7
push eax
call fcn.00407ca8
pop ecx
test eax, eax
je 0x4108e7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4108e7
mov eax, dword [0x41be40]
cmp eax, ebx
je 0x4108e7
push eax
call fcn.00407ca8
pop ecx
test eax, eax
je 0x4108e7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41be38]
call fcn.00407ca8
pop ecx
test eax, eax
je 0x410907
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410909
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x667fc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x255000]
push edi
jmp 0x667fda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x667fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x667fd0
mov eax, 1
add ebx, ebx
jne 0x667ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x668004
jne 0x668023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x668023
dec eax
add ebx, ebx
jne 0x668010
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x667fe8
add ebx, ebx
jne 0x66801f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x668075
xor ecx, ecx
sub eax, 3
jb 0x66803b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6680aa
sar eax, 1
mov ebp, eax
jmp 0x668046
add ebx, ebx
jne 0x668046
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x668014
inc ecx
add ebx, ebx
jne 0x668054
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x668014
add ebx, ebx
jne 0x668061
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x668056
jne 0x668072
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x668056
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x668094
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x668086
jmp 0x667fd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x668094
add edi, ecx
jmp 0x667fd6
pop esi
mov edi, esi
mov ecx, 0x767
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6680b2
cmp byte [edi], 5
jne 0x6680b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6680b7
lea edi, [esi + 0x265000]
mov eax, dword [edi]
or eax, eax
je 0x66812f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a7768]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a77b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6680e4
mov ecx, edi
jns 0x668113
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4a77c0]
or eax, eax
je 0x668129
mov dword [ebx], eax
add ebx, 4
jmp 0x668101
call dword [esi + 0x4a77bc]
mov ebp, dword [esi + 0x4a77c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x668163
sub esp, 0xffffff80
jmp 0x40cd2f
Function at 0x40c5c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 8], ecx
mov ecx, 0x52422b
call fcn.004c6bbd
push 0
lea ecx, [ebp - 0x18]
call fcn.00406e90
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040c060
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c61e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.004079b0
mov eax, dword [ebp - 0x1c]
jmp 0x40c6a0
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40c67e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040c5c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c675
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x18]
call fcn.004079b0
mov eax, dword [ebp - 0x20]
jmp 0x40c6a0
mov dword [ebp - 0xc], 0x100
jmp 0x40c625
lea ecx, [ebp - 0x18]
call fcn.00409500
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00409b50
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call fcn.004079b0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 4

Function at 0x40c6b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, 0x524229
call fcn.004c6bbd
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40c719
push 0x4f6edc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40c6e6
mov eax, 1
jmp 0x40c737
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c717
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40c737
jmp 0x40c732
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x40c732
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40c737
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40d460
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eead5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov ecx, 0x52429a
call fcn.004c6bbd
lea ecx, [ebp - 0x40]
call fcn.00406cd0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4f699c
call fcn.00406060
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00406000
mov byte [ebp - 4], 0
call fcn.004127d0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00417960
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
call fcn.00405fd0
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
jmp 0x40d4f3
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x40d5b4
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x40]
call fcn.004084a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x40d585
push 1
mov ecx, dword [ebp - 0x18]
call fcn.0040abc0
movzx eax, ax
cmp eax, 0x3a
je 0x40d546
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407920
jmp 0x40d5cf
push 0x4f69a0
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00408630
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004089c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407640
jmp 0x40d4ea
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.004089c0
push 0
lea ecx, [ebp - 0x10]
call fcn.004084d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4f69a4
lea ecx, [ebp - 0x10]
call fcn.00408a70
jmp 0x40d4ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret