joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [edi], 1
sub eax, 0x401
je 0x4095de
sub eax, 1
je 0x4095c1
sub eax, 1
je 0x409528
mov dword [edi], 0
push edi
push dword [ebp + 0x10]
mov ecx, esi
push ebx
push dword [ebp + 8]
call fcn.0045b910
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret 0x10
push dword [esi + 0x790]
call fcn.00466fe0
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x770]
mov dword [esi + 0x790], 0
test ecx, ecx
je 0x409558
mov eax, dword [ecx]
push 1
call dword [eax + 0xf8]
test ebx, ebx
je 0x409594
push 0x64
mov ecx, esi
call fcn.00409d90
mov ecx, dword [esi + 0x774]
push 2
mov eax, dword [ecx]
call dword [eax + 0x204]
mov ecx, dword [esi + 4]
call fcn.0040c200
push ecx
call fcn.00405010
mov ecx, eax
call fcn.00405f00
test eax, eax
je 0x40961a
jmp 0x4095a7
mov ecx, dword [esi + 4]
sub esp, 0xc
mov edx, 0x515b94
call fcn.0040a460
add esp, 0xc
push str.CMainWnd::Exit____r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
push 0
push 0x10
mov ecx, esi
call fcn.00457ab0
jmp 0x40961a
push 0
push 0x320
push 1
call fcn.00466fe0
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x790], eax
jmp 0x40961a
cmp dword [esi + 0x788], 0
je 0x40960e
push ebx
lea eax, [ebp - 0x84]
push str.ck_W
push eax
call fcn.00409f30
mov ecx, dword [esi + 0x788]
lea edx, [ebp - 0x84]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x78c]
push ebx
call fcn.0045c670
cmp dword [edi], 0
je 0x409506
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412aed
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4098a0
Capabilities:
Copy file
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.CMainWnd::onClose____r_n
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x774]
call fcn.0045a850
cmp eax, 2
je 0x4099ad
push 1
push 1
mov ecx, esi
call fcn.00457d30
mov ecx, dword [esi + 4]
sub esp, 0xc
mov edx, 0x515c58
call fcn.0040a460
add esp, 0xc
cmp eax, 1
je 0x409909
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c40b0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c40b0
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004c8ae4
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00412aed
mov esp, ebp
pop ebp
ret

Function at 0x4099c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e60db
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.CMainWnd::OnInstall____r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.0040bb90
test al, al
je 0x409a2f
push 0x5153f8
lea eax, [ebp - 0x210]
push str._s__
push eax
call fcn.00409e20
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x210]
call fcn.0040a460
add esp, 0xc
jmp 0x409ad2
push 0x84
lea eax, [ebp - 0x294]
push 0
push eax
call fcn.004c40b0
mov ecx, dword [edi + 0x784]
lea edx, [ebp - 0x294]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
lea ecx, [ebp - 0x294]
mov dword [ebp - 4], 0
call fcn.004e3050
mov ecx, eax
call fcn.0040bea0
test al, al
jne 0x409a89
mov ecx, dword [edi + 4]
sub esp, 0xc
mov edx, 0x515cb8
call fcn.0040a460
add esp, 0xc
jmp 0x409ac7
mov ecx, dword [edi + 0x77c]
test ecx, ecx
je 0x409ac0
call fcn.00459770
test al, al
je 0x409ac0
mov ecx, dword [edi + 0x77c]
push 1
mov esi, dword [ecx]
call fcn.00459770
mov ecx, dword [edi + 0x77c]
test al, al
sete al
movzx eax, al
push eax
call dword [esi + 0x1bc]
mov ecx, edi
call fcn.00409c40
lea ecx, [ebp - 0x294]
call fcn.00458180
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.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x409af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x515cd4
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409b23
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409b2c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x409b4b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
add eax, 2
push eax
mov dword [ebp - 4], eax
call fcn.004130ee
mov edi, eax
add esp, 4
test edi, edi
jne 0x409b7f
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
push 0
push edi
call fcn.004c40b0
push dword [ebp - 8]
push ebx
push edi
call fcn.004c3b30
mov ecx, edi
call fcn.00408a20
push edi
mov esi, eax
call fcn.004130e9
add esp, 0x1c
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409c40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e612b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.CMainWnd::StartInstall____r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x774]
push 1
mov eax, dword [ecx]
call dword [eax + 0x204]
mov ecx, dword [esi + 0x770]
test ecx, ecx
je 0x409c9d
mov eax, dword [ecx]
push 0
call dword [eax + 0xf8]
mov ecx, dword [esi + 0x784]
lea edx, [ebp - 0xb4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004e3050
mov edx, eax
mov dword [ebp - 0x1c], 7
xor eax, eax
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp word [edx], ax
jne 0x409cdc
xor ecx, ecx
jmp 0x409cf0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ce1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00401d30
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 2
call fcn.00458180
lea eax, [ebp - 0x30]
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00409e40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x409d2e
push 1
call fcn.0040cc66
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
push dword [ebp - 0x18]
call fcn.0040d221
add esp, 8
test eax, eax
je 0x409d47
push eax
call fcn.0040cc39
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 8
jb 0x409d6a
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00401e90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x40b010
Capabilities:
Create process on windows
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], 0
push 0
push eax
mov edi, edx
mov dword [ebp - 0x4c], 0
mov esi, ecx
call fcn.004c40b0
add esp, 0xc
mov dword [ebp - 0x1c], 1
xorps xmm0, xmm0
mov eax, 1
movups xmmword [edi], xmm0
mov word [ebp - 0x18], ax
push str.CreateProcessWithTokenW
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x40b0aa
cmp dword [esi + 0x14], 8
jb 0x40b080
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x54]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x4c]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x50]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp dword [esi + 0x14], 8
jb 0x40b0fb
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push esi
push 0
push 0
push dword [ebp - 0x50]
call dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40b123
push eax
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40b12d
push eax
call esi
test ebx, ebx
je 0x40b134
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00412aed
mov esp, ebp
pop ebp
ret

Function at 0x40b150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3c
lea eax, [ebp - 0x40]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004c40b0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [edi + 0x14], 8
jb 0x40b185
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], str.runas
jb 0x40b197
mov esi, dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], esi
push eax
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
jne 0x40b1d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x40b1d5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x40b250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40b27e
mov eax, dword [esi]
jmp 0x40b280
mov eax, esi
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edx
push eax
push edx
push ecx
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40b2b4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004130ee
mov ecx, dword [ebp - 0xc]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.004c40b0
add esp, 0x10
test edi, edi
je 0x40b333
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x40b310
push edi
mov ecx, esi
call fcn.004075a0
push edi
call fcn.004130e9
add esp, 4
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412aed
mov esp, ebp
pop ebp
ret 8

Function at 0x40b470
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2ac], 0
push eax
mov esi, ecx
push 0
mov dword [ebp - 0x2a8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40b557
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b557
push edi
push ebx
push 0
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a8]
push eax
push 0x515260
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40b557
mov ecx, dword [ebp - 0x2a8]
movsx eax, word [ecx + 0xc]
push eax
movsx eax, word [ecx + 0xe]
push eax
movsx eax, word [ecx + 8]
push eax
movsx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x94]
push 0x516070
push eax
call fcn.0040c3d0
add esp, 0x18
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00401be0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x515080
mov word [esi], ax
call fcn.00401d30
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x40b630
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e63f2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x526060]
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 dword [ebp - 0x224], esi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], esi
push eax
push 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40b6b0
mov eax, dword [esi]
jmp 0x40b6b2
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x228], 1
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40b729
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b729
push edi
push ebx
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
push dword [ebp - 0x224]
mov ecx, edi
call fcn.0040b590
add esp, 8
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.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x40b750
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6428
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x526060]
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, ecx
mov dword [ebp - 0x6c], esi
xor eax, eax
mov dword [ebp - 0x70], 0
push eax
push 0x515080
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
call fcn.00401d30
mov dword [ebp - 4], 0
push 0x288
mov dword [ebp - 0x6c], 0x288
call fcn.004c9a46
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b7f2
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00404e50
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jb 0x40b92b
inc ecx
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x68]
call fcn.00401e90
jmp 0x40b92b
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40b834
push edi
call fcn.004c9a41
add esp, 4
push dword [ebp - 0x6c]
call fcn.004c9a46
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b834
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00404e50
lea ecx, [ebp - 0x68]
call fcn.00401ba0
jmp 0x40b92b
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40b8dc
mov ecx, edi
test edi, edi
je 0x40b8dc
cmp dword [ecx + 0x1a0], 6
jne 0x40b863
cmp dword [ecx + 0x190], 6
je 0x40b86b
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40b851
jmp 0x40b8dc
movzx eax, byte [ecx + 0x199]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ebp - 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00409e00
add esp, 0x20
cmp word [ebp - 0x50], 0
jne 0x40b8b7
xor ecx, ecx
jmp 0x40b8cf
lea ecx, [ebp - 0x50]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b8c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.004076e0
push edi
call fcn.004c9a41
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 4
mov word [esi], ax
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jae 0x40b91d
mov eax, dword [ebp - 0x58]
add eax, 1
je 0x40b922
add eax, eax
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.004c2330
mov ecx, dword [ebp - 0x54]
add esp, 0xc
jmp 0x40b922
mov eax, dword [ebp - 0x68]
mov dword [esi], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
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.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x40bbc5
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40bc1b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push str.ZhuanZhuan.exe
push eax
call fcn.004c6172
add esp, 8
test eax, eax
je 0x40bc18
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x40bbf0
jmp 0x40bc1a
mov bl, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x40bc40
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e64b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x526060]
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 edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x40bd9c
test edi, edi
je 0x40bd9c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x4ec880
push 1
push 0
push 0x4ec900
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40bd9c
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x40bd9c
mov eax, dword [ebp - 0x2c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x40bd9c
mov eax, dword [ebp - 0x2c]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
js 0x40bd9c
push esi
lea ecx, [ebp - 0x28]
call fcn.00401be0
push 2
push 0xffffffffffffffff
push 0x5161ec
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040c290
cmp eax, 0xffffffff
je 0x40bd42
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004074c0
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x40bd26
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00401ba0
test esi, esi
js 0x40bd8e
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], 0
push 0x4ec8b0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x40bd8e
mov eax, dword [ebp - 0x30]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x40bd8e
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00401ba0
mov al, bl
jmp 0x40bd9e
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00401ba0
mov al, bl
jmp 0x40bd9e
xor al, al
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.00412aed
mov esp, ebp
pop ebp
ret
Function at 0x40bea0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x526060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x40bfab
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bec3
sub edx, ecx
sar edx, 1
je 0x40bfab
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x40bef4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bf0a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40bee3
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c40b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40bf76
test dx, dx
je 0x40bf72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40bf76
add eax, 4
add ecx, 4
test dx, dx
jne 0x40bf50
xor eax, eax
jmp 0x40bf7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bfab
lea ecx, [ebp - 0x20c]
call fcn.0040bea0
test al, al
je 0x40bfab
push esi
call fcn.004c9a17
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412aed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00412aed
mov esp, ebp
pop ebp
ret