joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e95
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00441e11
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x442004
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x442004
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x441fb9
jg 0x441ef1
test eax, eax
je 0x441faf
push 1
push 0x1000
call fcn.00433533
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x441f14
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x441fa6
push 0x8000
push ebx
call fcn.004312f0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x441f3d
jg 0x441f38
cmp ecx, 0x1000
jb 0x441f3d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00434e33
add esp, 0x10
cmp eax, 0xffffffff
je 0x441f82
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x441f38
jl 0x441f69
test ecx, ecx
jne 0x441f2a
push dword [ebp - 0xc]
push ebx
call fcn.004312f0
push esi
call fcn.004334ab
add esp, 0xc
xor ebx, ebx
jmp 0x442012
cmp byte [edi + 0x24], 0
je 0x441f99
cmp dword [edi + 0x20], 5
jne 0x441f99
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x441fa4
mov ebx, dword [edi + 0x18]
jmp 0x441fa6
xor ebx, ebx
push esi
call fcn.004334ab
pop ecx
jmp 0x442012
test ecx, ecx
jg 0x441f7b
jl 0x441fb9
test eax, eax
jae 0x441f7b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004365ff
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x441fd9
cmp byte [edi + 0x1c], 0
je 0x441f7b
jmp 0x44200a
push ebx
call fcn.0043bb1a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x441f7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x442012
cmp byte [edi + 0x1c], 0
je 0x44200f
mov ebx, dword [edi + 0x18]
jmp 0x442012
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004365ff
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4430f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44311d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44311d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401fb0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
push ebx
push ebp
push esi
push edi
xor eax, eax
mov dword [esp + 0x14], 0
mov ecx, 0x49
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push 2
mov dword [esp + 0x18], 3
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4020db
mov ebp, dword [esp + 0x248]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40207e
lea ecx, [esp + 0x38]
push 0x5c
push ecx
call fcn.0040ec70
add esp, 8
test eax, eax
je 0x402040
inc eax
lea edx, [esp + 0x13c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402034
jmp 0x402052
xor eax, eax
mov cl, byte [esp + eax + 0x38]
mov byte [esp + eax + 0x13c], cl
inc eax
test cl, cl
jne 0x402042
mov eax, dword [esp + 0x244]
lea edx, [esp + 0x13c]
push edx
push eax
call fcn.0041a0e7
add esp, 8
test eax, eax
jne 0x40206f
inc edi
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402017
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [0x43c2f4]
test al, al
je 0x4020ac
cmp edi, ebp
push 0
jle 0x40209b
push str.RUNNING
jmp 0x4020a0
push str.NOT_RUNNING
push str.EAINSTALL_isThisProgramRunning
push 0
call fcn.00401ee0
mov ecx, dword [esp + 0x10]
dec ecx
cmp edi, ebp
mov dword [esp + 0x10], ecx
jle 0x4020e8
mov eax, ecx
test eax, eax
jl 0x4020e8
push 0x3e8
call ebx
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x402000
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x230
ret
xor eax, eax
cmp edi, ebp
pop edi
pop esi
pop ebp
setg al
pop ebx
add esp, 0x230
ret
Function at 0x402730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x410
mov eax, dword [esp + 0x418]
push ebx
push ebp
push esi
mov esi, eax
and eax, 0xf
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
shr esi, 4
mov ecx, 0x43c300
inc esi
xor ebp, ebp
call fcn.00405030
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00402250
mov eax, dword [esp + 0x1c]
add esp, 0xc
test ax, ax
ja 0x402789
mov eax, 1
mov edi, dword [esp + 0x424]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push eax
movzx esi, si
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x4027c6
push 0x809
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x4027c6
push 0x1009
push esi
push 6
push edi
call ebx
test eax, eax
je 0x40285a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40285a
mov ecx, 1
mov edx, eax
mov dword [esp + 0x10], ecx
xor eax, eax
mov si, word [edx]
add edx, 2
test si, si
je 0x4027fa
cmp eax, dword [esp + 0x14]
je 0x40280e
movsx esi, si
lea edx, [edx + esi*2]
inc eax
cmp eax, 0x10
jl 0x4027e3
pop edi
pop esi
pop ebp
mov ax, cx
pop ebx
add esp, 0x410
ret
mov ebx, dword [esp + 0x430]
mov edi, dword [esp + 0x42c]
mov ecx, ebx
mov ebp, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
push 0
push 0
mov ecx, ebp
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x438]
push eax
movsx ecx, si
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ax, word [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
pop edi
pop esi
mov ax, bp
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x4038b0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42b60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x508
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00407ae0
xor eax, eax
mov al, byte [esi + 0x2710]
lea ecx, [esp + 0xc]
mov dword [esp + 0x51c], 0
push eax
call fcn.00407650
lea ebp, [esi + 0x1800]
mov edi, 0x42ddd2
mov esi, ebp
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4039ae
push ebp
lea eax, [esp + 0x118]
push str._s.
push eax
call fcn.0040e8d4
add esp, 0xc
push 0
lea ecx, [esp + 0x118]
push ecx
lea ecx, [esp + 0x14]
call fcn.00407e00
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403940
sub eax, edx
lea esi, [eax - 2]
test esi, esi
jle 0x403980
cmp byte [esi + ebp], 0x5c
je 0x40395d
dec esi
test esi, esi
jg 0x403950
jmp 0x403980
test esi, esi
jle 0x403980
push esi
lea edx, [esp + 0x14]
push ebp
push edx
call fcn.0040ff80
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov byte [esp + esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x51c], 0xffffffff
call fcn.004067d0
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
add esp, 0x514
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0x51c], 0xffffffff
call fcn.004067d0
mov ecx, dword [esp + 0x514]
pop edi
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x514
ret

Function at 0x4039e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42b636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x610
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004070c0
lea ecx, [esp + 4]
mov dword [esp + 0x61c], 0
call fcn.00406600
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x620], 1
call fcn.00406bd0
add esi, 0x1c00
push esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x21c]
push str._s_s.lnk
push edx
call fcn.0040e8d4
add esp, 0x10
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x218]
push ecx
lea ecx, [esp + 0xc]
call fcn.00406610
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
mov byte [esp + 0x61c], 0
call fcn.004067d0
lea ecx, [esp + 8]
mov dword [esp + 0x61c], 0xffffffff
call fcn.004067d0
mov ecx, dword [esp + 0x614]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x61c
ret
Function at 0x404f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404f99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404fad
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404fce
cmp esi, eax
jae 0x404fa7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404fc0
cmp esi, eax
jae 0x404fa7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406500
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x42b758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004070c0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call fcn.00402120
add esp, 4
cmp eax, 1
jge 0x406550
mov al, byte [0x4408fc]
neg al
sbb eax, eax
and eax, 0xffffffee
add eax, 0x13
mov byte [eax + esi + 0x3674], 1
push eax
mov ecx, esi
mov dword [esi + 0x2bfc], eax
call fcn.00405340
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004067d0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406516
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x42b758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004070c0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call fcn.00402120
add esp, 4
cmp eax, 1
jge 0x406550
mov al, byte [0x4408fc]
neg al
sbb eax, eax
and eax, 0xffffffee
add eax, 0x13
mov byte [eax + esi + 0x3674], 1
push eax
mov ecx, esi
mov dword [esi + 0x2bfc], eax
call fcn.00405340
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004067d0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4068b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub esp, 0x400
push esi
mov esi, dword [esp + 0x408]
push 1
push eax
push ecx
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x406b40
ja 0x406b0d
movzx edx, byte [eax + 0x406b84]
jmp dword [edx*4 + 0x406b4c]
push 0x400
lea edx, [esp + 8]
push edx
push 0x93
call fcn.00402870
add esp, 0xc
push 0
push esi
lea eax, [esp + 0xc]
push eax
push 0
call dword [0x43c2f8]
xor al, al
pop esi
add esp, 0x400
ret 0xc
mov al, 1
pop esi
add esp, 0x400
ret 0xc
Function at 0x406c10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x42e5d4]
mov ecx, dword [0x42e5d8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [0x4401cc], ecx
mov dword [0x4401c8], eax
xor eax, eax
lea edx, [esp + 8]
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x406c71
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x406e45
mov eax, dword [esp + 0x18]
sub eax, 0
mov byte [0x440b0c], 0
je 0x406e0d
dec eax
je 0x406d50
dec eax
jne 0x406e45
mov eax, dword [esp + 0xc]
cmp eax, 4
mov ecx, 1
mov byte [0x440b0c], cl
ja 0x406cd9
mov edx, dword [str.Windows_NT]
mov dword [0x4401c8], edx
mov edx, dword [0x42e5cc]
mov dword [0x4401cc], edx
mov dx, word [0x42e5d0]
mov word [0x4401d0], dx
mov dl, byte [0x42e5d2]
mov byte [0x4401d2], dl
cmp eax, 5
jb 0x406e45
cmp dword [esp + 0x10], ecx
jb 0x406d1c
mov eax, dword [str.Windows_XP]
mov ecx, dword [0x42e5c0]
mov dx, word [0x42e5c4]
mov dword [0x4401c8], eax
mov al, byte [0x42e5c6]
mov dword [0x4401cc], ecx
mov word [0x4401d0], dx
mov byte [0x4401d2], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.Windows_2000]
mov edx, dword [0x42e5b0]
mov eax, dword [0x42e5b4]
mov dword [0x4401c8], ecx
mov cl, byte [0x42e5b8]
mov dword [0x4401cc], edx
mov dword [0x4401d0], eax
mov byte [0x4401d4], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
mov ecx, dword [esp + 0x10]
jb 0x406da3
cmp ecx, 0x5a
jb 0x406d98
mov edx, dword [str.Windows_ME]
mov eax, dword [0x42e5a4]
mov cx, word [0x42e5a8]
mov dword [0x4401c8], edx
mov dl, byte [0x42e5aa]
mov dword [0x4401cc], eax
mov word [0x4401d0], cx
mov byte [0x4401d2], dl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x406dd7
jne 0x406da3
test ecx, ecx
ja 0x406dd7
mov eax, dword [str.Windows_95]
mov ecx, dword [0x42e2dc]
mov dx, word [0x42e2e0]
mov dword [0x4401c8], eax
mov al, byte [0x42e2e2]
mov dword [0x4401cc], ecx
mov word [0x4401d0], dx
mov byte [0x4401d2], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.Windows_98]
mov edx, dword [0x42e598]
mov ax, word [0x42e59c]
mov dword [0x4401c8], ecx
mov cl, byte [0x42e59e]
mov dword [0x4401cc], edx
mov word [0x4401d0], ax
mov byte [0x4401d2], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [str.Microsoft_Win32s]
mov eax, dword [0x42e584]
mov ecx, dword [0x42e588]
mov dword [0x4401c8], edx
mov edx, dword [0x42e58c]
mov dword [0x4401cc], eax
mov al, byte [0x42e590]
mov dword [0x4401d0], ecx
mov dword [0x4401d4], edx
mov byte [0x4401d8], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407bb0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x84c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x85c]
lea eax, [esp + 0x318]
push eax
push esi
mov ebp, ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x407de7
test byte [esp + 0x318], 0x10
jne 0x407be8
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x407de7
lea edx, [esp + 0x110]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407c02
push edi
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x320]
push edx
mov ecx, ebp
call fcn.004076b0
lea eax, [esp + 0x31c]
push eax
lea ecx, [esp + 0x21c]
push ecx
mov ecx, ebp
call fcn.00407660
lea edx, [esp + 0x218]
push edx
call fcn.0041d7e4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
mov edi, 0x42e7d0
lea esi, [esp + 0x218]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x407c83
mov edi, 0x42e7cc
lea esi, [esp + 0x218]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x407d1e
lea eax, [esp + 0x114]
push eax
mov ecx, ebp
call fcn.00407a80
test al, al
je 0x407d1e
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x14]
push str.__s_
push edx
call fcn.0040e8d4
push 0
lea eax, [esp + 0x20]
push eax
push str._u__s
push 0x440b68
push 0x440b68
push 0
call fcn.00410ada
mov al, byte [ebp]
add esp, 0x24
test al, al
je 0x407d0d
lea ecx, [esp + 0x10]
push ecx
push 0x440b68
lea edx, [esp + 0x464]
push str.exec:__s__u__s__s
push edx
call fcn.0040e8d4
add esp, 0x10
push 0
push str.Remove
lea eax, [esp + 0x464]
push eax
push 0
call fcn.00401ee0
push 0
call fcn.0040edfd
add esp, 4
push 0x3e8
call ebx
mov edi, 0x42e7a4
lea esi, [esp + 0x218]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
jne 0x407dbe
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x10]
push str.__s_
push ecx
call fcn.0040e8d4
push 0
lea edx, [esp + 0x1c]
push edx
push str._s__UnregServer
push 0x440b68
push 0x440b68
push 0
call fcn.00410ada
mov al, byte [ebp]
add esp, 0x24
test al, al
je 0x407dad
lea eax, [esp + 0xc]
push eax
push 0x440b68
lea ecx, [esp + 0x460]
push str.exec:__s__s__UnregServer__s
push ecx
call fcn.0040e8d4
add esp, 0x10
push 0
push str.Remove
lea edx, [esp + 0x460]
push edx
push 0
call fcn.00401ee0
push 0
call fcn.0040edfd
add esp, 4
push 0x3e8
call ebx
mov esi, dword [esp + 0x85c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407de0
test al, 1
je 0x407de0
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x84c
ret 4
Function at 0x408d20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push esi
push edi
mov edi, dword [esp + 0x120]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
mov esi, 0x91
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408d94
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push eax
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x408d89
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x114
ret 4

Function at 0x408db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [ecx]
or eax, 0xffffffff
test ecx, ecx
je 0x408dd3
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
ret 0xc

Function at 0x408de0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [ecx]
or eax, 0xffffffff
test ecx, ecx
je 0x408e00
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x408e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
or eax, 0xffffffff
test ecx, ecx
je 0x408e3b
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 8
Function at 0x408ee0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x42b7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd20
push ebx
push ebp
mov ebp, dword [esp + 0xd38]
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x1c], ebx
mov edi, edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [edi]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push eax
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, ebx
je 0x408f46
cmp esi, 0xea
jne 0x408ff9
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x2c]
push ecx
push ebp
lea edx, [esp + 0x538]
push str._s_s
push edx
mov dword [esp + 0xd48], ebx
call fcn.0040e8d4
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebx
je 0x408f7f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x53c]
push ecx
push 0x80000002
mov dword [esp + 0x28], VariantCopy
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x530]
push edx
lea ecx, [esp + 0x14]
call fcn.00408ee0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408fc9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov ecx, dword [edi]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0xd38], 0xffffffff
je 0x408ff9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp esi, 0x103
jne 0x408f10
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409010
sub eax, edx
lea esi, [eax - 1]
cmp esi, ebx
jle 0x40902b
cmp byte [esi + ebp], 0x5c
je 0x40904a
dec esi
cmp esi, ebx
jg 0x409020
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xd30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd2c
ret 4
push esi
lea edx, [esp + 0x134]
push ebp
push edx
mov dword [esp + 0x1c], ebx
call fcn.0040ff80
lea eax, [esi + ebp + 1]
lea edx, [esp + 0x93c]
add esp, 0xc
mov byte [esp + esi + 0x130], bl
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x409074
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x409091
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x13c]
push ecx
push 0x80000002
mov dword [esp + 0x28], VariantCopy
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x930]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4090db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40902f
Function at 0x4092d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004091b0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00403d70
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x409362
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret