joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422080
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x380
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x37c], eax
push esi
mov esi, dword [esp + 0x388]
push 0x3c
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.00460000
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x196]
push edx
mov word [esp + 0x198], cx
call fcn.00460000
push 0
push 0
push 0x100
lea eax, [esp + 0x1a4]
push eax
push 0
push 0
push 0
push 0
push esi
call fcn.00462142
lea ecx, [esp + 0x1bc]
push str.ugs_router
push ecx
call fcn.00463bbb
add esp, 0x44
test eax, eax
jne 0x42211f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x37c]
xor ecx, esp
call fcn.00460c80
add esp, 0x380
ret
lea edx, [esp + 0x180]
push str.proe
push edx
call fcn.00463bbb
add esp, 8
test eax, eax
je 0x422107
lea eax, [esp + 0x180]
push str.VSLauncher
push eax
call fcn.00463bbb
add esp, 8
test eax, eax
je 0x422107
lea ecx, [esp + 0x180]
push str.AcLauncher
push ecx
call fcn.00463bbb
add esp, 8
test eax, eax
je 0x422107
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x422107
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0xc]
push edx
push 0x40
lea eax, [esp + 0x150]
push eax
push esi
call edi
test eax, eax
je 0x42221d
mov ecx, 0x5a4d
cmp cx, word [esp + 0x144]
jne 0x42221d
push 0
lea edx, [esp + 0xc]
push edx
push 0x40
lea eax, [esp + 0x30]
push eax
push esi
call edi
test eax, eax
je 0x42221d
mov ecx, dword [esp + 0x180]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42221d
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
je 0x42221d
cmp dword [esp + 0xc], 0x4550
jne 0x42221d
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x14
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
jne 0x42223d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x37c]
xor ecx, esp
call fcn.00460c80
add esp, 0x380
ret
push 0
lea eax, [esp + 0xc]
push eax
push 0xe0
lea ecx, [esp + 0x70]
push ecx
push esi
call edi
push esi
test eax, eax
je 0x42221e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x384]
xor eax, eax
cmp word [esp + 0xa8], 2
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00460c80
add esp, 0x380
ret
Function at 0x4227f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
mov edi, dword [esp + 0x41c]
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00460000
mov edx, dword [esi + 0x7c]
add esp, 0xc
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x422850
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422850
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x422879
push 0x49bc48
lea ecx, [esp + 0x14]
push ecx
call ebx
push str.PCID.DAT
lea edx, [esp + 0x14]
push edx
call ebx
mov ecx, dword [esi + 0x80]
lea eax, [esp + 0x10]
push eax
push 0
push str.Auto
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edx, [esp + 0x10]
push edx
push 0x200
push edi
push 0
mov dword [ebp], eax
mov eax, dword [esi + 0x80]
push str.Pcid
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00460c80
add esp, 0x404
ret 8
Function at 0x424900
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2a44
call fcn.00461df0
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x2a40], eax
push ebx
push esi
xor ebx, ebx
push 0x27ff
lea eax, [esp + 0x24d]
push ebx
push eax
mov byte [esp + 0x254], bl
call fcn.00460000
mov edx, dword [esp + 0x2a5c]
lea ecx, [esp + 0x2a60]
push ecx
push edx
lea eax, [esp + 0x25c]
push 0x2800
push eax
call fcn.0046420b
push 0x1ff
lea ecx, [esp + 0x69]
push ebx
push ecx
mov byte [esp + 0x70], bl
call fcn.00460000
add esp, 0x28
push 0x200
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x489c84
lea eax, [esp + 0x4c]
push eax
call esi
push str.ODMGuard.LOG
lea ecx, [esp + 0x4c]
push ecx
call esi
lea edx, [esp + 0x48]
push 0x48a7e0
push edx
call fcn.004632c3
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x424a45
xor eax, eax
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov word [esp + 0x45], ax
mov byte [esp + 0x47], al
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x10], bl
mov byte [esp + 0x30], bl
call fcn.0046413c
add esp, 4
push eax
lea edx, [esp + 0x10]
push edx
call fcn.0046407d
add esp, 4
push eax
push str._s__s____s_n
push esi
call fcn.00463eb5
push esi
call fcn.00462f44
add esp, 0x18
mov ecx, dword [esp + 0x2a48]
pop esi
pop ebx
xor ecx, esp
call fcn.00460c80
add esp, 0x2a44
ret
Function at 0x425510
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x230]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [esp + 0x230]
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x206
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x2a]
push ecx
mov dword [esp + 0x24], edx
mov word [esp + 0x2c], ax
call fcn.00460000
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push SysReAllocString
call edi
mov eax, esi
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x425590
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
sub eax, ecx
sar eax, 1
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0x49c0a0
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push esi
push SysReAllocString
call edi
mov eax, dword [esp + 0x18]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4255d7
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
inc eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push 1
push 0x49c0a0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
push esi
lea eax, [esp + 0x24]
push str._sDefaultIcon
push eax
call fcn.00401000
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push SysReAllocString
call edi
mov eax, dword [esp + 0x14]
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x425630
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
inc eax
push eax
mov eax, dword [esp + 0x18]
push eax
push 1
push 0x49c0a0
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
push esi
lea eax, [esp + 0x24]
push str._sShell
push eax
call fcn.00401000
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push SysReAllocString
call edi
mov eax, dword [esp + 0x10]
push 5
push str.Open
push 1
push 0x49c0a0
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
push esi
lea edx, [esp + 0x24]
push str._sShellOpenCommand
push edx
call fcn.00401000
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push SysReAllocString
call edi
mov edx, dword [esp + 0x1c]
push 0x48cce4
push edx
lea eax, [esp + 0x28]
push str._s__s
push eax
call fcn.00401000
lea eax, [esp + 0x30]
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4256e2
mov edx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
push 0x49c0a0
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460c80
add esp, 0x21c
ret 0x14
Function at 0x4263f0
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret

Function at 0x426410
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x4264a0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mul esi
mov eax, dword [ecx]
shr edx, 6
mov dword [esp + 4], edx
imul edx, edx, 0x3e8
lea ecx, [esp + 4]
push ecx
push 0
sub esi, edx
push 0
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
pop esi
cmp eax, 0xffffffff
jne 0x4264fd
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [edx], ecx
add esp, 0x10c
ret 8

Function at 0x4267c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b7b70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
jne 0x4267e0
xor esi, esi
jmp 0x42680b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4267f3
xor esi, esi
jmp 0x42680b
lea esi, [eax + eax]
mov eax, esi
call fcn.00460c90
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040f420
mov esi, eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x426854
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x426877
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0x10
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00426410
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c80
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x426861
Function at 0x427680
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x418
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x414], eax
mov ecx, 0x3a
mov word [esp + 0xa], cx
mov edx, 0x5c
xor ecx, ecx
push 0x400
mov word [esp + 0x10], dx
xor eax, eax
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x14], ax
mov word [esp + 0x1a], ax
mov word [esp + 0x1c], cx
call fcn.00460000
add esp, 0xc
push 0x200
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov cx, word [esp + 0x10]
push 4
lea edx, [esp + 0x14]
push 0x49bc38
push edx
mov word [esp + 0x14], cx
call fcn.004647fb
add esp, 0xc
test eax, eax
jne 0x42770a
mov ax, word [esp + 0x18]
mov word [esp + 8], ax
push 0
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42774e
cmp dword [esp + 4], 0
ja 0x42774e
jb 0x427734
cmp dword [esp], 0x6400000
ja 0x42774e
mov eax, 1
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00460c80
add esp, 0x418
ret
mov ecx, dword [esp + 0x414]
xor ecx, esp
xor eax, eax
call fcn.00460c80
add esp, 0x418
ret
Function at 0x4277c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1258
call fcn.00461df0
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x1254], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1268]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.00460000
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0xa7a]
push eax
mov word [esp + 0xa7c], dx
call fcn.00460000
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427825
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x42784a
push 0x49bc48
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xa68]
push ecx
call ebp
push 0x489ca4
lea edx, [esp + 0xa68]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00460000
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa68]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x4279be
test ebx, ebx
je 0x4279be
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x48a784
lea eax, [esp + 0x40]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4278e6
test dx, dx
je 0x4278e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4278e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4278c0
xor eax, eax
jmp 0x4278eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42798d
mov ecx, 0x489c88
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427926
test dx, dx
je 0x427922
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427926
add eax, 4
add ecx, 4
test dx, dx
jne 0x427900
xor eax, eax
jmp 0x42792b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42798d
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x427969
lea ecx, [esp + 0x264]
push ecx
call fcn.004277c0
add esp, 4
jmp 0x42798d
test al, 1
je 0x42797f
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4278b4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x4279c0
xor eax, eax
mov ecx, dword [esp + 0x1264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460c80
add esp, 0x1258
ret
Function at 0x4279f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb8c]
sub esp, 0xc0c
mov eax, dword [0x4b7b70]
xor eax, ebp
mov dword [ebp + 0xb88], eax
push ebx
push esi
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x76]
push ecx
mov word [ebp - 0x78], ax
call fcn.00460000
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x80]
push ecx
push 0
push str..docx
push SysReAllocString
mov dword [ebp - 0x7c], 0x800
mov dword [ebp - 0x80], 1
call ebx
test eax, eax
je 0x427a5f
xor eax, eax
jmp 0x427b37
push str.ShellOpencommand
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x78]
push eax
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x427a86
xor eax, eax
jmp 0x427a9f
lea esi, [eax + eax]
mov eax, esi
call fcn.00460c90
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.0040f420
push eax
push 0x4a4108
call fcn.00424900
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x78a]
push eax
mov word [ebp + 0x788], dx
call fcn.00460000
add esp, 0x14
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp + 0x788]
push edx
lea eax, [ebp - 0x80]
push eax
push 0
lea ecx, [ebp - 0x78]
push ecx
push SysReAllocString
mov dword [ebp - 0x7c], 0x400
call ebx
test eax, eax
jne 0x427a58
lea edx, [ebp + 0x788]
push edx
call edi
inc eax
cmp eax, 0x3fffffff
jle 0x427b08
xor eax, eax
jmp 0x427b24
lea esi, [eax + eax]
mov eax, esi
call fcn.00460c90
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x788]
push ecx
push eax
call fcn.0040f420
push eax
push 0x4a4108
call fcn.00424900
add esp, 8
mov eax, 1
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb88]
xor ecx, ebp
call fcn.00460c80
add ebp, 0xb8c
mov esp, ebp
pop ebp
ret

Function at 0x427da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall8FFD53B4_AB20_4B9C_B95B_318DAFC43E5B
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427e28
push 0x1ff
push eax
lea ecx, [esp + 0x15]
push ecx
mov byte [esp + 0x18], al
call fcn.00460000
mov ecx, dword [esp + 0x10]
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.InstallLocation
push ecx
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427e28
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0xb0]
call fcn.00411e00
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00460c80
add esp, 0x20c
ret
Function at 0x42aaf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x485b18
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b7b70]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00411060
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.00411060
mov dl, byte [esp + 0x30]
add esp, 8
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov byte [esi + 8], dl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x42bf80
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CEncryptMd5.0
call fcn.00460000
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret
Function at 0x42dec0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x42deec
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4b5dc0]
dec ecx
inc edx
test ecx, ecx
jne 0x42ded0
pop esi
not eax
ret

Function at 0x42def0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42df16
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x42df30
Capabilities:
Get disk information

Disassembly:
push 4
call fcn.0043d51e
mov ecx, dword [esp + 8]
mov dl, byte [ecx]
add esp, 4
xor ecx, ecx
push eax
mov byte [eax], dl
mov word [eax + 2], cx
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, 0xffbf
add word [eax], dx
mov cl, byte [eax]
mov dword [esp + 4], 0
push eax
mov byte [esp + 8], cl
call fcn.0043d529
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esp + 4]
mov edx, 1
shl edx, cl
test edx, eax
setne al
ret
Function at 0x42df90
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1258
call fcn.00461df0
mov eax, dword [0x4b7b70]
xor eax, esp
mov dword [esp + 0x1254], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1268]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.00460000
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0xa7a]
push eax
mov word [esp + 0xa7c], dx
call fcn.00460000
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42dff5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x42e01a
push 0x49bc48
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xa68]
push ecx
call ebp
push 0x489ca4
lea edx, [esp + 0xa68]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00460000
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa68]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x42e18b
test ebx, ebx
je 0x42e18b
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x48a784
lea eax, [esp + 0x40]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42e0b6
test dx, dx
je 0x42e0b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42e0b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42e090
xor eax, eax
jmp 0x42e0bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e15d
mov ecx, 0x489c88
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42e0f6
test dx, dx
je 0x42e0f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42e0f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42e0d0
xor eax, eax
jmp 0x42e0fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42e15d
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x42e139
lea ecx, [esp + 0x264]
push ecx
call fcn.0042df90
add esp, 4
jmp 0x42e15d
test al, 1
je 0x42e14f
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42e084
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, 1
jmp 0x42e18d
xor al, al
mov ecx, dword [esp + 0x1264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00460c80
add esp, 0x1258
ret