joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b82a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b4cc

Function at 0x41b835
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b65b

Function at 0x41bc2f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040bbd0
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418a5b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41bc71
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bdcd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426110
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x433c88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cdff
mov ecx, dword [esi*4 + 0x433c88]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bdc6
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bdc6
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bdc6
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cdff
add esp, 0x14
test edx, edx
jl 0x41bdc6
jg 0x41bd3c
test eax, eax
jb 0x41bdc6
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bdc6
jl 0x41bd56
cmp dword [ebp - 0x1008], eax
ja 0x41bdc6
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bd74
test ebx, ebx
je 0x41bdad
cmp ecx, edi
jae 0x41bdad
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bd8e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bd9a
cmp byte [ecx + 1], 0xa
jne 0x41bd9a
inc ecx
jmp 0x41bd9a
movzx eax, al
movsx eax, byte [eax + 0x432300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bd74
cmp edx, ebx
jne 0x41bd74
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bdcb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040addd
leave
ret
Function at 0x41c29d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433c88]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c2dd
cmp byte [ebx], 0xa
jne 0x41c2dd
or byte [eax + edi + 0x28], 4
jmp 0x41c2e2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c3e0
mov al, byte [edx]
cmp al, 0x1a
je 0x41c3c2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c311
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c336
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c340
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c2f3
jmp 0x41c3e0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c3bd
cmp dword [ebp - 0xc], 0
je 0x41c3bd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x433c88]
test byte [eax + edi + 0x28], 0x48
je 0x41c397
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c382
mov byte [esi], dl
jmp 0x41c393
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433c88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c3e0
cmp byte [ebp - 1], 0xa
jne 0x41c3a6
cmp esi, ebx
jne 0x41c3a6
mov byte [esi], 0xa
jmp 0x41c3df
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ce1d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c3e0
mov byte [esi], 0xd
jmp 0x41c3df
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x433c88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c3dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c3e0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c3e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x433c88]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c42c
cmp word [esi], dx
jne 0x41c42c
or byte [edi + eax + 0x28], 4
jmp 0x41c431
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c584
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c564
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c473
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c4a9
cmp eax, edx
jae 0x41c4b5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c44b
jmp 0x41c584
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c560
cmp dword [ebp - 0x14], 0
je 0x41c560
mov eax, dword [ebx*4 + 0x433c88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c538
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c501
mov word [esi], cx
jmp 0x41c534
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x433c88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x433c88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x433c88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c584
pop ebx
cmp word [ebp - 4], bx
jne 0x41c549
cmp esi, dword [ebp + 0xc]
jne 0x41c549
mov word [esi], bx
jmp 0x41c581
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ce1d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c584
push 0xd
jmp 0x41c57d
mov ecx, dword [ebx*4 + 0x433c88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c57b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c584
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e66d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e6b8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e80c
test al, al
jne 0x41e6b2
sub edx, 2
cmp edx, edi
jne 0x41e698
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e6da
lea eax, [edi + 2]
cmp edx, eax
je 0x41e6da
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e5b9
add esp, 0x10
jmp 0x41e7d4
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e80c
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e71d
push dword [ebp - 0x25c]
jmp 0x41e6ca
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e75a
cmp word [ebp - 0x226], 0
je 0x41e77b
cmp word [ebp - 0x226], ax
jne 0x41e75a
cmp word [ebp - 0x224], 0
je 0x41e77b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e5b9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e7c7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e734
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e7af
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e7d4
push 0x41e3e9
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423ff0
add esp, 0x10
jmp 0x41e7a4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040addd
leave
ret

Function at 0x425f10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425f3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425f3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4081af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x10], edi
call esi
push dword [0x4195b4]
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.0040919e
mov ebx, eax
cmp ebx, edi
jge 0x4081f9
push dword [ebp - 4]
call esi
push edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push dword [ebp - 4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40822e
push edi
call esi
push 0x404b00
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.0040919e
cmp eax, edi
jge 0x40823c
mov edi, eax
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x4081f4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40826c
cmp dword [ebp - 0xc], 4
jne 0x40826c
cmp dword [ebp - 0x10], 1
jne 0x40826c
mov edi, 0x80004005
jmp 0x40822e
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40822e

Function at 0x409142
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40919a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40918b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x409187
cmp esi, eax
jae 0x40918b
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409179
cmp esi, eax
jb 0x40918f
xor eax, eax
jmp 0x409199
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x409f8f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x419010]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b0]
push ebx
push esi
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3b4]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call dword [0x419018]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x64], ebx
je 0x40a035
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.00409b44
test eax, eax
jl 0x40a035
mov edi, dword [ebp - 0x70]
cmp edi, 0x400
jg 0x40a01d
push edi
call fcn.00409b74
test al, al
je 0x40a01d
mov eax, edi
call fcn.00416a60
mov eax, esp
jmp 0x40a026
push edi
lea ecx, [ebp - 0x6c]
call fcn.00409c0e
push dword [ebp - 0x78]
push edi
push esi
push eax
call fcn.00408faf
cmp eax, ebx
jne 0x40a072
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x40a045
lea eax, [ebp - 0x64]
call fcn.0040a15e
lea ecx, [ebp - 0x6c]
call fcn.00409088
mov eax, 0x8007000e
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.00413c2a
add ebp, 0x3a4
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x40a08e
call fcn.00409b2f
mov esi, eax
jmp 0x40a14c
push dword [ebp - 0x74]
push dword [ebp - 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40a0ab
call fcn.00409b2f
jmp 0x40a143
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x40a0a1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40a0ef
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x40a0db
lea eax, [ebp - 0x64]
call fcn.0040a15e
mov esi, 0x8007000e
lea ecx, [ebp - 0x6c]
call fcn.00409088
mov eax, esi
jmp 0x40a052
push 1
push eax
call fcn.0040a18a
cmp eax, 0x400
jbe 0x40a10a
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040a168
jmp 0x40a110
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], ebx
jne 0x40a11c
mov esi, 0x8007000e
jmp 0x40a145
push esi
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x64]
call fcn.00409251
mov eax, dword [ebp - 0x64]
add esp, 0x10
push dword [ebp + 0x3b8]
mov byte [eax + esi], bl
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x80]
call fcn.0040a1d0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x40a0e0
lea eax, [ebp - 0x64]
call fcn.0040a15e
jmp 0x40a0e0
Function at 0x40b085
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40b098
push 0x80004005
call fcn.00408f45
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x40b09f
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40b15c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x419010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x114]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x120], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x40b279
xor eax, eax
cmp dword [ebp - 0x110], esi
je 0x40b1ca
push dword [ebp - 0x110]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x114]
mov edi, eax
mov dword [ebp - 0x110], ecx
jne 0x40b279
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push ecx
jmp 0x40b23d
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x110]
call fcn.0040b15c
cmp eax, esi
mov dword [ebp - 0x114], eax
jne 0x40b29c
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x110]
mov dword [ebp - 0x118], 0x100
call edi
test eax, eax
je 0x40b202
cmp dword [ebp - 0x110], esi
je 0x40b263
push dword [ebp - 0x110]
call ebx
mov dword [ebp - 0x110], esi
push dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
cmp dword [ebp - 0x110], esi
je 0x40b289
push dword [ebp - 0x110]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413c2a
leave
ret 4
cmp dword [ebp - 0x110], esi
je 0x40b2ac
push dword [ebp - 0x110]
call ebx
mov eax, dword [ebp - 0x114]
jmp 0x40b28b
Function at 0x40cd1e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40cd2e
sub eax, ecx
sar eax, 1
push ebx
lea ecx, [eax + 4]
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc], ecx
lea edx, [eax + 2]
push edi
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x40cd4b
sub eax, edx
sar eax, 1
lea esi, [eax + 2]
mov eax, ecx
push 2
xor ebx, ebx
pop ecx
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.004138fd
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004138fd
cmp dword [ebp - 8], 0
pop ecx
pop ecx
mov edi, eax
jne 0x40cda1
mov dword [ebp - 4], 0x8007000e
jmp 0x40ce38
test edi, edi
jne 0x40cdb1
mov dword [ebp - 4], 0x8007000e
jmp 0x40ce43
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
push edi
call ebx
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ce31
push dword [ebp + 8]
and word [edi + esi*2 - 2], 0
push dword [ebp - 0xc]
mov esi, dword [ebp - 8]
push esi
call ebx
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ce31
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ebx, eax
test ebx, ebx
je 0x40ce31
push 0xffffffffffffffff
push 0x403954
push dword [ebp - 0xc]
push esi
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
xor eax, eax
mov word [ebx + 4], ax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov word [ebp - 0x1c], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x40ce38
mov dword [ebp - 4], 0x80004005
test edi, edi
je 0x40ce43
push edi
call sub.MSVCR80.dll____V_YAXPAX_Z
pop ecx
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x40ce55
push dword [ebp - 8]
call sub.MSVCR80.dll____V_YAXPAX_Z
pop ecx
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x40ce5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x40ce7d
mov edi, 0x80070057
jmp 0x40cf65
cmp dword [ebp + 0x10], ebx
jne 0x40ce8c
mov edi, 0x80004003
jmp 0x40cf65
cmp dword [ebp + 8], ebx
jne 0x40ce99
xor edi, edi
inc edi
jmp 0x40cf65
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40cf64
cmp dword [ebp - 8], 1
jne 0x40cf64
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
mov dword [ebp - 0xc], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004138fd
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x10], edi
jne 0x40cef1
mov edi, 0x8007000e
jmp 0x40cf4f
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
jg 0x40cf1d
call esi
mov edi, eax
jmp 0x40cf2d
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jl 0x40cf4f
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.0040919e
mov edi, eax
cmp edi, ebx
jge 0x40cf47
push dword [ebp - 0xc]
jmp 0x40cf50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x10], ebx
je 0x40cf64
push dword [ebp - 0x10]
call sub.MSVCR80.dll____V_YAXPAX_Z
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
Function at 0x40cf6d
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
test ebx, ebx
jne 0x40cf87
mov dword [ebp - 4], 0x80070057
jmp 0x40d070
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cf9e
mov dword [ebp - 4], 1
jmp 0x40d070
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40cfb5
mov dword [ebp - 4], 0x8000ffff
jmp 0x40d070
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cfcd
mov dword [ebp - 4], 0x80004005
jmp 0x40d070
test al, 3
je 0x40cfdc
and eax, 0xfffffffc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40cfe1
push esi
sub eax, edx
sar eax, 1
push edi
lea esi, [eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004138fd
mov edi, eax
test edi, edi
pop ecx
jne 0x40d01a
mov dword [ebp - 4], 0x8007000e
jmp 0x40d063
push ebx
push esi
push edi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d05c
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x14], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x40d063
mov dword [ebp - 4], 0x80004005
test edi, edi
je 0x40d06e
push edi
call sub.MSVCR80.dll____V_YAXPAX_Z
pop ecx
pop edi
pop esi
mov eax, dword [ebp - 4]
leave
ret