joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f6664
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5f680f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5f67f0
mov dl, 1
mov eax, dword [0x441d70]
call fcn.0046b7b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409ca0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5f67df
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00551f2c
test al, al
je 0x5f67d2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5f6820
lea eax, [ebp - 0x394]
call fcn.0042516c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5f67d2
xor eax, eax
push ebp
push 0x5f67cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5f6890
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5f67b4
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a7dc
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5f67b4
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a7dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f67d2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5f66d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0046b6d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f6816
lea eax, [ebp - 0x3a0]
call fcn.00409ca0
ret

Function at 0x5f741c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x61c7b0]
cmp byte [eax + 0xc5], 0
jne 0x5f748e
cmp dword [0x61c7d4], 0
jne 0x5f744e
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x614aac]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x61c7d4], eax
cmp dword [0x61c7d0], 0
jne 0x5f7469
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x61c7d0], eax
cmp dword [0x61c7d8], 0
jne 0x5f748e
push esp
push 0
push 0
mov eax, dword [0x614aa8]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x61c7d8], eax
pop edx
ret
Function at 0x5f78b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5f78c7
add esp, 0xfffffff0
call fcn.004084f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047b9e8
mov eax, dword [0x614b1c]
cmp byte [eax], 0
jne 0x5f78f4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x614e6c]
cmp word [eax + 2], 0
jne 0x5f790e
mov eax, dword [0x614e6c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005f9d48
mov eax, dword [0x614fa8]
cmp word [eax + 2], 0
jne 0x5f7928
mov eax, dword [0x614fa8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005f9f4c
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x5178f0]
call fcn.0051de18
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5fa4c4
mov dl, 1
mov eax, dword [0x43e3b4]
call fcn.00407e3c
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x43e3b4]
call fcn.00407e3c
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x51c68c]
call fcn.005280d4
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5f7b18
mov eax, dword [0x614d18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.005285f0
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5fa7ac
mov dl, 1
mov eax, dword [0x43e3b4]
call fcn.00407e3c
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x614d18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00424f6c
test eax, eax
je 0x5f7a42
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00424dc4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00424f50
test eax, eax
je 0x5f7a5a
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a7dc
push ebx
push 0x5f9728
call fcn.005eca60
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x614b1c]
cmp byte [eax], 0
jne 0x5f7aab
mov eax, ebx
call fcn.005f7ce0
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005fa9e4
mov eax, ebx
call fcn.005fb66c
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5f7b0f
call fcn.0040854c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f800c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5f80ae
cmp dword [ebx + 0xac], 0
jne 0x5f80a8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5f7f4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5f80a8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5f806e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5f80a8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.00466820
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5f807d
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5f8354
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x61c7b0]
cmp dword [eax + 0x188], 0
je 0x5f84bd
test bl, bl
jne 0x5f8410
cmp dword [esi + 0xb4], 0
jne 0x5f8405
mov eax, esi
call fcn.005fb4bc
push eax
push 0x5f8254
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5f83d6
mov eax, dword [0x61c7b0]
cmp byte [eax + 0xeb], 0
je 0x5f83d6
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5f83b7
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5f83d6
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5f83bf
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5f8405
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00466820
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5f83e5
inc dword [esi + 0xb4]
jmp 0x5f84bd
cmp dword [esi + 0xb4], 0
jle 0x5f84bd
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5f84bd
cmp dword [esi + 0x58], 0
je 0x5f8472
mov eax, dword [0x61c7b0]
cmp byte [eax + 0xeb], 0
je 0x5f8472
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5f8453
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5f8472
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5f845b
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5f84a1
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.00466820
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5f8481
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5e90d0]
call fcn.0040c0ac
pop edi
pop esi
pop ebx
ret
Function at 0x5f9244
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5f92a1
cmp byte [ebx + 0xeb], 0
jne 0x5f92a1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409e28
mov eax, dword [esi]
test eax, eax
je 0x5f928e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5f92ae
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a080
jmp 0x5f92ae
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a080
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5fabf8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5fac69
mov eax, esi
call fcn.0054ba90
test al, al
je 0x5fac69
mov eax, dword [ebx + 0x98]
call fcn.0054b6bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5fac69
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x140]
test al, al
je 0x5fac5a
push 0
mov eax, dword [ebx + 0x98]
call fcn.0054b6bc
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00542294
jmp 0x5fac69
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005faa04
pop esi
pop ebx
ret
Function at 0x6025b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x60263e
mov eax, dword [ebx + 8]
call fcn.0054b6bc
mov ecx, eax
mov dl, 1
mov eax, dword [0x55990c]
call fcn.005457d4
mov dword [ebx + 0x8c], eax
mov esi, dword [ebx + 0x8c]
xor edx, edx
mov eax, esi
call fcn.00561284
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x601e88
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0054b6bc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0054b6bc
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x6026c0
mov eax, dword [ebx + 8]
call fcn.0054b6bc
mov ecx, eax
mov dl, 1
mov eax, dword [0x55990c]
call fcn.005457d4
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov dl, 1
mov eax, esi
call fcn.00561284
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x601ed4
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0054b6bc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0054b6bc
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x60273e
mov eax, dword [ebx + 8]
call fcn.0054b6bc
mov ecx, eax
mov dl, 1
mov eax, dword [0x55a3b4]
call fcn.005457d4
mov dword [ebx + 0x94], eax
mov esi, dword [ebx + 0x94]
mov byte [esi + 0x2a0], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0054b6bc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0054b6bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401183
Capabilities:
Delete file

Disassembly:
mov eax, 0x41dc35
call fcn.00415a34
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41e330
mov dword [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esi + 0x1814]
push 1
test ecx, ecx
pop edi
je 0x4011bc
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1808]
test ecx, ecx
je 0x4011cc
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x180c]
test ecx, ecx
je 0x4011dc
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1810]
test ecx, ecx
je 0x4011ec
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1818]
test ecx, ecx
je 0x4011fc
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1820]
test ecx, ecx
je 0x40120c
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1824]
test ecx, ecx
je 0x40121c
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x182c]
test ecx, ecx
je 0x40122c
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x1828]
test ecx, ecx
je 0x40123c
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov ecx, esi
call fcn.00403240
lea ebx, [esi + 0x10]
push str.end_log
push ebx
call fcn.0040d0ca
cmp dword [esi + 0xebc], 0
pop ecx
pop ecx
je 0x401269
lea eax, [esi + 0xef4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x1934]
lea edi, [esi + 0x1934]
test eax, eax
je 0x401283
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi], 0
lea ecx, [esi + 0xec0]
mov byte [ebp - 4], 2
call fcn.00406646
lea eax, [esi + 0x450]
mov dword [eax], 0x41e334
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4012ac
push eax
call fcn.00415a5e
pop ecx
lea eax, [esi + 0x43c]
mov dword [eax], 0x41e338
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4012c6
push eax
call fcn.00415a5e
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0040d0a2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403028
Capabilities:
Delete directory
Delete file
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push esi
lea eax, [ebp - 0x508]
push dword [ebp + 8]
mov esi, ecx
push eax
call fcn.00415570
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push eax
mov ecx, esi
call fcn.004019e2
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0xc]
cmp byte [esi + 0x1200], 0
lea ecx, [esi + 0x1200]
lea eax, [esi + 0x120]
push eax
jne 0x40307f
lea ecx, [esi + 0xff8]
call fcn.0040da2e
lea eax, [ebp - 0x508]
add esi, 0x10
push eax
push str.Delete_shortcut__s.
push esi
call fcn.0040d0ca
lea eax, [ebp - 0x508]
push 0x5c
push eax
call fcn.00415d70
and byte [eax], 0
push 1
push 0x424ae0
lea eax, [ebp - 0x104]
push 0x104
push eax
push str.Programs
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push connect
call fcn.0040e7ad
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00405830
add esp, 0x38
test eax, eax
je 0x403111
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x403111
lea eax, [ebp - 0x508]
push eax
push str.Delete_shortcut_group__s.
push esi
call fcn.0040d0ca
add esp, 0xc
pop esi
leave
ret 8

Function at 0x403116
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push esi
lea eax, [ebp - 0x428]
push dword [ebp + 8]
mov esi, ecx
push eax
call fcn.00415570
pop ecx
lea eax, [ebp - 0x428]
pop ecx
push eax
mov ecx, esi
call fcn.004019e2
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x428]
push 3
push eax
call fcn.00405979
add esp, 0x14
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00404351
lea eax, [ebp - 0x428]
push eax
lea eax, [esi + 0x10]
push str.Delete_file__s.
push eax
call fcn.0040d0ca
lea ecx, [esi + 0x1200]
add esp, 0xc
cmp byte [ecx], 0
push dword [ebp + 0xc]
jne 0x4031ad
lea eax, [esi + 0x120]
lea ecx, [esi + 0xff8]
push eax
jmp 0x4031b4
add esi, 0x120
push esi
call fcn.0040da2e
lea eax, [ebp - 0x428]
push 0x5c
push eax
call fcn.00415d70
and byte [eax], 0
lea eax, [ebp - 0x428]
push str..
push eax
call fcn.00415580
add esp, 0x10
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
test esi, esi
jne 0x403205
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
leave
ret 8
Function at 0x40358d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
mov dl, byte [0x424ae0]
push esi
mov esi, ecx
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x50f]
mov byte [ebp - 0x510], dl
rep stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x10b]
pop ecx
mov byte [ebp - 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 7]
mov byte [ebp - 8], dl
push 1
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop edi
lea eax, [ebp - 0x510]
push dword [ebp + 8]
push eax
call fcn.00415570
pop ecx
lea eax, [ebp - 0x510]
pop ecx
push eax
mov ecx, esi
call fcn.004019e2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x510]
push 3
push eax
push 0x2c
call fcn.00405f05
add esp, 0x18
cmp dword [0x424cfc], 0
jne 0x403676
lea eax, [esi + 0x120]
push str.OverRun
push eax
call fcn.00405820
pop ecx
test eax, eax
pop ecx
jne 0x403660
lea ecx, [ebp + 8]
call fcn.0040d172
mov eax, dword [esi + 0x1814]
push 4
push 0xa
lea ecx, [ebp + 8]
push dword [eax + 4]
call fcn.0040d235
cmp eax, 6
je 0x403660
xor edi, edi
lea eax, [ebp - 8]
push str.bgonly
push eax
call fcn.00415f40
pop ecx
test eax, eax
pop ecx
jne 0x40368c
jmp 0x40368a
lea eax, [ebp - 8]
push str.fgonly
push eax
call fcn.00415f40
pop ecx
test eax, eax
pop ecx
jne 0x403690
xor edi, edi
test edi, edi
je 0x4036d6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x510]
push eax
lea eax, [esi + 0x10]
push str.Winexec__s_argument:__s_mode:__s.
push eax
call fcn.0040d0ca
add esp, 0x14
lea eax, [ebp - 0x10c]
push 5
push 0
push eax
lea eax, [ebp - 0x510]
push eax
push str.open
push dword [esi + 0x1308]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
leave
ret 8
Function at 0x403891
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x688
push ebx
push esi
xor ebx, ebx
push 0x401
lea eax, [ebp - 0x688]
push ebx
mov esi, ecx
push eax
call fcn.00415510
push dword [ebp + 8]
lea eax, [ebp - 0x688]
push eax
call fcn.00415570
add esp, 0x14
lea eax, [ebp - 0x688]
mov ecx, esi
push eax
call fcn.004019e2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x688]
push 3
push eax
call fcn.00405979
add esp, 0x14
mov ecx, esi
call fcn.00404351
lea eax, [ebp - 0x688]
push eax
lea eax, [esi + 0x674]
push eax
call fcn.00405a66
pop ecx
lea eax, [ebp - 0x688]
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + 0xec0]
call fcn.00406666
test eax, eax
je 0x403a47
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00415570
lea eax, [ebp - 0x284]
push 0x5c
push eax
call fcn.00415d70
mov byte [eax], bl
lea eax, [ebp - 0x284]
push ebx
push eax
call fcn.00405bd8
lea eax, [ebp - 0x180]
push eax
call fcn.00405aaf
add esp, 0x1c
test eax, eax
je 0x4039d1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.0040c12c
pop ecx
test al, al
pop ecx
je 0x4039d1
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.0040603f
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov edi, edx
call fcn.0040603f
pop ecx
cmp edi, edx
pop ecx
pop edi
jb 0x4039d1
ja 0x4039a9
cmp ebx, eax
jb 0x4039d1
lea eax, [ebp - 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14]
add esi, 0x10
push eax
lea eax, [ebp - 0x38]
push eax
push str.share_file_find_new_version_dst__s_ver__s.
push esi
call fcn.0040d0ca
add esp, 0x10
jmp 0x403a47
lea eax, [ebp - 0x180]
mov ecx, esi
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.0040493a
test eax, eax
jne 0x403a47
mov eax, 0x421420
push eax
push eax
call fcn.00415b30
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.004057f8
add esp, 0xc
push eax
call fcn.00415f40
pop ecx
test eax, eax
pop ecx
je 0x403a1c
mov dword [esi + 0xee8], 1
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.00405b31
lea eax, [ebp - 0x180]
add esi, 0x10
push eax
push str.Share_file_need_reboot__s.
push esi
call fcn.0040d0ca
add esp, 0x14
pop esi
pop ebx
leave
ret 8
Function at 0x4043e7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xebc], 0
jne 0x404473
lea edi, [esi + 0xef4]
lea eax, [ebp - 0x404]
push edi
push 0x404
push eax
push 0x424ae0
push 0
push str.Group
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x404]
lea ebx, [esi + 0x10]
push eax
push str.Uninstall_func_find__s.
push ebx
call fcn.0040d0ca
lea eax, [ebp - 0x404]
push eax
call fcn.00415b30
add esp, 0x10
test eax, eax
jne 0x404473
lea eax, [ebp - 0x404]
push eax
call fcn.00415b30
push eax
push str.Uninstall_func__d.
push ebx
call fcn.0040d0ca
add esp, 0x10
mov ecx, esi
push edi
push 0x421370
call fcn.00403754
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4046b1
Capabilities:
Persist via run registry key

Disassembly:
push 1
push 0x424ae0
add ecx, 0x778
push 0x104
push ecx
push str.Programs
push str.SoftWareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push connect
call fcn.0040e7ad
add esp, 0x1c
ret

Function at 0x40493a
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x41dcc2
call fcn.00415a34
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push edi
push 0
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x404a2a
cmp dword [0x421040], eax
je 0x404a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x1ec], 0
mov edi, eax
jne 0x404a67
mov eax, 0x421420
push eax
push eax
call fcn.00415b30
push eax
push dword [ebp + 0xc]
call fcn.004057f8
add esp, 0xc
push eax
call fcn.00415f40
pop ecx
test eax, eax
pop ecx
je 0x404a67
cmp edi, 0x20
jne 0x404a67
mov eax, dword [ebp + 0xc]
push 0x80
mov dword [esi + 0x1804], eax
call fcn.00415d12
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4049e3
push 0x421040
push 2
mov ecx, eax
call fcn.0040d3f5
jmp 0x4049e5
xor eax, eax
or dword [ebp - 4], 0xffffffff
lea edi, [esi + 0x181c]
push 0x96
push 0x40c5bd
mov dword [edi], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
cmp eax, 1
jne 0x404a4c
mov ecx, dword [edi]
test ecx, ecx
je 0x404a13
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push 0
mov dword [esi + 0x1804], 0x424ae0
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x404958
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0xc]
add esi, 0x10
push str.copyfile__s_succeed.
push esi
call fcn.0040d0ca
add esp, 0xc
push 1
pop eax
jmp 0x404a69
mov ecx, dword [esi + 0x181c]
test ecx, ecx
je 0x404a5d
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x1804], 0x424ae0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8