joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a020
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40a189
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40a189
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ecx, [edx + edx*2]
mov eax, ebx
sub eax, ecx
mov ecx, 0
setne cl
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
add ecx, edx
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x40a073
pop esi
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edx, edx
je 0x40a0ee
add edi, 2
mov dword [ebp - 4], edx
nop
movzx edx, byte [edi - 2]
shr edx, 2
movzx eax, byte [edx + 0x5515e0]
mov byte [ecx + esi], al
movzx edx, byte [edi - 2]
movzx eax, byte [edi - 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
mov dl, byte [edx + 0x5515e0]
mov byte [ecx + esi + 1], dl
movzx eax, byte [edi - 1]
movzx edx, byte [edi]
and eax, 0xf
add eax, eax
add eax, eax
shr edx, 6
or eax, edx
movzx eax, byte [eax + 0x5515e0]
mov byte [ecx + esi + 2], al
movzx edx, byte [edi]
and edx, 0x3f
movzx eax, byte [edx + 0x5515e0]
mov byte [ecx + esi + 3], al
add ecx, 4
add edi, 3
dec dword [ebp - 4]
jne 0x40a080
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
dec eax
je 0x40a150
dec eax
jne 0x40a17f
movzx eax, byte [edi + ebx - 2]
lea edx, [edi + ebx - 2]
shr eax, 2
mov al, byte [eax + 0x5515e0]
mov byte [ecx + esi], al
movzx edx, byte [edx]
movzx eax, byte [edi + ebx - 1]
lea ebx, [edi + ebx - 1]
and edx, 3
shl edx, 4
shr eax, 4
or edx, eax
movzx edx, byte [edx + 0x5515e0]
mov byte [ecx + esi + 1], dl
movzx eax, byte [ebx]
and eax, 0xf
movzx edx, byte [eax*4 + 0x5515e0]
mov eax, dword [ebp - 0xc]
mov byte [ecx + esi + 2], dl
mov byte [ecx + esi + 3], 0x3d
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + ebx - 1]
shr eax, 2
movzx edx, byte [eax + 0x5515e0]
mov byte [ecx + esi], dl
movzx eax, byte [edi + ebx - 1]
and eax, 3
shl eax, 4
movzx edx, byte [eax + 0x5515e0]
mov byte [ecx + esi + 1], dl
mov word [ecx + esi + 2], 0x3d3d
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b1b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push 0x16
push eax
call fcn.0041d2b0
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov word [ebp - 0x84], cx
call fcn.004ba010
mov eax, dword [ebp - 0xa0]
add esp, 0x14
cmp dword [ebp - 0x8c], 8
jae 0x40b201
lea eax, [ebp - 0xa0]
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x53db48
push str.InstallPerUser
push 0x53db18
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ecx, 0x53db0c
lea eax, [ebp - 0x84]
jmp 0x40b230
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b256
test dx, dx
je 0x40b252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b256
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b230
xor eax, eax
jmp 0x40b25b
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
cmp dword [ebp - 0x8c], 8
push esi
mov esi, ecx
jb 0x40b27d
mov edx, dword [ebp - 0xa0]
push edx
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4

Function at 0x40b290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push 0x16
push eax
call fcn.0041d2b0
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov word [ebp - 0x84], cx
call fcn.004ba010
mov eax, dword [ebp - 0xa0]
add esp, 0x14
cmp dword [ebp - 0x8c], 8
jae 0x40b2e1
lea eax, [ebp - 0xa0]
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x53db48
push str.Inactive
push 0x53db18
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov ecx, 0x53db48
lea eax, [ebp - 0x84]
jmp 0x40b310
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b336
test dx, dx
je 0x40b332
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b336
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b310
xor eax, eax
jmp 0x40b33b
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
cmp dword [ebp - 0x8c], 8
push esi
mov esi, ecx
jb 0x40b35d
mov edx, dword [ebp - 0xa0]
push edx
call fcn.004b9008
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
Function at 0x40d340
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x168], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x40d3d2
xor eax, eax
push 0x3e6
push eax
lea ecx, [ebp - 0x3ea]
push ecx
mov word [ebp - 0x3ec], ax
call fcn.004ba010
add esp, 0xc
lea edx, [ebp - 0x3f0]
push edx
lea eax, [ebp - 0x3ec]
push eax
mov dword [ebp - 0x3f0], 0x1f3
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40d3d2
lea eax, [ebp - 0x3ec]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d3b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x3ec]
push ecx
lea ecx, [esi + 0x158]
call fcn.00402460
push 0xffffffffffffffff
push 0
add esi, 0x158
push esi
mov ecx, edi
call fcn.00402240
cmp dword [edi + 0x14], 8
jb 0x40d3ee
mov eax, dword [edi]
jmp 0x40d3f0
mov eax, edi
push eax
push str.UserName_is:__s.
push str.kupdate::KClientInfoGetter::GetInfoKeyUserName
push 0x561
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
call fcn.0041a9b0
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8

Function at 0x40dd60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, ecx
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
push edi
mov dword [ebp - 4], 0
neg ecx
or ecx, eax
push ecx
call fcn.004b7ad5
add esp, 4
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x40dd98
mov esi, dword [esi]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push ebx
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, edi
lea edx, [eax + 2]
jmp 0x40ddd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ddd0
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.00402460
push edi
call fcn.004b9ded
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40fc60
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5246b2
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x224], esi
mov word [esi], ax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], 1
mov word [ebp - 0x218], cx
call fcn.004ba010
add esp, 0xc
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x40fd2f
lea eax, [ebp - 0x228]
push eax
push 4
lea ecx, [ebp - 0x21c]
push ecx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40fd28
mov eax, dword [ebp - 0x21c]
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x40fd40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fd40
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, esi
call fcn.00402460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret

Function at 0x40fd80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524702
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x21c], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x224], esi
mov word [esi], cx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 1
lea edx, [ebp - 0x220]
push edx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 1
call ebx
test eax, eax
je 0x40fe4e
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004ba010
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push edi
call ebx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fe30
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x40fe70
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524738
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push str.HDID
push eax
call fcn.0040fd80
add esp, 8
cmp dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0
jne 0x40ff18
xor ecx, ecx
push 0x4e
push ecx
lea edx, [ebp - 0x5e]
push edx
mov word [ebp - 0x60], cx
call fcn.004ba010
add esp, 0xc
push 0x28
lea eax, [ebp - 0x60]
push eax
call fcn.004b58b0
test eax, eax
je 0x40ff00
lea eax, [ebp - 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fee4
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00402460
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x40ff0c
lea eax, [ebp - 0x7c]
push eax
push str.HDID
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x7c]
push edx
mov ecx, esi
call fcn.00402240
cmp dword [esi + 0x14], 8
jb 0x40ff31
mov eax, dword [esi]
jmp 0x40ff33
mov eax, esi
push eax
push str.OK__Result_is:__s.
push str.kupdate::KClientInfoGetter::GetInfoKeyHDID
push 0x46a
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
call fcn.0041a9b0
add esp, 0x18
cmp dword [ebp - 0x68], 8
jb 0x40ff64
mov eax, dword [ebp - 0x7c]
push eax
call fcn.004b9008
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8
Function at 0x416690
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c37b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x590cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_unsigned_short_int__struct_std::char_traits_unsigned_short_int__.0
call fcn.004b8637
push 4
mov dword [ebp - 4], 0
call fcn.004b9d21
mov edi, eax
add esp, 4
test edi, edi
je 0x416710
call fcn.004b8051
mov dword [edi], eax
call fcn.004b7e0f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004b7d44
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x416706
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004b7d6c
jmp 0x416712
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a5f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [0x5945d0]
inc ecx
mov dword [0x5945d0], ecx
cmp ecx, 0x64
jl 0x41a657
push esi
lea esi, [eax + 0x1c]
mov dword [0x5945d0], 0
cmp dword [esi + 0x14], 8
jb 0x41a62c
mov eax, dword [esi]
jmp 0x41a62e
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x41a656
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jbe 0x41a656
cmp dword [esi + 0x14], 8
jb 0x41a64f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 4
Function at 0x41a9e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5255a9
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 7
xor edi, edi
xor ecx, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 0x220], esi
mov word [esi], cx
xor edx, edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], edi
mov dword [ebp - 4], edi
mov word [esi + 0x1c], dx
push str.__UPD_LogFile_Z_MutxName__
push edi
push edi
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov dword [esi + 0x3c], 0x10000001
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi + 0x40], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.004b9013
add esp, 8
add eax, 2
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], edx
jmp 0x41aa90
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x41aa90
sub ecx, dword [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402460
lea eax, [ebp - 0x218]
push 0x2e
push eax
mov edi, 0x53ff6c
call fcn.004b9013
lea ecx, [eax + 2]
add esp, 8
sub ecx, edi
jmp 0x41aad0
movzx eax, word [edi]
mov word [ecx + edi], ax
add edi, 2
test ax, ax
jne 0x41aad0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x41aaf0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41aaf0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00402460
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x41b230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b24d
test al, 0x10
jne 0x41b24d
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41b260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b27d
test al, 0x10
je 0x41b27d
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41b290
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x41b2a5
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp + 0xc], 0
jne 0x41b2bb
cmp eax, 2
je 0x41b2a1
cmp eax, 3
je 0x41b2a1
test eax, eax
jle 0x41b2c9
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret
Function at 0x41ba20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52572c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, 7
xor eax, eax
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
mov dword [ebp - 4], ebx
call fcn.0041b5d0
test eax, eax
je 0x41bb46
lea ecx, [ebp - 0x26c]
push 1
push ecx
call fcn.0041d2b0
push str.das
push eax
lea edx, [ebp - 0x250]
push edx
mov byte [ebp - 4], 1
call fcn.00402b90
add esp, 0x14
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00402630
mov edi, 8
cmp dword [ebp - 0x23c], edi
jb 0x41bad6
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x258], edi
jb 0x41bb09
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004b9008
add esp, 4
mov edx, str._allusers_appdata
cmp dword [ebp + 0xc], ebx
jne 0x41bb18
mov edx, str.user_appdata
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41bb20
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x234]
call fcn.00402340
mov edi, 7
jmp 0x41bbe1
cmp dword [ebp + 0xc], ebx
je 0x41bba7
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.004ba010
add esp, 0xc
push ebx
push 0x23
lea edx, [ebp - 0x218]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41bb83
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00402460
jmp 0x41bbe1
lea ecx, [ebp - 0x26c]
push ecx
call fcn.00521e50
add esp, 4
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00402630
cmp dword [ebp - 0x258], 8
mov byte [ebp - 4], bl
jb 0x41bbe1
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004b9008
add esp, 4
cmp dword [ebp - 0x224], ebx
jne 0x41bc08
push str._GetAppDataDir_Failed_
push str.kupdate::KPathUtil::_GetAppDataDir
push 0x83
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcutilKPathUtil.cpp
push ebx
call fcn.0041a9b0
add esp, 0x14
jmp 0x41bc1a
push 0x11
push str.kingsoftoffice6
lea ecx, [ebp - 0x234]
call fcn.00402340
lea ecx, [ebp - 0x234]
xor eax, eax
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.00402630
cmp dword [ebp - 0x220], 8
jb 0x41bc4b
mov edx, dword [ebp - 0x234]
push edx
call fcn.004b9008
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x41d700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525a9b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x64]
push 7
push eax
call fcn.0041d2b0
add esp, 8
xor ebx, ebx
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], ebx
call fcn.00411d70
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], esi
jb 0x41d76a
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b9008
add esp, 4
mov eax, 7
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], eax
push 0x1f
xor edx, edx
xor eax, eax
push str.Support_RegAppdataReplaceWinApi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00402460
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.00412500
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x41d7b8
lea eax, [ebp - 0x48]
push 0x53db0c
push eax
call fcn.004bb2ef
add esp, 8
test eax, eax
sete byte [ebp - 0xb1]
cmp dword [ebp - 0x34], esi
jb 0x41d7e0
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], esi
jb 0x41d805
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp byte [ebp - 0xb1], bl
je 0x41d83d
mov ecx, dword [ebp + 0xc]
push 0xa
push 0xffffffffffffffff
push ecx
push edi
push 0x1a
xor ecx, ecx
call fcn.0041af20
xor edx, edx
add esp, 0x14
test eax, eax
setns dl
mov esi, edx
jmp 0x41d84a
push ebx
push 0x1a
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
call fcn.004131e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x41d880
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x202]
push ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], 0x100
mov word [ebp - 0x204], ax
call fcn.004ba010
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
push 0x10008
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x41d8f6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x41d978
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edx, dword [ebp - 0x208]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push 0
push edx
mov dword [ebp - 0x20c], 0x100
call edi
mov esi, eax
cmp esi, 0x103
je 0x41d958
test esi, esi
jne 0x41d968
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push ecx
call fcn.0041d880
mov esi, eax
add esp, 8
test esi, esi
je 0x41d901
jmp 0x41d968
mov edx, dword [ebp - 0x210]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret