joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, 1
mov dword [esp], 0
test byte [0x48fe48], al
jne 0x40d682
or dword [0x48fe48], eax
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
add eax, 0x10
push 0x4770f0
mov dword [0x48fe44], eax
call fcn.00459f6b
add esp, 4
mov eax, dword [0x48fe44]
cmp dword [eax - 0xc], 0
jne 0x40d6f2
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40d6ed
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x40d6b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d6b0
sub eax, edx
sar eax, 1
push ebx
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x48fe44
call fcn.0040c520
mov eax, 0x48fe44
call fcn.0040c7a0
push 8
push str.drivers_
push 0x48fe44
call fcn.0040dbc0
pop ebx
mov eax, dword [0x48fe44]
add eax, 0xfffffff0
call fcn.0040c5c0
mov ecx, dword [esp + 0x20c]
add eax, 0x10
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.004599ac
add esp, 0x210
ret

Function at 0x40d720
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x475a72
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
push 0x206
mov dword [esp + 0x22c], 0
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x14], 0
push ecx
mov dword [esp + 0x1c], esi
mov word [esp + 0x20], ax
call fcn.0045e0a0
mov edx, dword [0x48eacc]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x48eacc
call eax
add eax, 0x10
mov dword [esi], eax
push 0
push 0x23
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x234], 0
push 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40d824
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
jmp 0x40d7e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d7e0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x14]
mov ebx, eax
push ecx
mov eax, esi
call fcn.0040c520
push 0xd
push str.kingsoftwps_
push esi
call fcn.0040dbc0
mov eax, dword [esi]
push eax
call fcn.00456de0
add esp, 4
push 0x10
push str.wpsuninstall.log
push esi
call fcn.0040dbc0
jmp 0x40d829
call fcn.0040c3c0
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004599ac
add esp, 0x220
ret
Function at 0x40d860
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [esp + 0x14], edi
call fcn.0040b250
mov eax, dword [esp + 0x24]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40d93f
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
cmp eax, 0x200000
ja 0x40d93f
mov dword [esp + 0x10], edi
mov edi, eax
lea ecx, [eax + 1]
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ecx
or edx, eax
jge 0x40d8d7
mov eax, esi
call fcn.0040b370
mov ebx, dword [esi]
mov dword [esp + 0x18], ebx
lea ecx, [ecx]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d93f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d93f
sub edi, eax
add ebx, eax
test edi, edi
jne 0x40d8e0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov byte [edx + eax], 0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40d927
push ecx
push eax
call fcn.0045a2fc
add esp, 8
test eax, eax
jl 0x40d94b
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x40d94b
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x80070057
call fcn.0040c6b0
int3
Function at 0x40d960
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x474b0b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
push 0
mov edi, ecx
push 2
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x40db04
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x264], 0
call sub.KERNEL32.dll_Process32FirstW
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d9f4
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x48]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.0040c520
xor eax, eax
test edi, edi
setne al
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40da2c
push 0x80004005
call fcn.0040c6b0
mov esi, dword [esp + 0x14]
push edi
push esi
call fcn.0045a732
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
add esp, 8
test eax, eax
jne 0x40da5a
mov edx, dword [esp + 0x2c]
push edx
push 0
push 1
call edi
push 4
push eax
call ebp
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x40dad2
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40da74
sub eax, edx
sar eax, 1
lea edx, [esp + 0x48]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.0040c520
cmp dword [esp + 0x1c], 0
je 0x40da22
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.0045a732
add esp, 8
test eax, eax
jne 0x40dabf
mov ecx, dword [esp + 0x2c]
push ecx
push eax
push 1
call edi
push 4
push eax
call ebp
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40da6d
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x25c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40db04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.004599ac
add esp, 0x24c
ret
Function at 0x40f060
Capabilities:
Check os version

Disassembly:
test byte [0x48fe38], 1
jne 0x40f130
or dword [0x48fe38], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
xor edx, edx
cmp ecx, 5
jbe 0x40f089
lea eax, [edx + 1]
jmp 0x40f09a
jae 0x40f08f
xor eax, eax
jmp 0x40f09a
shr eax, 8
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
neg eax
sbb eax, eax
and eax, 0x20000
or eax, 0xb
push 0x48
mov dword [0x48cdb4], eax
push edx
xor eax, eax
xor ecx, ecx
push 0x48cdf4
mov dword [0x48cdb8], 0x42bed0
mov dword [0x48cdbc], edx
mov dword [0x48cdc0], edx
mov dword [0x48cdc4], edx
mov dword [0x48cdc8], edx
mov dword [0x48cdcc], edx
mov dword [0x48cdd0], 6
mov dword [0x48cdd4], edx
mov dword [0x48cdd8], edx
mov dword [0x48cddc], edx
mov dword [0x48cde0], edx
mov dword [0x48cde4], edx
mov dword [0x48cde8], 0x7f00
mov dword [0x48cdec], 1
mov word [0x48cdf0], ax
mov word [0x48cdf2], cx
call fcn.0045e0a0
add esp, 0xc
mov eax, 0x48cdb0
ret

Function at 0x410fe0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
mov ebp, 1
cmp edi, 0xf
jne 0x411016
mov dword [ebx + 0x98], ebp
mov dword [esi], 0
cmp dword [ebx + 0x98], 0
je 0x411065
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0x14
cmp edi, 2
jne 0x411084
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
push eax
push ecx
mov dword [ebx + 0x98], ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x411049
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x411049
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi], 0
cmp dword [ebx + 0x98], 0
jne 0x41100d
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0x98], 0
jne 0x41100d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push esi
push eax
push ecx
push edi
push edx
mov ecx, ebx
call fcn.0041ad80
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
cmp edi, 0x47
jne 0x4110a0
mov edx, dword [esp + 0x20]
push edx
mov eax, ebx
mov dword [ebx + 0x98], ebp
call fcn.00410e70
jmp 0x410ffe
cmp edi, 0x18
jne 0x41105c
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x98], ebp
call fcn.00410f80
jmp 0x410ffe
Function at 0x416650
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x476338
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [ebx], vtable.CBkWindow.0
call fcn.004165a0
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
lea edi, [ebx + 0x14]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [ebx + 0x24], esi
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
add eax, 0x10
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], esi
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
add eax, 0x10
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], esi
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
add eax, 0x10
mov dword [ebx + 0x48], eax
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
mov ecx, 0x48eacc
call edx
add eax, 0x10
mov dword [ebx + 0x4c], eax
or eax, 0xffffffff
push edi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], esi
mov dword [ebx + 0x5c], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x98], esi
mov dword [ebx + 0x9c], esi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x41af10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
mov eax, dword [ebx + 4]
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x278], ebp
je 0x41af3e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [ebx + 0x278], ebp
mov edi, dword [ebx + 0x26c]
cmp edi, ebp
je 0x41b03c
call fcn.00405570
mov esi, eax
mov edi, 1
cmp esi, ebp
je 0x41afe8
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
and dword [esi + 0x34], 0xfffffffd
mov ecx, esi
call eax
test eax, eax
je 0x41af7a
push edi
push ebx
mov eax, esi
call fcn.0041a570
mov ecx, dword [ebx + 0x26c]
cmp ecx, dword [ebx + 0x268]
jne 0x41afe8
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
mov dword [esi + 0x98], ebp
movzx ecx, word [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
movzx eax, word [esp + 0x3c]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push 0x202
push ebp
mov ecx, esi
mov dword [esp + 0x2c], ebp
call edx
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x41afd9
cmp word [eax], bp
je 0x41afd9
push edi
push ebp
push ebp
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x41afe8
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x41afe8
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [ebx + 0x26c], ebp
cmp dword [esp + 0x10], ebp
je 0x41b03c
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
Function at 0x41ba10
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x475238
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x48eacc]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x48eacc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
push esi
push str.GetPacketData__d
mov ecx, 0x48fcd8
mov dword [esp + 0x30], ebx
xor edi, edi
call fcn.00427400
mov ecx, dword [esp + 0x38]
add esp, 8
lea eax, [esp + 0x14]
push eax
push ecx
mov eax, esi
call fcn.0041bba0
mov esi, eax
push esi
push str.GetPacketData_return:_d
mov ecx, 0x48fcd8
call fcn.00427400
add esp, 8
cmp esi, ebx
je 0x41bb40
push 0x3c
call fcn.0045a06d
add esp, 4
cmp eax, ebx
jne 0x41bac1
push 0x483da4
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x38], bl
call fcn.0045e39b
push eax
call fcn.004554c0
mov edi, eax
cmp edi, ebx
je 0x41bb40
push str.Extract...
mov ecx, 0x48fcd8
call fcn.00427400
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
mov eax, dword [eax]
add esp, 4
push ecx
push edx
push esi
push edi
call eax
xor ecx, ecx
mov esi, eax
cmp esi, ebx
sete cl
push ecx
push str.Extract_return:_d
mov ecx, 0x48fcd8
call fcn.00427400
add esp, 8
cmp esi, ebx
je 0x41bb39
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bb35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41bb82
mov esi, 1
jmp 0x41bb44
mov esi, dword [esp + 0x18]
cmp dword [ebp - 0xc], ebx
je 0x41bb50
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, ebx
je 0x41bb5c
mov ecx, dword [edi]
mov edx, dword [ecx + 0xc]
push edi
call edx
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bb80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x41bc20
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x214
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
xor ebx, ebx
mov word [esp + 0x14], ax
call fcn.0045e0a0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41bca8
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov ecx, 0x48fcd8
call fcn.00427400
add esp, 0xc
jmp 0x41bd2e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push 0
push 2
push 0
push esi
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi], eax
test esi, esi
jne 0x41bcea
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_CreateFileMapping_error:_d__path:_ws
mov ecx, 0x48fcd8
call fcn.00427400
add esp, 0xc
jmp 0x41bd27
mov ecx, dword [edi + 8]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
jne 0x41bd22
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFileByMem_MapViewOfFile_error:_d__path:_ws
mov ecx, 0x48fcd8
call fcn.00427400
add esp, 0xc
jmp 0x41bd27
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x214]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004599ac
add esp, 0x214
ret

Function at 0x41bd50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push edi
xor edi, edi
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x41bdee
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x41bdf7
call fcn.0040c3c0
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
inc ecx
sub eax, ecx
or edx, eax
jge 0x41bdb5
mov eax, esi
call fcn.0040c4d0
mov edi, dword [esi]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x41be01
mov edx, dword [esp + 0x1c]
shr edx, 1
mov word [edi + edx*2], ax
call fcn.0041be40
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
Function at 0x41c9a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4759bb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
push 0x206
xor ebp, ebp
lea ecx, [esp + 0x1e]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x24], ax
call fcn.0045e0a0
mov edx, dword [0x48eacc]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x48eacc
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x18]
push ecx
push 0x104
mov dword [esp + 0x234], ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebp
je 0x41cab6
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41ca40
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x18]
mov ebx, eax
push ecx
mov eax, 0x48fbe8
call fcn.0040c520
push 4
push str.wps_
push 0x48fbe8
call fcn.0040dbc0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea edi, [esp + 0x1c]
call fcn.0040a040
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0xc]
add esp, 8
push eax
push edi
push 0x48fbe8
call fcn.0040dbc0
mov edx, dword [0x48fbe8]
push edx
call fcn.00456de0
add esp, 4
cmp eax, ebp
je 0x41cab6
mov ebp, 1
jmp 0x41cac0
mov esi, 0x48fbe8
call fcn.0040c3c0
lea eax, [edi - 0x10]
mov dword [esp + 0x22c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cae7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004599ac
add esp, 0x21c
ret
Function at 0x41d8a0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4751e3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CKGradientWnd.0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x70]
push ecx
mov byte [esp + 0x18], 1
call fcn.00401f30
lea edx, [esi + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x64], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x68], 1
mov dword [esi + 0x6c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x41fa20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x41fa30
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41fa40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41ff00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x41ff7a
xor eax, eax
cmp ecx, ebp
je 0x41ff62
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x41ff88
cmp ecx, ebp
je 0x42001b
push ecx
jmp 0x420015
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x41ffea
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0041ff00
mov ebx, eax
cmp ebx, ebp
jne 0x420038
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x41ffb0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x41fffd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.00420090
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x42001b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004599ac
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x420047
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x42001d