joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4142f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x348
push ebx
push ebp
push edi
mov edi, dword [esp + 0x358]
test edi, edi
je 0x414472
mov ecx, dword [esp + 0x35c]
test ecx, ecx
je 0x414472
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x110], 0
and ecx, 3
push 0x104
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x110]
push str.drivers_
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x414472
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x110]
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
push edx
push str._s.sys
lea eax, [esp + 0x14]
push 0x103
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x214]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414472
push esi
lea eax, [esp + 0x244]
lea ecx, [esp + 0x114]
push eax
push ecx
push 0x420694
lea edx, [esp + 0x1c]
push 0x103
push edx
call edi
push 1
push 1
push 1
lea eax, [esp + 0x30]
push 1
push eax
call fcn.00414150
add esp, 0x28
test eax, eax
je 0x414442
lea ecx, [esp + 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x360]
lea edx, [esi + ebp + 2]
cmp edx, eax
jge 0x414459
mov edx, dword [esp + 0x35c]
lea eax, [esi + 1]
push eax
lea ecx, [esp + 0x248]
lea eax, [edx + ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ebp, [esi + ebp + 1]
lea ecx, [esp + 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4143c8
test ebp, ebp
pop esi
je 0x41445f
inc ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x348
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x348
ret
Function at 0x414480
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54c
push ebp
mov ebp, dword [esp + 0x554]
push esi
push edi
test ebp, ebp
jne 0x4144a0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x54c
ret
mov cl, 0xc5
mov al, 0xca
mov byte [esp + 0x14], cl
mov byte [esp + 0x1b], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x21], cl
mov byte [esp + 0x25], cl
mov byte [esp + 0x2d], al
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dl, 0xe2
push 0x22
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x21], dl
mov byte [esp + 0x25], dl
push 0x23
mov dl, 0xf7
push ecx
push 0x10
mov byte [esp + 0x20], 0xe3
mov byte [esp + 0x21], 0xcf
mov byte [esp + 0x22], 0xc1
mov byte [esp + 0x23], 0xf1
mov byte [esp + 0x24], 0xf5
mov byte [esp + 0x25], 0xdb
mov byte [esp + 0x26], 0xce
mov byte [esp + 0x27], 0xe6
mov byte [esp + 0x29], 0xe4
mov byte [esp + 0x2a], 0xe0
mov byte [esp + 0x2b], 0xc0
mov byte [esp + 0x2c], 0xde
mov byte [esp + 0x2e], 0xd1
mov byte [esp + 0x30], 0xde
mov byte [esp + 0x32], 0xe0
mov byte [esp + 0x34], 0xdc
mov byte [esp + 0x36], dl
mov byte [esp + 0x37], 0xd1
mov byte [esp + 0x38], 0xec
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3b], 0xd7
mov byte [esp + 0x3c], 0xc6
mov byte [esp + 0x3d], 0xff
mov byte [esp + 0x3e], 0xf1
mov byte [esp + 0x3f], 0xc0
mov byte [esp + 0x40], 0xc3
call fcn.00416710
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16d]
mov byte [esp + 0x16c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x16c]
push 0x400
push edx
stosb byte es:[edi], al
call fcn.004142f0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4145b1
pop edi
pop esi
pop ebp
add esp, 0x54c
ret
lea eax, [esp + 0x158]
push esi
push eax
call fcn.00416d00
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ebp
stosw word es:[edi], ax
push ecx
push 0x420694
lea edx, [esp + 0x68]
push 0x103
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
lea eax, [esp + 0x158]
lea ecx, [esp + 0x54]
push esi
push eax
push 3
push str.Config
push ecx
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x54c
ret

Function at 0x415270
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 2
push 1
push 0x40000000
push ebx
xor edi, edi
call fcn.00416970
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x4152bd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
push ecx
push esi
call fcn.00416a30
add esp, 0x10
test eax, eax
je 0x4152b0
mov edi, 1
push esi
call fcn.00416b40
add esp, 4
test edi, edi
jne 0x4152c4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4153c0
Capabilities:
Access peb ldr_data
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419e30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov al, 0x9a
push esi
mov byte [esp + 0x30], al
mov byte [esp + 0x38], al
push edi
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x2c]
push 0x14
push eax
push 0x26
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 1
mov dword [esp + 0x7c], edi
mov byte [esp + 0x38], 0x95
mov byte [esp + 0x39], 0xe3
mov byte [esp + 0x3a], 0xee
mov byte [esp + 0x3b], 0xef
mov byte [esp + 0x3c], 0x91
mov byte [esp + 0x3d], 0xed
mov byte [esp + 0x3e], 0xfa
mov byte [esp + 0x3f], 0xfe
mov byte [esp + 0x41], 0xf8
mov byte [esp + 0x42], 0xcd
mov byte [esp + 0x43], 0xd5
mov byte [esp + 0x44], 0xa5
mov byte [esp + 0x45], 0xc9
mov byte [esp + 0x46], 0xc6
mov byte [esp + 0x47], 0xcf
mov byte [esp + 0x49], 0xf8
mov byte [esp + 0x4a], 0xea
mov byte [esp + 0x4b], 0xf3
call fcn.00404880
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push str.Install
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], 0
call fcn.00404910
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4155a8
mov al, 0x99
push 0x1c
mov byte [esp + 0x44], al
mov byte [esp + 0x5c], al
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push 0x29
mov byte [esp + 0x4d], 0xdd
mov byte [esp + 0x4e], 0xc4
mov byte [esp + 0x4f], 0xd9
mov byte [esp + 0x50], 0xbb
mov byte [esp + 0x51], 0xce
mov byte [esp + 0x52], 0xc6
mov byte [esp + 0x53], 0x9e
mov byte [esp + 0x54], 0x8f
mov byte [esp + 0x55], 0xc6
mov byte [esp + 0x56], 0xc7
mov byte [esp + 0x57], 0xdb
mov byte [esp + 0x58], 0xba
mov byte [esp + 0x59], 0xf3
mov byte [esp + 0x5a], 0xff
mov byte [esp + 0x5b], 0xfb
mov byte [esp + 0x5c], 0x87
mov byte [esp + 0x5d], 0xec
mov byte [esp + 0x5e], 0xee
mov byte [esp + 0x5f], 0xf0
mov byte [esp + 0x60], 0x9d
mov byte [esp + 0x61], 0xf3
mov byte [esp + 0x62], 0xf8
mov byte [esp + 0x63], 0xed
mov byte [esp + 0x65], 0xc3
mov byte [esp + 0x66], 0xde
mov byte [esp + 0x67], 0xcd
call fcn.00404880
push edi
push esi
mov byte [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x415582
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], al
call fcn.004048d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.004048d0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea ecx, [esp + 0xc]
call fcn.00404910
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 0
call fcn.004048d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.004048d0
mov ecx, dword [esp + 0x5c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 8
Function at 0x416930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
mov edx, ecx
dec ecx
test edx, edx
je 0x416967
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0xc]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41cc28]
xor eax, edx
inc ecx
dec esi
jne 0x416947
pop esi
pop ebx
not eax
ret

Function at 0x4169d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x4169fa
lea eax, [esp + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x18
ret

Function at 0x416a30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x24]
xor ecx, ecx
xor eax, eax
cmp edx, 0xffffffff
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
je 0x416a58
lea eax, [esp]
mov edx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x24]
neg eax
sbb eax, eax
and eax, ecx
add esp, 0x14
ret

Function at 0x416aa0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
jne 0x416aab
pop esi
ret
push 3
push 1
push 0x80000000
push eax
call fcn.00416970
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x416ac8
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.00416b40
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x416ca0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x416ccb
mov edi, dword [esp + 0x14]
test edi, edi
je 0x416ccb
xor eax, eax
test edi, edi
jle 0x416ccb
mov cl, byte [esp + 0xc]
mov dl, byte [eax + esi]
add dl, al
xor dl, cl
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x416cbc
pop edi
pop esi
ret

Function at 0x416cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x416cfb
mov edi, dword [esp + 0x14]
test edi, edi
je 0x416cfb
xor eax, eax
test edi, edi
jle 0x416cfb
mov cl, byte [esp + 0xc]
mov dl, byte [eax + esi]
xor dl, cl
sub dl, al
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x416cec
pop edi
pop esi
ret

Function at 0x416d00
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x416d26
mov edx, dword [esp + 8]
test edx, edx
je 0x416d26
xor eax, eax
test edx, edx
jle 0x416d26
push ebx
mov bl, byte [eax + ecx]
xor bl, 0xa5
mov byte [eax + ecx], bl
inc eax
cmp eax, edx
jl 0x416d17
pop ebx
ret
Function at 0x416d50
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4179c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4179de
xor eax, eax
pop esi
add esp, 0x104
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 0x104
push esi
push ecx
call ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x10]
push esi
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop ebx
pop esi
add esp, 0x104
ret 4
Function at 0x417f20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
push 0x40
push eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0xbc]
push 0x40
push ecx
lea edx, [esp + 0x44]
push 0x40
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.00417c70
test eax, eax
je 0x4180cd
push esi
lea ecx, [esp + 0x18]
push 0x20
lea edx, [esp + 0xbc]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x4180cd
mov eax, dword [esp + 0x13c]
mov ebp, dword [esp + 0x140]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x4180bf
cmp dword [ebp], eax
jb 0x4180bf
xor esi, esi
mov dword [ebp], eax
test eax, eax
jbe 0x418082
cmp ebx, dword [esp + 0x28]
jae 0x418082
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xf5]
mov byte [esp + 0xf4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push ebx
stosw word es:[edi], ax
push ecx
push str._s_d
lea edx, [esp + 0x100]
push 0x3f
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp]
add esp, 0x14
sub eax, esi
mov edi, 0x4000
cmp eax, 0x4000
jg 0x41804c
mov edi, eax
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
push eax
push edi
lea edx, [esi + ecx]
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x418082
mov eax, dword [ebp]
add esi, edi
inc ebx
cmp esi, eax
jb 0x417ff6
mov edx, dword [ebp]
mov esi, dword [esp + 0x13c]
mov eax, dword [esp + 0x20]
push edx
push esi
push eax
call fcn.00416cd0
mov ecx, dword [ebp]
push ecx
push esi
call fcn.00416930
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x4180dc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x124
ret 0xc
push 0xea
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x124
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0xc
Function at 0x4180f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x120
push ebp
mov ebp, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xa9]
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xac]
lea ecx, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x134]
push 0x40
push ecx
lea edx, [esp + 0x38]
push 0x40
push edx
push eax
mov ecx, ebp
call fcn.00417c70
test eax, eax
jne 0x418175
pop edi
pop ebp
add esp, 0x120
ret 4
push ebp
lea ecx, [esp + 0xc]
push 0x20
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x41819c
pop edi
pop ebp
add esp, 0x120
ret 4
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
push esi
xor esi, esi
test eax, eax
jbe 0x418207
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xf1]
mov byte [esp + 0xf0], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xb0]
push esi
stosw word es:[edi], ax
push ecx
push str._s_d
lea edx, [esp + 0xfc]
push 0x3f
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x30]
push ebp
push 0
push 0
push eax
push ecx
call ebx
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jb 0x4181ae
push ebp
push 0
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x3c]
push edx
push eax
call ebx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x120
ret 4
Function at 0x418280
Capabilities:
Set registry value

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x70]
push ebp
push esi
mov esi, ecx
push edi
test ebx, ebx
mov dword [esp + 0x10], esi
je 0x418375
mov ebp, dword [esp + 0x80]
test ebp, ebp
je 0x418375
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x78]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.00418230
test eax, eax
je 0x418375
push ebp
lea edx, [esp + 0x18]
push ebx
push edx
mov ecx, esi
call fcn.00417c10
add ebp, 0x20
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x418375
mov ecx, 8
lea esi, [esp + 0x14]
mov edi, ebx
push ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
mov eax, ecx
lea edi, [ebx + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
push eax
mov esi, eax
call fcn.00416ca0
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x34]
mov dword [ebx + 0xc], esi
push ebp
push ebx
push 3
lea edx, [eax + 0x108]
mov eax, dword [eax + 0x104]
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push ebx
mov esi, eax
call fcn.00402188
add esp, 4
xor eax, eax
test esi, esi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x64
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 0xc
Function at 0x418390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
push esi
mov esi, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x54]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00418230
test eax, eax
jne 0x4183cb
pop edi
pop esi
add esp, 0x44
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], 0
mov eax, dword [ebp]
add eax, 0x20
push eax
mov dword [esp + 0x5c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x418496
lea edx, [esp + 0x58]
lea eax, [esp + 0x60]
push edx
push ebx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x104]
lea edx, [esi + 0x108]
push ecx
push edx
push eax
mov dword [esp + 0x78], 3
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41848d
mov ecx, dword [esp + 0x58]
mov edx, dword [ebx + 0xc]
push ecx
push ebx
push edx
call fcn.00416cd0
mov edi, dword [esp + 0x68]
add esp, 0xc
test edi, edi
je 0x41847c
mov eax, dword [ebx + 8]
mov ecx, dword [ebp]
cmp eax, ecx
ja 0x41847c
lea esi, [ebx + 0x20]
push eax
push esi
mov dword [ebp], eax
call fcn.00416930
mov ecx, dword [ebx + 0x10]
add esp, 8
cmp eax, ecx
jne 0x41848d
mov ecx, dword [ebp]
mov dword [esp + 0x10], 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41848d
mov ecx, dword [ebx + 8]
push 0xea
mov dword [ebp], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.00402188
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x44
ret 0xc

Function at 0x4184b0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x40
push esi
mov esi, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x50]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.00418230
test eax, eax
jne 0x4184eb
pop edi
pop esi
add esp, 0x40
ret 4
mov ecx, dword [esi + 0x104]
lea edx, [esp + 8]
lea eax, [esi + 0x108]
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x40
ret 4
Function at 0x4185b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d038
push 0x418dca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp ax, 0x454e
je 0x418616
cmp ax, 0x454c
je 0x418616
cmp ax, 0x5a4d
je 0x418616
cmp eax, 0x4550
mov dword [ebp - 4], 0xffffffff
jne 0x418643
mov eax, 0x4550
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and eax, 0xffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4194e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x419ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
mov cl, 0xcf
mov al, 0xd4
mov byte [esp + 0x3b], cl
mov byte [esp + 0x44], al
mov byte [esp + 0x4a], al
mov byte [esp + 0x4c], cl
mov byte [esp + 0x52], al
mov byte [esp + 0x5c], al
push edi
mov cl, 0xfe
lea eax, [esp + 0x3c]
push 0x29
mov dl, 0xf4
mov byte [esp + 0x5d], cl
mov byte [esp + 0x5f], cl
mov byte [esp + 0x63], cl
push eax
push 6
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0xf5
mov byte [esp + 0x49], 0xc3
mov byte [esp + 0x4a], 0xce
mov byte [esp + 0x4c], 0xf1
mov byte [esp + 0x4d], 0xcd
mov byte [esp + 0x4e], 0xda
mov byte [esp + 0x4f], 0xde
mov byte [esp + 0x50], 0xfa
mov byte [esp + 0x51], 0xc1
mov byte [esp + 0x52], 0xe1
mov byte [esp + 0x53], 0xf8
mov byte [esp + 0x55], 0xe3
mov byte [esp + 0x56], 0xfb
mov byte [esp + 0x57], dl
mov byte [esp + 0x58], 0xc0
mov byte [esp + 0x59], 0xf8
mov byte [esp + 0x5b], 0xcc
mov byte [esp + 0x5d], 0xe2
mov byte [esp + 0x5e], 0xec
mov byte [esp + 0x5f], dl
mov byte [esp + 0x60], 0xd1
mov byte [esp + 0x61], 0xff
mov byte [esp + 0x63], 0xd8
mov byte [esp + 0x64], 0xd3
mov byte [esp + 0x66], 0xfa
mov byte [esp + 0x68], 0xc8
mov byte [esp + 0x69], 0xf8
mov byte [esp + 0x6a], 0xde
mov byte [esp + 0x6d], 0xff
mov byte [esp + 0x6e], 0xe1
mov byte [esp + 0x6f], dl
mov byte [esp + 0x70], 0xc8
call fcn.00404880
lea ecx, [esp + 0x10]
push 9
mov al, 0xe8
push ecx
push 0xc
lea ecx, [esp + 0x28]
mov dword [esp + 0x7c], 0
mov byte [esp + 0x1c], 0xef
mov byte [esp + 0x1d], 0xe7
mov byte [esp + 0x1e], 0xfd
mov byte [esp + 0x1f], 0xd5
mov byte [esp + 0x20], 0xc3
mov byte [esp + 0x21], 0xff
mov byte [esp + 0x22], 0xd1
mov byte [esp + 0x23], al
mov byte [esp + 0x24], al
call fcn.00404880
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x10
call fcn.00404910
lea edx, [esp + 8]
mov edi, eax
push edx
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00404910
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x419672
mov eax, dword [esp + 8]
test eax, eax
je 0x419672
mov esi, 1
jmp 0x419674
xor esi, esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.004048d0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004048d0
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret