joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push str.IsWow64Process
xor esi, esi
mov dword [ebp - 0x14], 4
push str.kernel32
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], 0
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42c963
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 8], esi
mov eax, 0x100
cmovne esi, eax
lea eax, [ebp - 4]
push eax
or esi, 0x20019
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c9ae
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
or esi, 0xffffffff
mov edi, dword [ebp - 0xc]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c9ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x42c9e6
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x808], 1
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov word [ebp - 0x804], ax
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x810], 0x400
mov esi, esp
push eax
call fcn.00403380
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.0041b4f0
mov dword [ebp - 0x808], eax
cmp eax, 1
je 0x42caad
cmp eax, 2
je 0x42caad
cmp eax, 7
je 0x42caad
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403380
mov edx, dword [ebp + 0xc]
add eax, 0x10
or esi, 0xffffffff
mov dword [edi], eax
add esp, 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42ca8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x42cb84
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x42cb84
lea eax, [ebp - 0x80c]
push eax
mov eax, dword [ebx + 4]
or eax, 0x20019
push eax
push 0
push dword [ebx + 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebx], eax
test eax, eax
je 0x42cae7
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403380
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x42cb4f
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x80c]
xor ecx, ecx
mov dword [ebx], eax
test eax, eax
mov ebx, 1
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x42cb41
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00403380
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x42cb4f
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.00403710
mov edx, dword [ebp + 0xc]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42cb6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42cb84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42cba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x43c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
lea eax, [ebp - 0x404]
push 0x400
cmp edi, esi
push 0
push eax
cmovne esi, edi
call fcn.0044c180
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea eax, [ebp - 0x438]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call ebx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x438]
je 0x42ce07
xor eax, eax
mov dword [ebp - 0x420], 7
push eax
push 0x400
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x424], 0
mov word [ebp - 0x434], ax
mov dword [ebp - 0x408], 0xf
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x41c], al
call fcn.00434420
cmp dword [ebp - 0x408], 0x10
lea ecx, [ebp - 0x404]
push 0x400
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push ecx
push eax
call fcn.0044bc00
add esp, 0xc
mov dword [ebp - 0x40c], 0x400
cmp dword [ebp - 0x408], 0x10
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push 0
mov byte [eax + 0x400], 0
lea eax, [ebp - 0x434]
push eax
sub esp, 0x18
lea eax, [ebp - 0x41c]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00435800
call fcn.0040cc50
add esp, 0x20
cmp dword [ebp - 0x420], 8
jb 0x42cd0f
mov edx, dword [ebp - 0x434]
test edx, edx
jne 0x42cd15
xor eax, eax
jmp 0x42cd2f
lea edx, [ebp - 0x434]
mov eax, edx
lea edi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cd20
sub eax, edi
sar eax, 1
mov ecx, dword [ebp - 0x43c]
push eax
push edx
call fcn.00403910
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0044c180
mov eax, dword [ebp - 0x408]
add esp, 0xc
cmp eax, 0x10
jb 0x42cd9e
mov ecx, dword [ebp - 0x41c]
inc eax
cmp eax, 0x1000
jb 0x42cd95
test cl, 0x1f
jne 0x42ce29
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x42ce29
sub ecx, eax
cmp ecx, 4
jb 0x42ce29
cmp ecx, 0x23
ja 0x42ce29
mov ecx, eax
push ecx
call fcn.00448f28
add esp, 4
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x408], 0xf
mov dword [ebp - 0x40c], 0
mov byte [ebp - 0x41c], 0
cmp eax, 8
jb 0x42cc07
mov ecx, dword [ebp - 0x434]
inc eax
cmp eax, 0x7fffffff
ja 0x42ce29
add eax, eax
cmp eax, 0x1000
jb 0x42cdf9
test cl, 0x1f
jne 0x42ce29
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x42ce29
sub ecx, eax
cmp ecx, 4
jb 0x42ce29
cmp ecx, 0x23
ja 0x42ce29
mov ecx, eax
push ecx
call fcn.00448f28
add esp, 4
jmp 0x42cc07
cmp esi, 0xffffffff
je 0x42ce13
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret
call fcn.00454ed1
int3
Function at 0x42ce30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x210]
sub edx, eax
nop
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x42ce50
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ce70
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 + 2]
cmp ecx, 0x20a
jae 0x42cf4c
xor eax, eax
xorps xmm0, xmm0
mov word [ebp + ecx - 0x210], ax
mov edx, 0xffbf
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
mov eax, 0x414
movq qword [ebp - 0x220], xmm0
mov cx, word [ebp - 0x220]
or cx, ax
lea eax, [ebp - 0x210]
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x228], eax
mov ax, cx
and ax, dx
mov dword [ebp - 0x22c], 3
or cx, 0x40
mov dword [ebp - 0x224], 0
cmp dword [ebp + 0xc], 0
cmovne cx, ax
lea eax, [ebp - 0x230]
push eax
mov word [ebp - 0x220], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x21e], 0
mov ecx, eax
je 0x42cf35
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004495f3
mov esp, ebp
pop ebp
ret 8
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.004495f3
mov esp, ebp
pop ebp
ret 8
call fcn.00449768
int3
Function at 0x42d9b0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x42db93
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403380
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.0041b590
mov eax, dword [ebp + 8]
add esp, 4
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403380
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00424470
test al, al
jne 0x42da21
or edi, 0xffffffff
jmp 0x42db3e
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
or edi, 0xffffffff
test eax, eax
jne 0x42db3e
nop dword [eax]
cmp esi, 0x14
jge 0x42db3e
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42da61
push dword [ebp + 0xc]
call fcn.00431f10
add esp, 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
push 0xc8
mov ebx, eax
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x14
jg 0x42da8d
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
je 0x42da40
jmp 0x42db3e
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42db3e
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x42db9d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push str.._d.tmp
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a190
add esp, 0xc
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 8]
push esi
push eax
call fcn.0041ad10
mov edx, dword [ebp - 0xc]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42dafd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x42db27
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42db3e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 4]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42db58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42db72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42db8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402080
push 0x80004005
call fcn.00402080
int3
Function at 0x42e620
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bbfa8]
mov dword [ebp - 4], 0
test eax, eax
je 0x42e63f
lea ecx, [ebp - 0x10]
push ecx
call eax
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e6fc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42e6fc
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x42e7e3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp + 0x10]
push str.._d.tmp
push eax
call fcn.0041ad10
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push ebx
push eax
call fcn.0040a220
add esp, 0x18
lea ecx, [ebp + 0x10]
push eax
call fcn.00409a20
mov edx, dword [ebp - 8]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e6c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x42e78b
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x42e6fc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor ecx, ecx
nop
push dword [ebp + 0xc]
inc ecx
push dword [ebp + 8]
mov dword [ebp - 0xc], ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e76e
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x42e7ab
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
cmp ecx, 5
jl 0x42e700
jmp 0x42e7b8
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x42e7a0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], 0
je 0x42e7d5
mov eax, dword [0x4bbee4]
test eax, eax
je 0x42e7d5
push dword [ebp - 0x10]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00402080
int3
Function at 0x432f70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
mov esi, 1
mov eax, dword [edi + 4]
or eax, 0x20006
push eax
push 0
push dword [edi + 0x10]
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x432fa0
xor esi, esi
jmp 0x432fd4
push 0xc
lea eax, [ebp + 0xc]
push eax
push 3
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
cmp dword [edi + 0xc], ecx
jne 0x432fcb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x432fef
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov edi, 1
cmp dword [eax - 0xc], 0x3ff
jg 0x4341cc
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x808]
push eax
mov eax, dword [esi + 4]
or eax, 0x20006
push eax
push 0
push dword [esi + 0x10]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4341cc
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434175
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x804]
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
cmp dword [esi + 0xc], ecx
jne 0x4341be
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4341ce
xor edi, edi
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4341eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x434203
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004495f3
mov esp, ebp
pop ebp
ret 8
Function at 0x4342e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
xor ecx, ecx
test edx, edx
je 0x4343b5
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x20
jb 0x434393
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x43431a
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x434393
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x43432c
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x434393
mov eax, edx
mov edx, edi
sub edx, ebx
and eax, 0xffffffe0
mov dword [ebp - 4], edx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov ebx, dword [ebp - 8]
mov edx, edi
mov edi, dword [ebp - 4]
sub edx, esi
mov dword [ebp - 0xc], edx
lea edx, [esi + 0x10]
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0xc]
add ecx, 0x20
lea eax, [eax + 0x20]
lea edx, [edx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
movups xmm1, xmmword [esi + edx - 0x20]
mov esi, dword [ebp + 0x14]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x434354
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, edx
jae 0x4343b2
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x4343a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x439340
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str._rmup_ruanmei
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046eedf
add esp, 0xc
push 0
push str._rmup_ruanmei
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4393e8
cmp eax, 0xb7
jne 0x4393e8
test edi, edi
je 0x4393e8
push 0
push 0
push 0x448
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x4393e8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004495f3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004495f3
mov esp, ebp
pop ebp
ret
Function at 0x439d20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
call fcn.00402250
mov ecx, eax
test ecx, ecx
je 0x439e46
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x439d6d
push 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x439d75
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x214], eax
test eax, eax
je 0x439e34
push edi
push eax
push 2
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x4a4054
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 0x21c]
mov si, word [eax + 0x12]
mov dx, word [eax + 0x10]
mov cx, word [eax + 0x16]
mov ax, word [eax + 0x14]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
push str._d._d._d._d
push ebx
call fcn.0041ad10
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402080
int3
Function at 0x43a860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4b93f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x408], 0
call ebx
mov edi, eax
test edi, edi
jne 0x43a8d0
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x43a8d0
call fcn.0040c560
mov esi, eax
jmp 0x43a989
push dword [ebp - 0x40c]
push dword [ebp - 0x410]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43a8f3
call fcn.0040c560
jmp 0x43a97c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x43a908
call fcn.0040c560
jmp 0x43a97c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x43a920
mov esi, 0x8007000e
jmp 0x43a97e
push eax
lea ecx, [ebp - 0x408]
call fcn.00438030
cmp dword [ebp - 0x408], 0
jne 0x43a93c
mov esi, 0x8007000e
jmp 0x43a97e
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x43a95c
call fcn.0040c560
jmp 0x43a97c
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.0043a700
mov esi, eax
test edi, edi
je 0x43a989
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x43a9a2
lea ecx, [ebp - 0x408]
call fcn.00439c80
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004495f3
mov esp, ebp
pop ebp
ret 0x10