joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a960
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x40aa24
push edi
push 0x6f
lea eax, [ebp + 8]
push eax
call fcn.0040a630
push dword [eax]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowTextW]
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 0x40a9a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x74
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0040a630
push dword [eax]
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
pop edi
jg 0x40a9d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x64
push 0x402
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x101
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x44]
call fcn.0041ee70
cmp eax, 2
je 0x40aa18
mov ecx, esi
call fcn.0040c2a0
test eax, eax
je 0x40aa60
mov ecx, esi
call fcn.0040a6b0
pop esi
pop ebp
ret 4
call fcn.0040c2a0
test eax, eax
je 0x40aa41
push 0
push 0
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
pop ebp
ret 4
push 2
mov ecx, esi
call fcn.0040b690
push 0
push dword [esi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_EnableWindow]
pop esi
pop ebp
ret 4

Function at 0x40b050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x6d
lea eax, [ebp - 4]
push eax
call fcn.0040a630
push 5
push 0
push 0
push dword [ebp - 4]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b090
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b0c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4253e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43a504]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x42b58c
lea ecx, [ebp - 0x10]
call fcn.00402d80
mov eax, dword [edi + 0x40]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp eax, 2
jne 0x40b154
push 0x7b
lea eax, [ebp + 8]
mov ecx, edi
push eax
mov esi, 0x3e8
call fcn.0040a630
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.00409fd0
mov edx, dword [ebp + 8]
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b1f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40b1f0
cmp eax, 1
jne 0x40b1ed
push 0x68
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0040a630
mov esi, dword [eax]
mov eax, 0x10624dd3
imul ecx, dword [ebp + 8], 0x64
mov byte [ebp - 4], 2
mul ecx
lea eax, [ebp - 0x10]
shr edx, 6
push edx
push esi
push eax
call fcn.00409fd0
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b1aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x38], 0xffffffff
jne 0x40b1c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x38], eax
jmp 0x40b1ed
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [edi + 0x34]
cmp ecx, 0x3e8
jb 0x40b1ed
mov eax, 0x10624dd3
mul ecx
mov eax, dword [ebp + 0xc]
sub eax, dword [edi + 0x38]
mov ecx, edx
shr ecx, 6
xor edx, edx
div ecx
mov dword [edi + 0x3c], eax
mov esi, dword [ebp + 8]
imul ecx, esi, 0x64
mov eax, 0x10624dd3
push 0
mul ecx
shr edx, 6
push edx
push 0x402
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x10]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40b239
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x113
push edi
mov edi, ecx
jne 0x40b2f0
mov eax, dword [ebp + 0xc]
cmp eax, 0x101
jne 0x40b2d4
cmp dword [edi + 0x3c], 0x32
jae 0x40b2f0
push esi
push 0x6e
lea eax, [ebp + 8]
push eax
call fcn.0040a630
push 0x3f4
push dword [edi + 4]
mov esi, dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop esi
test eax, eax
jg 0x40b2b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x3f4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
pop ebp
ret 0x10
cmp eax, 0x102
jne 0x40b2f0
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
pop ebp
ret 0x10

Function at 0x40b820
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425460
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x43a504]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040c210
cmp eax, 1
jne 0x40b8fb
push ecx
mov ecx, esp
push str.weiyunsync.exe
call fcn.00402d80
mov ecx, esi
call fcn.0040a0b0
mov edi, eax
test edi, edi
je 0x40b881
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
call fcn.00408be0
push 0x82
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0040a630
push eax
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402750
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b8cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi + 4]
lea ecx, [ebp - 0x48]
call fcn.00409e00
mov esi, dword [esi + 0x400]
lea ecx, [ebp - 0x48]
call fcn.00409180
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40efe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [edi]
push 1
push dword [edi + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [edi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [edi + 0x18]
mov byte [ebp - 1], bl
mov dword [edi + 0x1c], eax
test bl, bl
je 0x40f131
add dword [edi + 0x14], ecx
push 0xffffffffffffffff
push eax
mov eax, dword [edi + 0x24]
push 0x18
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
mov dword [eax], str.read
lea eax, [edi + 0x20]
push eax
call fcn.00414dc0
mov eax, dword [edi + 0x1c]
add esp, 0x18
mov edx, dword [edi + 0x18]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0xc], edx
test eax, eax
je 0x40f0e7
dec eax
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 0xc], 1
jne 0x40f066
cmp byte [esi], al
jmp 0x40f069
cmp word [esi], ax
sete al
test eax, eax
je 0x40f094
test ecx, ecx
je 0x40f08d
cmp esi, ecx
je 0x40f08d
mov eax, esi
imul edx, ebx
sub eax, ecx
push eax
push ecx
sub ecx, edx
push ecx
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov edx, dword [edi + 0x18]
inc ebx
lea ecx, [edx + esi]
mov eax, dword [ebp - 8]
add esi, edx
test eax, eax
jne 0x40f056
test ecx, ecx
je 0x40f0bb
cmp esi, ecx
je 0x40f0bb
mov eax, dword [edi + 0x18]
sub esi, ecx
imul eax, ebx
push esi
push ecx
sub ecx, eax
push ecx
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
lea esi, [edi + 0x20]
test ebx, ebx
je 0x40f0ea
push 0xffffffffffffffff
push ebx
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push esi
mov dword [eax], str.nulls_removed
call fcn.00414dc0
add esp, 0x18
sub dword [edi + 0x1c], ebx
jmp 0x40f0ea
lea esi, [edi + 0x20]
cmp dword [edi + 0x18], 1
jle 0x40f125
test byte [edi + 4], 0x80
je 0x40f125
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.00415bd0
add esp, 8
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
push ecx
mov dword [ecx], 0
mov ecx, esp
push esi
mov dword [ecx], 0x430b70
call fcn.00414dc0
add esp, 0x18
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.0040e900
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp + 8], 0
push edi
mov edi, edx
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
imul eax, ebx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne edi, eax
test byte [esi + 4], 0x80
je 0x40f726
test edx, edx
jne 0x40f6e3
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004221c5
mov ecx, dword [esi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 8], ebx
push ecx
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x10
mov edx, ebx
mov edi, ebx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40f702
nop word [eax + eax]
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x40f6f0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [eax], 0x430b70
lea eax, [esi + 0x20]
push eax
call fcn.00414dc0
add esp, 0x18
push dword [esi]
push 1
push dword [esi + 8]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp + 8]
sete bl
test eax, eax
je 0x40f74d
push eax
call fcn.00421a52
add esp, 4
test bl, bl
je 0x40f784
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [esi + 0x1c]
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov edx, esp
push ecx
mov dword [edx], ecx
mov ecx, esp
mov dword [ecx], str.write
lea ecx, [esi + 0x20]
push ecx
call fcn.00414dc0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.0040e900
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x419350
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4193d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426578
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43a504]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x419514
cmp byte [ebx + 0x3d], 0
je 0x419514
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x419429
xor al, al
jmp 0x419516
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
nop
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x41949c
sub eax, 1
je 0x4194a0
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x4194f8
xor bl, bl
jmp 0x4194fa
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x4194d6
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x419498
cmp byte [ebx + 0x3d], 0
je 0x4194f8
test edi, edi
lea edi, [ebx + 0x40]
jne 0x419460
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00419610
jmp 0x419459
mov bl, 1
cmp esi, 0x10
jb 0x419510
push 1
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.0040bd10
add esp, 0xc
mov al, bl
jmp 0x419516
mov al, 1
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.00421a0e
mov esp, ebp
pop ebp
ret
Function at 0x41b4a0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4269b8
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x43a504]
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 eax, ecx
mov dword [ebp - 0x22c], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x228], ebx
xor edi, edi
push 0x208
mov dword [eax + 4], 1
lea eax, [ebp - 0x218]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
push 0x42b58c
call fcn.00402d80
mov dword [ebp - 4], edi
test esi, esi
je 0x41b562
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0041c070
test eax, eax
js 0x41b562
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.0041c110
mov ebx, 1
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], ebx
call fcn.00401d60
mov eax, dword [ebp - 0x220]
mov byte [ebp - 0x219], bl
cmp dword [eax - 0xc], edi
jg 0x41b569
mov byte [ebp - 0x219], 0
or esi, 0xffffffff
mov dword [ebp - 4], 0
test bl, 1
je 0x41b595
mov edx, dword [ebp - 0x224]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b595
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
je 0x41b61b
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b5bf
test al, 0x10
jne 0x41b5bf
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402d80
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
call fcn.0041b670
mov edx, dword [ebp - 0x224]
test eax, eax
mov ecx, 0x80400000
mov byte [ebp - 4], 0
cmovne edi, ecx
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b620
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41b620
mov edi, 0x80070057
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41b642
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00421a0e
mov esp, ebp
pop ebp
ret 4
Function at 0x41be80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x41bef6
test esi, esi
js 0x41bef6
cmp esi, eax
jge 0x41bef6
lea eax, [ecx + esi*2]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
je 0x41bef6
sub esi, dword [edi]
sar esi, 1
js 0x41bef6
push esi
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0041b810
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 8]
mov ebx, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41beec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
inc esi
mov eax, dword [ecx - 0xc]
cmp esi, eax
jl 0x41be96
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x41c170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426afb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x43a504]
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]
lea ecx, [ebp - 0x21c]
push 0x42b58c
mov dword [ebp - 0x220], 0
call fcn.00402d80
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x41c249
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.004021f0
mov edi, dword [ebp - 0x21c]
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41c22a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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.00421a0e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push 0x431988
push eax
call fcn.00409fd0
mov eax, dword [ebp - 0x21c]
add esp, 0xc
mov edx, dword [eax - 0xc]
lea ecx, [edx - 1]
test ecx, ecx
js 0x41c2e4
cmp ecx, edx
jg 0x41c2e4
cmp word [eax + ecx*2], 0x5c
lea eax, [ebp - 0x21c]
push str.WeiyunSync
je 0x41c291
push 0x4319a8
jmp 0x41c296
push str.Tencent_s_
push eax
call fcn.0041bbc0
mov eax, dword [ebp - 0x21c]
add esp, 0xc
add eax, 0xfffffff0
push eax
call fcn.004021f0
mov edx, dword [ebp - 0x21c]
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41c22a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41c22a
push 0x80070057
call fcn.00401f90
int3
Function at 0x41ee80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427042
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x43a504]
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 + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call fcn.004023c0
mov ecx, eax
test ecx, ecx
jne 0x41eedb
push 0x80004005
call fcn.00401f90
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41ef42
push str.Version.ini
push str.WeiyunSync
lea eax, [ebp - 0x218]
push eax
push str._sTencent_s_s
push esi
call fcn.00409fd0
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421a0e
mov esp, ebp
pop ebp
ret 4

Function at 0x41ef90
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43a504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
xor ebx, ebx
mov dword [ebp - 0x14], 0
push 8
mov dword [ebp - 0x10], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f069
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x14]
push ecx
push esi
push esi
push 2
push eax
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41f069
push eax
call fcn.004221c5
push dword [ebp - 0x14]
mov ebx, eax
push esi
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push ebx
push 2
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x41f069
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp dword [ebp - 0x10], esi
je 0x41f07e
cmp dword [ebx], esi
jle 0x41f067
lea edi, [ebx + 4]
nop dword [eax + eax]
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41f0ac
inc esi
add edi, 8
cmp esi, dword [ebx]
jl 0x41f050
xor esi, esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41f07e
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], 0
test ebx, ebx
je 0x41f08b
push ebx
call fcn.00421a52
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f099
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421a0e
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x41f069
Function at 0x41f790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42717b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x43a504]
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, ecx
mov ecx, dword [edi + 8]
lea eax, [ebp - 0x228]
push eax
call fcn.0041c110
mov eax, dword [ebp - 0x228]
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x41f7ec
mov esi, 3
jmp 0x41f8c3
mov eax, dword [ebp - 0x228]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x22c], esi
call fcn.004021f0
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0041e5f0
mov esi, eax
test esi, esi
jne 0x41f8c3
push 0x20a
push eax
lea eax, [ebp - 0x224]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x431a7c]
add esp, 0xc
mov ecx, dword [edi + 8]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov ax, word [0x431a80]
mov word [ebp - 0x14], ax
call fcn.0041c150
push dword [ebp - 0x228]
test eax, eax
lea esi, [ebp - 0x18]
push str.__s_
lea eax, [ebp - 0x224]
cmove esi, ebx
push 0x104
push eax
call fcn.0041df60
add esp, 0x10
call fcn.0041ef90
test eax, eax
jne 0x41f89c
mov ecx, dword [edi + 8]
call fcn.0041c150
test eax, eax
jne 0x41f89c
push 1
push eax
push esi
lea eax, [ebp - 0x224]
push eax
push str.runas
jmp 0x41f8ad
push 1
push 0
push esi
lea eax, [ebp - 0x224]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x41f8be
xor esi, esi
jmp 0x41f8c3
mov esi, 0xa
mov eax, dword [ebp - 0x228]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41f8e8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 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.00421a0e
mov esp, ebp
pop ebp
ret 4