joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417e20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5325d5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x20], 8
lea edx, [ebp - 0x44]
push edx
push 0x2001f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 2
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x417e7c
xor bl, bl
jmp 0x417f36
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], 0x53edcc
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], eax
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00419a30
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
test ecx, ecx
je 0x417ec8
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp + 0x4c]
lea edx, [ebp + 0x3c]
cmp dword [ebp + 0x50], 8
lea ecx, [ebp + 0x24]
cmovae edx, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], 8
lea eax, [eax*2 + 4]
push eax
cmovae ecx, dword [ebp + 0x24]
push edx
push 1
push 0
push ecx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 5
jne 0x417f17
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x418020
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x417f36
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x417f70
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417f66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418025
push edx
push ecx
call fcn.00460b61
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x417fba
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417fb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418025
push edx
push ecx
call fcn.00460b61
add esp, 8
mov edx, dword [ebp + 0x50]
xor eax, eax
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 7
mov word [ebp + 0x24], ax
cmp edx, 8
jb 0x418004
mov ecx, dword [ebp + 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417ffa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418025
push edx
push ecx
call fcn.00460b61
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.0045f8ac
call fcn.004f639a
int3
Function at 0x418030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532621
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], 0x53ede4
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], eax
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00419ab0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
test ecx, ecx
je 0x4180b0
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x44]
push ecx
push 0x2001f
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4180d6
xor bl, bl
jmp 0x4180fa
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x3c]
push 4
push ecx
push 4
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 4
jne 0x418114
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4181d0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x418133
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x418169
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41815f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4181d5
push edx
push ecx
call fcn.00460b61
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x4181b3
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4181a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4181d5
push edx
push ecx
call fcn.00460b61
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.0045f8ac
call fcn.004f639a
int3
Function at 0x4181e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53266d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x20], 8
lea edx, [ebp - 0x44]
push edx
push 0x2001f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41823c
xor bl, bl
jmp 0x4182db
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], 0x53ee5c
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], eax
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00419af0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
test ecx, ecx
je 0x418288
mov edx, dword [ecx]
lea eax, [ebp - 0x70]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete bl
cmp byte [ebp - 0x18], 0
mov byte [ebp - 4], 4
jne 0x4182bc
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x418377
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4182db
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x418311
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418307
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41837c
push edx
push ecx
call fcn.00460b61
add esp, 8
mov edx, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 7
mov word [ebp + 0xc], ax
cmp edx, 8
jb 0x41835b
mov ecx, dword [ebp + 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418351
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41837c
push edx
push ecx
call fcn.00460b61
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.0045f8ac
call fcn.004f639a
int3
Function at 0x4190a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x419242
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x419121
cmp eax, 2
jne 0x419102
push str.Key_not_found._n
call fcn.00419e30
add esp, 4
jmp 0x419242
push str.Error_opening_key._n
call fcn.00419e30
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x419144
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41921f
lea esi, [ebp - 0x20c]
sub esi, edi
nop word [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x4191be
movzx ecx, word [esi + eax]
test cx, cx
je 0x4191be
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4191a0
lea ecx, [eax - 2]
test edx, edx
push ebx
push dword [ebp - 0x218]
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
call fcn.004190a0
add esp, 8
test eax, eax
je 0x419219
lea eax, [ebp - 0x220]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x419190
mov esi, dword [ebp - 0x218]
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
jne 0x41910f
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x41d110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41d11e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x41d1dd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
sub edi, 1
jne 0x41d136
pop edi
test esi, esi
je 0x41d1fb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x53f020]
sub esi, 1
jne 0x41d1e1
not eax
pop esi
pop ebp
ret
Function at 0x41d860
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x41d937
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x41d898
cmp dword [esi + 0x40], ebx
jae 0x41d898
push ecx
call fcn.00460be6
add esp, 4
mov dword [esi + 0x3c], 0
jmp 0x41d89c
test eax, eax
jne 0x41d8ae
lea eax, [ebx + ebx]
push eax
call fcn.00460bdd
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call fcn.004ec850
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x41d934
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x53f020]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x53f020]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x41d8c2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41d975
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x41d95c
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.004ec850
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x41d997
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41df20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x41df82
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x41dfc9
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.004ec850
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
push esi
push dword [edi + 0x78]
call fcn.0041d110
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41dfc2
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dfc9
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push ebx
push dword [edi + 0x78]
call fcn.0041d110
add esp, 0xc
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x421390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5329e1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00416c50
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 4], 0
cmp eax, 1
jb 0x421514
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0x53ed58
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.004281a0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00428380
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42144b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421441
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421519
push edx
push ecx
call fcn.00460b61
add esp, 8
push 8
push str.kangnote
lea ecx, [ebp - 0x28]
call fcn.00419c70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, esi
cmovae ecx, dword [ebp - 0x28]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x421470
push 1
push 0x53ed58
lea ecx, [ebp - 0x28]
call fcn.00419c70
push 0xc
push str.kangnote.exe
lea ecx, [ebp - 0x28]
call fcn.00419c70
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 0x4214bb
mov esi, 1
jmp 0x4214c2
xor eax, eax
mov word [esi], ax
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4214f8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4214ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421519
push edx
push ecx
call fcn.00460b61
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.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.00404fd0
call fcn.004f639a
int3
Function at 0x4234b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push esi
mov esi, dword [ebp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x4234f2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
inc eax
push edi
push eax
call fcn.00460bdd
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4235b3
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x53fd0c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4235b3
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004ed350
mov edx, dword [ebp - 0x114]
mov ecx, dword [edx + 0xc]
movzx eax, cx
push eax
movzx eax, word [edx + 8]
shr ecx, 0x10
push ecx
push eax
movzx eax, word [edx + 0x12]
push eax
lea eax, [ebp - 0x108]
push 0x53fd10
push eax
call fcn.00428b10
push edi
call fcn.00460be6
lea eax, [ebp - 0x108]
add esp, 0x28
mov ecx, eax
sub esi, ecx
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x423590
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push edi
call fcn.00460be6
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
Function at 0x427350
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5330b6
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x894], edi
call fcn.004ed350
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004ed350
add esp, 0x18
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x53fa54
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x898], eax
cmp eax, 0xffffffff
je 0x4275a5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [eax + eax]
test byte [ebp - 0x890], 0x10
je 0x427446
cmp word [ebp - 0x864], 0x2e
je 0x427446
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 0x894]
lea eax, [ebp - 0x628]
push 0x53fa1c
push eax
call fcn.00420180
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00427350
add esp, 0x18
jmp 0x42757e
push 0x53fa60
lea eax, [ebp - 0x864]
push eax
call edi
test eax, eax
je 0x42757e
push 0x53fa64
lea eax, [ebp - 0x864]
push eax
call edi
test eax, eax
je 0x42757e
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ed350
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 0x894]
lea eax, [ebp - 0x420]
push 0x53fa1c
push eax
call fcn.00420180
add esp, 0x1c
mov dword [ebp - 0x630], 0
xor eax, eax
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4274d0
sub eax, edx
lea ecx, [ebp - 0x640]
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00416d80
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
cmp eax, dword [esi + 8]
je 0x42752c
movups xmm0, xmmword [ebp - 0x640]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x630]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x640], ax
jmp 0x427541
lea ecx, [ebp - 0x640]
push ecx
push eax
mov ecx, esi
call fcn.004194f0
mov edx, dword [ebp - 0x62c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x42757e
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x427574
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4275c0
push edx
push ecx
call fcn.00460b61
add esp, 8
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x898]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427400
push dword [ebp - 0x898]
call dword [sym.imp.KERNEL32.dll_FindClose]
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.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.004f639a
int3
Function at 0x427ae0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x427c82
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427b61
cmp eax, 2
jne 0x427b42
push str.Key_not_found._n
call fcn.00419e30
add esp, 4
jmp 0x427c82
push str.Error_opening_key._n
call fcn.00419e30
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x427b84
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427c5f
lea esi, [ebp - 0x20c]
sub esi, edi
nop word [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x427bfe
movzx ecx, word [esi + eax]
test cx, cx
je 0x427bfe
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x427be0
lea ecx, [eax - 2]
test edx, edx
push ebx
push dword [ebp - 0x218]
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
call fcn.00427ae0
add esp, 8
test eax, eax
je 0x427c59
lea eax, [ebp - 0x220]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x427bd0
mov esi, dword [ebp - 0x218]
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
jne 0x427b4f
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret