joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446605
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [0x47c768], eax
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x20]
test al, 0x10
je 0x446643
push ebp
call fcn.00448120
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x44666c
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44666c
mov eax, esi
jmp 0x4467c5
xor ebx, ebx
cmp edi, ebx
jne 0x446670
test eax, 0x4000
je 0x446670
test al, 0x21
jne 0x44665c
test al, 2
je 0x446670
push ebx
push ebp
jmp 0x44665e
push ebp
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
jne 0x4467c5
mov eax, dword [esp + 0x14]
mov dword [0x47c5a4], eax
mov dword [0x47c498], ebx
mov dword [0x47c488], ebx
mov dword [0x47c48c], ebx
mov dword [0x47c750], ebx
cmp edi, ebx
je 0x4466a2
push edi
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [0x47c49c], edi
test eax, eax
jne 0x4466a8
mov dword [0x47c49c], ebx
cmp ebp, ebx
jne 0x4466bf
test dword [0x47c5a4], 0x700
jne 0x4466bf
xor eax, eax
jmp 0x4467c5
mov al, byte [0x47c5a4]
xor edi, edi
mov byte [0x47c5a8], bl
mov esi, 0x45e9ec
test al, 0x21
je 0x44670c
push ebx
push 1
mov edi, 0x47c4a0
push 0x103
test al, 0x20
je 0x4466ed
push 0x47c5a8
jmp 0x4466ee
push edi
push ebx
push esi
push ebp
call fcn.00444fa4
push ebx
push 1
push 0x45c970
push 0x460868
push edi
call fcn.0044168f
xor edi, edi
inc edi
test byte [0x47c5a4], 2
je 0x446728
push ebx
push 1
push 0x3f
push 0x47c6b0
push edi
push esi
push ebp
call fcn.00444fa4
inc edi
test byte [0x47c5a4], 4
je 0x446744
push ebx
push 1
push 0x1f
push 0x47c6f0
push edi
push esi
push ebp
call fcn.00444fa4
inc edi
test byte [0x47c5a4], 8
je 0x446760
push ebx
push 1
push 0x1f
push 0x47c710
push edi
push esi
push ebp
call fcn.00444fa4
inc edi
test byte [0x47c5a4], 0x10
je 0x4467b4
push ebx
push 1
push 0x1f
mov ebx, 0x47c730
push ebx
push edi
push esi
push ebp
call fcn.00444fa4
mov al, byte [0x47c730]
cmp al, 0x23
je 0x44679e
cmp al, 0x78
je 0x44679e
cmp al, 0x58
je 0x44679e
cmp al, 0x30
jne 0x4467b4
mov al, byte [0x47c731]
cmp al, 0x78
je 0x44679e
cmp al, 0x58
jne 0x4467b4
push ebx
call fcn.0041ff15
push eax
push 0x45cb14
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebp
push 0x4465a0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x47c498]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x4467cc
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
call fcn.00440c4d
mov dword [ebp - 0x18], eax
cmp eax, 2
jl 0x446837
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x446808
xor al, al
jmp 0x446865
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp - 0x18], 1
jl 0x446856
test byte [ebp + 8], 4
je 0x446856
xor dword [ebp + 8], 4
push esi
push dword [ebp + 0xc]
push esi
push 0x400
call fcn.00446605
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00448080
leave
ret 8

Function at 0x448080
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4755d0]
jne 0x44808a
repz ret
jmp fcn.0044d461
Function at 0x45a9e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4755d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044ce44
and dword [ebp - 0x14], 0
cmp dword [0x47d50c], 0
mov dword [ebp - 0x18], eax
jne 0x45aa9a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45ab42
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45ab42
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47d50c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47d510], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47d514], eax
call edi
push eax
call esi
mov dword [0x47d51c], eax
test eax, eax
je 0x45aa9a
push 0x472150
push ebx
call edi
push eax
call esi
mov dword [0x47d518], eax
mov eax, dword [0x47d518]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45aaf3
cmp dword [0x47d51c], ecx
je 0x45aaf3
push eax
call esi
push dword [0x47d51c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45aaf3
test ebx, ebx
je 0x45aaf3
call edi
test eax, eax
je 0x45aaea
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45aaea
test byte [ebp - 8], 1
jne 0x45aaf3
or dword [ebp + 0x10], 0x200000
jmp 0x45ab26
mov eax, dword [0x47d510]
cmp eax, dword [ebp - 0x18]
je 0x45ab26
push eax
call esi
test eax, eax
je 0x45ab26
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45ab26
mov eax, dword [0x47d514]
cmp eax, dword [ebp - 0x18]
je 0x45ab26
push eax
call esi
test eax, eax
je 0x45ab26
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47d50c]
call esi
test eax, eax
je 0x45ab42
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45ab44
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448080
leave
ret
Function at 0x407e40
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5257b0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0x555a60
mov dword [esi + 0x54], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
jne 0x407eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x407ea7
mov edx, dword [ecx]
push eax
push 0
call dword [edx]
xor al, al
jmp 0x407fa1
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push edi
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
call fcn.004082a0
add esp, 8
test al, al
jne 0x407f06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x407f02
mov edx, dword [ecx]
push eax
push 1
call dword [edx]
xor bl, bl
jmp 0x407f69
lea ecx, [esi + 4]
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x407f1a
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b90
mov ax, word [ebp - 0x48]
lea ecx, [esi + 0x20]
mov word [esi + 0x1c], ax
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x407f36
push 0xffffffffffffffff
push 0
push eax
call fcn.00407b90
lea ecx, [esi + 0x38]
cmp ecx, ebx
je 0x407f47
push 0xffffffffffffffff
push 0
push ebx
call fcn.00407b90
cmp dword [edi + 0x14], 8
jb 0x407f4f
mov edi, dword [edi]
push 8
push str.https:__
push edi
call fcn.004eb218
add esp, 0xc
test eax, eax
jne 0x407f67
mov byte [esi + 0x50], 1
mov bl, 1
cmp dword [ebp - 0x18], 8
jb 0x407f7a
push dword [ebp - 0x2c]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x407f9f
push dword [ebp - 0x44]
call fcn.004db8b0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407fc0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5257e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x57f7a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
movzx ecx, word [esi + 0x1c]
jb 0x408001
mov eax, dword [eax]
push 1
push 0
push 3
push 0
push 0
push ecx
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40803b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
mov edx, eax
test ecx, ecx
je 0x40810c
mov eax, dword [ecx]
push edx
push 2
call dword [eax]
jmp 0x40810c
cmp byte [esi + 0x50], 0
lea ecx, [esi + 0x20]
mov edx, 0x84001081
mov dword [ebp - 0x14], 0x5598cc
mov edi, 0x84801081
mov dword [ebp - 0x10], 0
cmovne edx, edi
lea ebx, [esi + 0x38]
cmp dword [ecx + 0x14], 8
jb 0x408068
mov ecx, dword [ecx]
push 1
push edx
lea edx, [ebp - 0x14]
push edx
push 0
push str.HTTP_1.1
push ecx
push 0x5598e8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4080f8
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x408097
mov ebx, dword [ebx]
push 0
push 0
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4080f8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408200
test al, al
jne 0x4080ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x40810c
push eax
push 7
jmp 0x408108
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4080e9
push dword [ebp - 0x10]
mov eax, dword [ecx]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x40810c
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00408140
mov bl, al
jmp 0x40810e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x40810c
push eax
push 6
mov edx, dword [ecx]
call dword [edx]
xor bl, bl
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x40811b
push edi
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408125
push eax
call esi
mov al, bl
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 0x408140
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x8000
mov edi, ecx
call fcn.0049d11c
mov ebx, dword [ebp + 8]
add esp, 4
mov esi, eax
lea ebx, [ebx]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x8000
push esi
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40819b
mov edx, dword [ebp + 8]
test edx, edx
je 0x4081ad
js 0x40819b
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x408160
mov eax, dword [ecx]
push edx
push esi
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x408160
push esi
call fcn.004eb213
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x4081b9
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.004eb213
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x408200
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
mov edi, ecx
push eax
push 0x20000013
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40823c
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 4]
mov dword [esi], 0xffffffff
push eax
push 0x20000005
mov dword [esi + 4], 0xffffffff
push dword [edi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x40828b
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 4], 0
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4082a0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov dword [ebp - 0x208], eax
mov edi, ecx
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.004f31f0
push 0x38
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.004f31f0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x244], 0x3c
add esp, 0x18
mov dword [ebp - 0x234], eax
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x230], 0xff
mov dword [ebp - 0x214], 1
jb 0x408329
mov esi, dword [esi]
lea ecx, [ebp - 0x244]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x408351
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x234]
cmp word [edx], 0
jne 0x408361
xor ecx, ecx
jmp 0x408375
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408366
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00407470
mov edx, dword [ebp - 0x218]
mov ax, word [ebp - 0x22c]
mov word [ebx], ax
cmp word [edx], 0
jne 0x408398
xor ecx, ecx
jmp 0x4083af
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4083a0
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x208]
push edx
call fcn.00407470
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ea604
mov esp, ebp
pop ebp
ret

Function at 0x4096c0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x409736
cmp byte [esi + 0x1c], 0
je 0x409700
push 0x559954
push 0x45
push str.DwThread::waitFor
call fcn.00439030
add esp, 0xc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push str.ResumeThread_end
push 0x47
push str.DwThread::waitFor
call fcn.00439030
add esp, 0xc
push str.wait
push 0x4a
push str.DwThread::waitFor
call fcn.00439030
add esp, 0xc
push 0x7d0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.wait_end
push 0x4c
push str.DwThread::waitFor
call fcn.00439030
add esp, 0xc
pop esi
ret

Function at 0x40f550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40f569
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40f5a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40f5a0
lea ebx, [ebx]
cmp esi, edx
jae 0x40f5a4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40f590
cmp esi, edx
jb 0x40f5ab
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f910
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x40fa50
test edx, edx
je 0x40fa50
push edx
push ecx
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x94], 0x67452301
mov dword [ebp - 0x90], 0xefcdab89
mov dword [ebp - 0x8c], 0x98badcfe
mov dword [ebp - 0x88], 0x10325476
call fcn.0040eb60
lea ecx, [ebp - 0x94]
call fcn.0040ec30
xorps xmm0, xmm0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x94]
movdqu xmmword [ebp - 0x27], xmm0
movdqu xmmword [ebp - 0x17], xmm0
call fcn.0040ed00
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x40f9b8
mov eax, dword [esi]
jmp 0x40f9ba
mov eax, esi
lea edx, [ebp - 0x28]
cmp edx, eax
jb 0x40fa02
cmp ecx, 0x10
jb 0x40f9ca
mov edx, dword [esi]
jmp 0x40f9cc
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
lea edx, [ebp - 0x28]
cmp eax, edx
jbe 0x40fa02
cmp ecx, 0x10
jb 0x40f9e1
mov ecx, dword [esi]
jmp 0x40f9e3
mov ecx, esi
push 0x20
lea eax, [ebp - 0x28]
sub eax, ecx
mov ecx, esi
push eax
push esi
call fcn.0040e390
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret
cmp ecx, 0x20
jae 0x40fa13
push dword [esi + 0x10]
mov ecx, esi
push 0x20
call fcn.004084d0
cmp dword [esi + 0x14], 0x10
jb 0x40fa1d
mov eax, dword [esi]
jmp 0x40fa1f
mov eax, esi
push 0x20
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.004f3640
add esp, 0xc
mov dword [esi + 0x10], 0x20
cmp dword [esi + 0x14], 0x10
jb 0x40fa3d
mov esi, dword [esi]
mov byte [esi + 0x20], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret
push 0
push 0x55a356
mov ecx, esi
call fcn.0040e4c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ea604
mov esp, ebp
pop ebp
ret
Function at 0x4101b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526846
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x24c], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004f31f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x410243
xor ecx, ecx
jmp 0x41025f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410250
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407470
push 0x559cb4
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00414100
push str.XuanZhi9_
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00414100
add esp, 0x18
cmp dword [ebp - 0x234], 8
jb 0x4102bb
push dword [ebp - 0x248]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x4102ef
push dword [ebp - 0x230]
call fcn.004db8b0
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x4102f9
mov eax, dword [esi]
jmp 0x4102fb
mov eax, esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
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.004ea604
mov esp, ebp
pop ebp
ret
Function at 0x410440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5268d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x57f7a0]
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
cmp dword [esi + 0x14], 8
jb 0x41047a
mov eax, dword [esi]
jmp 0x41047c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4104ac
cmp dword [esi + 0x14], 8
jb 0x41048f
mov esi, dword [esi]
push esi
push str.path___s__not_exist__delete_sub_dir_failed_
push 0xdd
push str.deleteSubDirectory
call fcn.00439030
add esp, 0x10
jmp 0x410673
cmp dword [esi + 0x14], 8
jb 0x4104b6
mov eax, dword [esi]
jmp 0x4104b8
mov eax, esi
push eax
push str.deleteSubDirectory__s
push 0xe1
push str.deleteSubDirectory
call fcn.00439030
push str..
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.00414200
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c0]
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x410662
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x294], ax
jne 0x410531
xor ecx, ecx
jmp 0x41054f
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410540
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407470
push 1
push 0x559d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
push 0
call fcn.00406720
test eax, eax
je 0x410634
push 2
push 0x559d84
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
call fcn.00406720
test eax, eax
je 0x410634
test byte [ebp - 0x2c0], 0x10
je 0x410634
push 0x559cb4
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.00414200
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00414330
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x44], 8
jb 0x4105e4
push dword [ebp - 0x58]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.delete_directory___s_.
push 0xf3
push str.deleteSubDirectory
mov dword [ebp - 0x48], 0
call fcn.00439030
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00410690
cmp dword [ebp - 0x2c], 8
jb 0x410634
push dword [ebp - 0x40]
call fcn.004db8b0
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x410649
push dword [ebp - 0x28]
call fcn.004db8b0
add esp, 4
lea eax, [ebp - 0x2c0]
push eax
push edi
call ebx
test eax, eax
jne 0x410510
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x5c], 8
jb 0x410673
push dword [ebp - 0x70]
call fcn.004db8b0
add esp, 4
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.004ea604
mov esp, ebp
pop ebp
ret
Function at 0x411090
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x264], 0
push 0x256
push eax
mov word [ebp - 0x25c], ax
mov esi, edx
lea eax, [ebp - 0x25a]
mov edi, ecx
push eax
call fcn.004f31f0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x411120
lea eax, [ebp - 0x268]
push eax
push 4
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x411119
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x260]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x25c], ax
jne 0x411140
xor ecx, ecx
jmp 0x41115f
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411150
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.00407470
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ea604
mov esp, ebp
pop ebp
ret