joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418d40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x418e3a
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp + 0x10]
push esi
push edi
push eax
push 0xf003f
push 0
push 0x5d6a30
push reloc.WS2_32.dll_bind
mov dword [ebp + 0x10], 0
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x418d97
push 0x5d4b80
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0xf003f
push 0
push 0x5d6a30
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x418dc8
push 0x5d4b80
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0xf003f
push 0
push 0x5d6a30
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x418df9
push 0x5d4e0c
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0xf003f
push 0
push 0x5d6a30
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x418e2a
push 0x5d4e0c
push dword [ebp + 0x10]
call esi
push dword [ebp + 0x10]
call edi
mov ecx, dword [ebp - 4]
push 1
push dword [ebp + 0xc]
call fcn.00418440
pop edi
pop esi
pop ebx
cmp dword [ebp + 8], 0
je 0x418e52
call fcn.00418e60
test eax, eax
je 0x418e52
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x24]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x419170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00418e60
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x60]
call eax
test al, al
je 0x4191d3
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005a2240
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4191d3
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00419590
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0059cf09
mov esp, ebp
pop ebp
ret
Function at 0x41a060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc63a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x66931c]
test eax, eax
jne 0x41a0c7
push 0x15c
call fcn.0059c99d
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41a0b9
mov ecx, eax
call fcn.004394d0
jmp 0x41a0bb
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x66931c], eax
mov ecx, eax
call fcn.0043c9f8
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a0f0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403240
push 9
push str.BKPdf.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00405a30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a172
cmp dword [ebp + 8], 0
mov ecx, esi
je 0x41a166
cmp dword [ebp + 0xc], 0
jne 0x41a14e
call fcn.0041a3f0
test eax, eax
je 0x41a153
mov ecx, esi
call fcn.004198f0
cmp dword [ebp + 0x10], 0
mov ecx, esi
jne 0x41a16d
call fcn.0041a1d0
test eax, eax
je 0x41a172
jmp 0x41a16b
call fcn.004198f0
mov ecx, esi
call fcn.00419170
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41a1a8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a19e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a1c5
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059cf09
mov esp, ebp
pop ebp
ret 0xc
call fcn.005a57f9
int3
Function at 0x41a1d0
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc66b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a2240
add esp, 0xc
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
push eax
push 0x656858
call fcn.00403240
xor esi, esi
mov dword [ebp - 4], 0
push esi
push 0x10
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a2c4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a267
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403240
push 1
push 0x5d4964
lea ecx, [ebp - 0x230]
call fcn.00405a30
push 8
push 0x5d4b80
lea ecx, [ebp - 0x230]
call fcn.00405a30
push 4
push 0x5d6ca8
lea ecx, [ebp - 0x230]
call fcn.00405a30
mov esi, 1
push 0
push 0x19
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a33e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a2e4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403240
push 1
push 0x5d4964
lea ecx, [ebp - 0x230]
call fcn.00405a30
push 8
push 0x5d4b80
lea ecx, [ebp - 0x230]
call fcn.00405a30
push 4
push 0x5d6ca8
lea ecx, [ebp - 0x230]
call fcn.00405a30
jmp 0x41a342
test esi, esi
je 0x41a383
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a383
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 1
jmp 0x41a385
xor esi, esi
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41a3c1
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a3b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a3dd
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059cf09
mov esp, ebp
pop ebp
ret
call fcn.005a57f9
int3
Function at 0x41a3f0
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005a2240
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005a2240
add esp, 0x18
mov dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], 7
lea ecx, [ebp - 0x438]
mov word [ebp - 0x438], ax
push eax
push 0x656858
call fcn.00403240
xor esi, esi
mov dword [ebp - 4], 0
push esi
push 0x17
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a50b
push 0x5d4b80
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x5d6c98
push eax
call fcn.00405d80
lea ecx, [ebp - 0x218]
add esp, 0x10
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a4c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00403240
push 8
push 0x5d4b80
lea ecx, [ebp - 0x438]
call fcn.00405a30
push 4
push 0x5d6ca8
lea ecx, [ebp - 0x438]
call fcn.00405a30
mov esi, 1
push 0
push 0x19
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41a598
push 0x5d4b80
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x5d6c98
push eax
call fcn.00405d80
lea ecx, [ebp - 0x218]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a550
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00403240
push 8
push 0x5d4b80
lea ecx, [ebp - 0x438]
call fcn.00405a30
push 4
push 0x5d6ca8
lea ecx, [ebp - 0x438]
call fcn.00405a30
jmp 0x41a59c
test esi, esi
je 0x41a5c2
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a5c2
mov esi, 1
jmp 0x41a5c4
xor esi, esi
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x41a600
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41a5f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a61c
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059cf09
mov esp, ebp
pop ebp
ret
call fcn.005a57f9
int3
Function at 0x41a980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cc7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.004400b4
add esp, 4
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41a9c4
mov eax, dword [eax]
push 0x656858
push str.5c9be
push str.BKOI
push eax
lea eax, [ebp - 0x40]
push 0x5d4e0c
push eax
call fcn.00453d37
add esp, 0x18
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x41aa23
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aa19
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ab1d
push edx
push ecx
call fcn.0059c9cd
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x30], eax
je 0x41aacd
call fcn.00404590
mov ecx, eax
call fcn.0043c9f8
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41aa67
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403240
push 0xb
push str.BKRtron.exe
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00405a30
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044677c
add esp, 8
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x28]
call fcn.00402fe0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41ab03
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41aaf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ab22
push edx
push ecx
call fcn.0059c9cd
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.0059cf09
mov esp, ebp
pop ebp
ret
call fcn.005a57f9
call fcn.005a57f9
int3
Function at 0x41d350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x41d3d7
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.BKrmir
push dword [ebp - 8]
call esi
test eax, eax
jne 0x41d3d7
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x208
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x41d3cd
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x41d3d7
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41d690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d71d
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.BKrmir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41d6e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x426320
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cd830
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x667ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 7
mov word [edx + 4], ax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], 7
mov dword [ebp - 4], eax
mov word [edx + 0x1c], ax
lea ecx, [edx + 0x34]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
mov word [ecx], ax
xor esi, esi
mov dword [edx + 0x5c], eax
mov dword [edx + 0x60], 7
mov word [edx + 0x4c], si
lea ebx, [edx + 0x64]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea edi, [edx + 0x7c]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [edx + 0x94]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push eax
push 0x656858
mov byte [ebp - 4], 6
mov dword [edx], eax
call fcn.00403240
mov ecx, dword [ebp - 0x10]
push 0
push 0x656858
lea ecx, [ecx + 0x4c]
call fcn.00403240
push 0
push 0x656858
mov ecx, ebx
call fcn.00403240
push 0
push 0x656858
mov ecx, edi
call fcn.00403240
push 0
push 0x656858
mov ecx, esi
call fcn.00403240
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa3c
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xa0c]
push edi
mov edi, dword [ebp + 8]
push 0x800
push 0
push eax
mov dword [ebp - 0xa3c], ecx
mov dword [ebp - 0xa2c], 0
call fcn.005a2240
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xa30], 0x800
push 0
push eax
call fcn.005a2240
add esp, 0x18
mov dword [ebp - 0xa38], 0x208
xor ebx, ebx
mov dword [ebp - 0xa34], 1
cmp dword [esi + 0x14], 8
jb 0x429bbd
mov esi, dword [esi]
lea eax, [ebp - 0xa2c]
push eax
push 0xf013f
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
call esi
test eax, eax
jne 0x429db2
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa34]
push eax
push 0
push 0x656858
push dword [ebp - 0xa2c]
call edi
mov ecx, str.BKPDF_Shell
lea eax, [ebp - 0xa0c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x429c38
test dx, dx
je 0x429c34
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x429c38
add eax, 4
add ecx, 4
test dx, dx
jne 0x429c12
xor eax, eax
jmp 0x429c3d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x429db0
push 0x800
push eax
lea eax, [ebp - 0xa0c]
push eax
call fcn.005a2240
add esp, 0xc
mov dword [ebp - 0xa30], 0x800
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa28], ebx
push eax
push 0xf013f
push 0
push str.InprocServer32
push dword [ebp - 0xa2c]
call esi
test eax, eax
jne 0x429cdd
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa34]
push eax
push 0
push 0x656858
push dword [ebp - 0xa28]
call edi
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa34]
push eax
push 0
push str.ThreadingModel
push dword [ebp - 0xa28]
call edi
push dword [ebp - 0xa28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xa3c]
lea eax, [ebp - 0xa24]
push eax
call fcn.0042db50
cmp dword [ebp - 0xa10], 8
lea eax, [ebp - 0xa24]
lea ecx, [ebp - 0xa0c]
cmovae eax, dword [ebp - 0xa24]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x429d36
test dx, dx
je 0x429d32
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x429d36
add ecx, 4
add eax, 4
test dx, dx
jne 0x429d10
xor eax, eax
jmp 0x429d3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x429da1
mov ecx, str.Apartment
lea eax, [ebp - 0x20c]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x429d88
test dx, dx
je 0x429d72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x429d88
add eax, 4
add ecx, 4
test dx, dx
jne 0x429d50
lea ecx, [ebp - 0xa24]
xor esi, esi
call fcn.00402fe0
xor ebx, ebx
test esi, esi
sete bl
jmp 0x429db2
sbb esi, esi
lea ecx, [ebp - 0xa24]
or esi, 1
call fcn.00402fe0
xor ebx, ebx
test esi, esi
sete bl
jmp 0x429db2
lea ecx, [ebp - 0xa24]
xor ebx, ebx
call fcn.00402fe0
jmp 0x429db2
xor ebx, ebx
push dword [ebp - 0xa2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059cf09
mov esp, ebp
pop ebp
ret 8
Function at 0x42a610
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x414]
push esi
push edi
push 0x208
push 0
push eax
call fcn.005a2240
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005a2240
mov ecx, dword [ebp + 8]
add esp, 0x18
cmp dword [ecx + 0x14], 8
jb 0x42a65d
mov ecx, dword [ecx]
lea edx, [ebp - 0x414]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42a665
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x42a67f
mov edx, dword [ebx]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42a681
lea edi, [ebp - 0x414]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42a6a0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x42a6c5
mov ecx, dword [ecx]
lea edx, [ebp - 0x20c]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42a6d0
cmp dword [ebx + 0x14], 8
jb 0x42a6e8
mov ebx, dword [ebx]
mov esi, ebx
nop word [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42a6f0
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42a706
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
jne 0x42a7de
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
je 0x42a7de
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00446e2f
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.005a2240
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s.bak_d
push eax
call fcn.00405d80
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005afadc
add esp, 0x2c
lea eax, [ebp - 0x61c]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp esi, 0xa
jge 0x42a7de
push 0
lea eax, [ebp - 0x20c]
inc esi
push eax
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x42a747
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059cf09
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42b7a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdf56
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x667ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x250], 0
push 0
push eax
mov dword [ebp - 0x24c], 0
call fcn.005a2240
add esp, 0xc
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x230], ax
push 0x4f
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers_
call fcn.00403240
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x250]
push ecx
push 0xf013f
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42b9a2
push 4
push 0x5d85d8
lea ecx, [ebp - 0x230]
call fcn.00403240
push 0xa
push str.BKStPDFCah
lea ecx, [ebp - 0x230]
call fcn.00405a30
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x24c]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42b996
push 1
push 0x5d8354
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00403240
push 0x24
push 0x5d8358
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00405a30
push 1
push 0x5d83a4
lea ecx, [ebp - 0x248]
call fcn.00405a30
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x248]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x42b931
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b950
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push 0x656858
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x248]
call fcn.00402fe0
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x42b9de
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42b9d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b9f7
push edx
push ecx
call fcn.0059c9cd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059cf09
mov esp, ebp
pop ebp
ret
call fcn.005a57f9
int3