joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409540
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4196ec
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x810]
mov dword fs:[0], eax
cmp word [edi], 0x5c
mov ax, word [esp + 0x820]
mov word [esp + 0xc], ax
mov word [esp + 0xe], 0x3a
mov word [esp + 0x10], 0
jne 0x4095af
push edi
lea ecx, [esp + 0x10]
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
jmp 0x4095d6
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x41b84c
lea edx, [esp + 0x10]
push 0x200
push edx
call esi
push edi
lea eax, [esp + 0x1c]
push 0x200
push eax
call esi
add esp, 0x18
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4095e0
sub eax, edx
lea ecx, [esp + 0xc]
sar eax, 1
push ecx
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x2e
lea ecx, [esp + 0xc]
mov dword [esp + 0x81c], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_5524]
test eax, eax
jle 0x40963b
cmp eax, esi
jge 0x40963b
mov ecx, 0x20
cmp word [esp + eax*2 + 0xc], cx
je 0x409634
add eax, 1
cmp eax, esi
jl 0x409624
jmp 0x40963b
mov word [esp + eax*2 + 0xc], 0
push 0
lea edx, [esp + 0x410]
push edx
push 0x200
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
je 0x40969b
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40969b
lea ecx, [esp + 0xc]
call fcn.004061b0
test eax, eax
je 0x40969b
lea edx, [esp + 0xc]
push edx
push 0x200
push edi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov al, 1
jmp 0x4096a7
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
xor al, al
mov ecx, dword [esp + 0x810]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00417909
add esp, 0x814
ret 4
Function at 0x4096d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41a09c
mov eax, dword fs:[0]
push eax
sub esp, 0x608
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x604], eax
push ebp
push esi
push edi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x618]
mov dword fs:[0], eax
mov eax, dword [str.none]
mov dx, word [0x41b808]
mov ebp, dword [esp + 0x628]
mov esi, ecx
mov ecx, dword [0x41b804]
mov dword [esp + 0x18], ecx
push str.shell
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov word [esp + 0x20], dx
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x624], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
push ebx
je 0x4097f6
push 0x200
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push 0x41cb90
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x214]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4097b6
test dx, dx
je 0x4097b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4097b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x409790
xor eax, eax
jmp 0x4097bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40991b
movzx edx, word [ebx]
push edx
lea edi, [esp + 0x218]
call fcn.00409540
test al, al
je 0x40991b
mov eax, edi
push eax
mov ecx, ebp
call sub.MFC80U.DLL_Ordinal_1003
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov al, 1
jmp 0x409927
mov edi, dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
push 0x64
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push str.shell
push 0x41cb90
call edi
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409846
test dx, dx
je 0x409842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409846
add eax, 4
add ecx, 4
test dx, dx
jne 0x409820
xor eax, eax
jmp 0x40984b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40991b
push str.shell_
lea eax, [esp + 0xec]
push 0x96
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xf8]
push 0x96
push edx
call esi
push str.command
lea eax, [esp + 0x104]
push 0x96
push eax
call esi
add esp, 0x24
push ebx
push 0x200
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xf8]
push eax
push 0x41cb90
call edi
lea ecx, [esp + 0x14]
lea eax, [esp + 0x214]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4098f6
test dx, dx
je 0x4098f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4098f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4098d0
xor eax, eax
jmp 0x4098fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40991b
movzx ecx, word [ebx]
push ecx
lea edi, [esp + 0x218]
call fcn.00409540
test al, al
je 0x40991b
mov edx, edi
push edx
jmp 0x4097de
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
xor al, al
mov ecx, dword [esp + 0x618]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x604]
xor ecx, esp
call fcn.00417909
add esp, 0x614
ret 4
Function at 0x409d10
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41967c
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x228]
mov esi, ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esp + 0x220], 0
call fcn.00406e10
test al, al
jne 0x409d82
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov al, 1
jmp 0x409e0b
mov ebx, dword [sym.imp.kernel32.dll_SetFileAttributesW]
push 0x80
push esi
call ebx
push 0
lea eax, [esp + 0x18]
push eax
push 0x100
push 0
push edi
push 0
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
je 0x409dec
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
je 0x409ddd
push edi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_768]
push ebp
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_888]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
jmp 0x409dec
push 0x80
push edi
call ebx
push edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
push edi
push esi
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
test eax, eax
lea ecx, [esp + 0x10]
je 0x409d75
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
xor al, al
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00417909
add esp, 0x214
ret 4
Function at 0x40d190
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp byte [0x425816], 0
jne 0x40d1cf
push 0
lea ecx, [edi + 0x2060]
call sub.MFC80U.DLL_Ordinal_2155
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00417909
add esp, 0x210
ret
mov eax, dword [str.none]
mov ecx, dword [0x41b804]
mov dx, word [0x41b808]
push esi
lea esi, [edi + 0x2c60]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov word [esp + 0xc], dx
call fcn.00406e10
test al, al
je 0x40d280
push esi
push 0x100
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [edi + 0x2b34]
push edx
lea eax, [edi + 0x2ad0]
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
lea ecx, [edi + 0x2bfc]
lea eax, [esp + 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d256
test dx, dx
je 0x40d252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d256
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d230
xor eax, eax
jmp 0x40d25b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0
jne 0x40d270
mov ecx, dword [edi + 0x2080]
push eax
push 0xf1
push ecx
jmp 0x40d290
mov edx, dword [edi + 0x2080]
push 1
push 0xf1
push edx
jmp 0x40d290
mov eax, dword [edi + 0x2080]
push 0
push 1
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.00417909
add esp, 0x210
ret
Function at 0x40e4e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc10
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0xc0c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc1c]
push 0x3fe
lea eax, [esp + 0x1a]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x20], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp ebx, 0x80000001
jne 0x40e52a
push ebp
push str.HKEY_CURRENT_USER_s
jmp 0x40e538
cmp ebx, 0x80000002
jne 0x40e544
push ebp
push str.HKEY_LOCAL_MACHINE_s
lea edx, [esp + 0x1c]
call fcn.0040eaf0
add esp, 8
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e563
xor eax, eax
jmp 0x40e626
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ebx, ebx
jmp 0x40e570
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x818]
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x428]
push edx
push ebx
push eax
mov dword [esp + 0x2c], 0x200
mov dword [esp + 0x30], 0x400
call ebp
test eax, eax
jne 0x40e616
add ebx, 1
cmp word [esp + 0x414], ax
je 0x40e570
cmp word [esp + 0x814], ax
je 0x40e570
mov edx, dword [esi + 0x6a0]
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x424]
push ecx
push edx
push 3
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_3873
mov ecx, dword [esi + 0x6a0]
lea eax, [esp + 0x814]
push eax
push 1
push ecx
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5869
mov eax, dword [esi + 0x6a0]
lea edx, [esp + 0x14]
push edx
push 2
push eax
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5869
add dword [esi + 0x6a0], 1
jmp 0x40e570
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0xc14]
pop ebp
pop ebx
xor ecx, esp
call fcn.00417909
add esp, 0xc10
ret 4
Function at 0x40f6d0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push ebp
push edi
push 0x1000
mov dword [esp + 0x10], 0x1000
call sub.MFC80U.DLL_Ordinal_265
mov ebx, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
mov dword [edi], eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x40f740
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f782
mov edx, dword [esp + 0xc]
push edx
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
mov edi, eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
mov dword [edi], eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x40f707
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [edi + 8]
test eax, eax
push 0
push 0
push 0
lea ebx, [esi + 0x18c]
push 0
je 0x40f79b
push eax
mov eax, dword [esi + 0x280]
push eax
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov ecx, dword [esi + 0xdf8]
mov edx, dword [esi + 0x280]
push ecx
push 1
push edx
jmp 0x40f7bf
cmp eax, 0x103
push ebp
je 0x40f8bb
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x280]
push eax
push ecx
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov edx, dword [esi + 0xdf8]
mov eax, dword [esi + 0x280]
push edx
push 1
push eax
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_5869
add dword [esi + 0x280], 1
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
push 0x1000
mov dword [esp + 0x10], 0x1000
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push edi
push ebp
mov dword [edi], ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x40f842
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f782
mov eax, dword [esp + 0xc]
push eax
call sub.MFC80U.DLL_Ordinal_265
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0xc]
mov edi, eax
push edx
push edi
push ebp
mov dword [edi], ecx
call dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
je 0x40f804
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [edi + 8]
test eax, eax
push 0
push 0
push 0
push 0
je 0x40f87e
mov ecx, dword [esi + 0x280]
push eax
push ecx
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov edx, dword [esi + 0xdf8]
mov eax, dword [esi + 0x280]
push edx
push 1
push eax
jmp 0x40f8a2
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x280]
push ecx
push edx
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
mov eax, dword [esi + 0xdf8]
mov ecx, dword [esi + 0x280]
push eax
push 1
push ecx
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_5869
add dword [esi + 0x280], 1
push edi
call sub.MFC80U.DLL_Ordinal_266
jmp 0x40f7d3
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x415290
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push ebp
push esi
xor ebp, ebp
push 0x7e
mov esi, ecx
lea ecx, [esp + 0x12]
push ebp
push ecx
mov dword [esp + 0x14], eax
mov word [esp + 0x18], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea edx, [esp + 0x11e]
push ebp
push edx
mov word [esp + 0x124], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea eax, [esp + 0xaa]
push ebp
push eax
mov word [esp + 0xb0], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea ecx, [esp + 0x1b6]
push ebp
push ecx
mov word [esp + 0x1bc], bp
call sub.MSVCR80.dll_memset
add esp, 0x30
cmp esi, ebp
jne 0x41531d
xor al, al
jmp 0x415477
push ebx
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
lea edx, [esp + 0x18]
push 0x40
push edx
call edi
mov ebx, dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.AUTORUN.INF
lea eax, [esp + 0x24]
push 0x40
push eax
call ebx
add esp, 0x18
push ebp
lea ecx, [esp + 0x98]
push ecx
push 0x40
push ebp
push str.AUTORUN.INF
push esi
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_SetFileAttributesW]
je 0x41539b
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
jne 0x41546f
push 0x80
lea eax, [esp + 0x98]
push eax
call ebp
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov esi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
push 0
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
je 0x415473
push 2
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x118]
push 0x40
push edx
call edi
push str.immunity.._
lea eax, [esp + 0x124]
push 0x40
push eax
call ebx
add esp, 0x18
push 0
lea ecx, [esp + 0x118]
push ecx
call esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x198]
push 0x40
push eax
call edi
push str.ReadMe.txt
lea ecx, [esp + 0x1a4]
push 0x40
push ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x1ac]
push edx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415473
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x5cc]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415447
sub eax, edi
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
add eax, eax
push eax
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
jmp 0x415475
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x20c]
pop esi
pop ebp
xor ecx, esp
call fcn.00417909
add esp, 0x208
ret 4
Function at 0x415490
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x284
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
xor ebp, ebp
push 0x7e
lea eax, [esp + 0xe]
push ebp
push eax
mov ebx, ecx
mov word [esp + 0x14], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea ecx, [esp + 0x19a]
push ebp
push ecx
mov word [esp + 0x1a0], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea edx, [esp + 0x226]
push ebp
push edx
mov word [esp + 0x22c], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea eax, [esp + 0xb2]
push ebp
push eax
mov word [esp + 0xb8], bp
call sub.MSVCR80.dll_memset
push 0x7e
lea ecx, [esp + 0x13e]
push ebp
push ecx
mov word [esp + 0x144], bp
call sub.MSVCR80.dll_memset
add esp, 0x3c
cmp ebx, ebp
jne 0x41553c
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00417909
add esp, 0x284
ret
push esi
mov esi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push edi
push ebx
lea edx, [esp + 0x14]
push 0x40
push edx
call esi
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push str.AUTORUN.INF
lea eax, [esp + 0x20]
push 0x40
push eax
call edi
add esp, 0x18
push ebp
lea ecx, [esp + 0x94]
push ecx
push 0x40
push ebp
push str.AUTORUN.INF
push ebx
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
je 0x41567a
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
push 0x80
je 0x41565e
mov ebp, dword [sym.imp.kernel32.dll_SetFileAttributesW]
lea eax, [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x194]
push 0x40
push edx
call esi
push str.zhengbo.._
lea eax, [esp + 0x1a0]
push 0x40
push eax
call edi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x22c]
push 0x40
push edx
call esi
push str.immunity.._
lea eax, [esp + 0x238]
push 0x40
push eax
call edi
mov ebx, dword [sym.imp.kernel32.dll_RemoveDirectoryW]
add esp, 0x30
lea ecx, [esp + 0x190]
push ecx
call ebx
lea edx, [esp + 0x210]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x114]
push 0x40
push ecx
call esi
push str.ReadMe.txt
lea edx, [esp + 0x120]
push 0x40
push edx
call edi
add esp, 0x18
push 0x80
lea eax, [esp + 0x114]
push eax
call ebp
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
call ebx
test eax, eax
setne al
jmp 0x41567c
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00417909
add esp, 0x284
ret
Function at 0x415e40
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
mov eax, 0x175c
call fcn.00418140
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x1754], eax
mov eax, dword [esp + 0x1764]
push ebx
push ebp
mov ebp, dword [esp + 0x1768]
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
lea eax, [esp + 0x10c]
push 0x64
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [esp + 0x1d0]
push edx
lea esi, [esp + 0x10c]
call fcn.00406c20
add esp, 4
test al, al
je 0x41608c
xor ebx, ebx
push 0x7fe
lea eax, [esp + 0x766]
push ebx
push eax
mov word [esp + 0x76c], bx
call sub.MSVCR80.dll_memset
push 0x3fe
lea ecx, [esp + 0x2aa]
push ebx
push ecx
mov word [esp + 0x2b0], bx
call sub.MSVCR80.dll_memset
push str.log.dmb
lea edx, [esp + 0x54]
push 0x32
push edx
call edi
push str.log.ini
lea eax, [esp + 0xc8]
push 0x32
push eax
call edi
push 0x400
lea esi, [esp + 0x794]
call fcn.004068f0
add esp, 0x34
push ebx
lea ecx, [esp + 0xf64]
push ecx
push 0x400
push ebx
lea edx, [esp + 0x48]
mov eax, esi
mov esi, dword [sym.imp.kernel32.dll_SearchPathW]
push edx
push eax
call esi
test eax, eax
je 0x4160bd
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x764]
push 0x400
push edx
call edi
add esp, 0xc
push 0x200
lea ebx, [esp + 0x29c]
call fcn.00401580
test al, al
je 0x4160bd
lea eax, [esp + 0xa0]
push eax
mov ecx, ebx
push 0x200
push ecx
call edi
add esp, 0xc
push 0
lea edx, [esp + 0xf64]
push edx
push 0x400
push 0
mov eax, ebx
push eax
push 0
call esi
test eax, eax
mov esi, dword [sym.imp.kernel32.dll_DeleteFileW]
je 0x415fbf
push 0x80
mov ecx, ebx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov edx, ebx
push edx
call esi
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x764]
call fcn.00416470
cmp eax, 1
jne 0x4160bd
mov ecx, dword [str.none]
mov ax, word [0x41b808]
mov edx, dword [0x41b804]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x298]
push ecx
mov word [esp + 0x1c], ax
xor eax, eax
push 0x64
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x6a0]
push edx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1e0]
push ecx
add ebp, 0x64
push ebp
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
mov ecx, 0x41f998
lea eax, [esp + 0x698]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416079
test dx, dx
je 0x416075
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416079
add eax, 4
add ecx, 4
test dx, dx
jne 0x416053
xor eax, eax
jmp 0x41607e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4160ac
lea edx, [esp + 0x298]
push edx
call esi
mov eax, 1
mov ecx, dword [esp + 0x1764]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00417909
add esp, 0x175c
ret 8
lea eax, [esp + 0x298]
push eax
call esi
mov eax, 6
jmp 0x416091
mov eax, 5
jmp 0x416091
Function at 0x416720
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x838
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x830], eax
mov eax, dword [str.none]
mov ecx, dword [0x41b804]
mov dx, word [0x41b808]
push ebx
mov dword [esp + 8], eax
xor eax, eax
push 0x3fe
push eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], dx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x200
lea ebx, [esp + 0x34]
call fcn.00401580
test al, al
je 0x4168e5
push esi
mov ecx, ebx
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
mov edx, ebx
push edx
push 0x200
lea eax, [esp + 0x438]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0x96]
push edx
lea eax, [esi + 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
lea ecx, [esi + 0xc8]
lea eax, [esp + 0x430]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416816
test dx, dx
je 0x416812
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416816
add eax, 4
add ecx, 4
test dx, dx
jne 0x4167f0
xor eax, eax
jmp 0x41681b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41683a
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00417909
add esp, 0x838
ret
lea ecx, [esi + 0xfa]
lea eax, [esp + 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41686d
test dx, dx
je 0x416869
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41686d
add eax, 4
add ecx, 4
test dx, dx
jne 0x416847
xor eax, eax
jmp 0x416872
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x416891
mov eax, 6
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00417909
add esp, 0x838
ret
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416896
sub eax, edx
sar eax, 1
cmp eax, 0xa
jge 0x4168c7
push edi
push esi
call fcn.00415e40
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00417909
add esp, 0x838
ret
push esi
mov ecx, edi
call fcn.004160d0
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00417909
add esp, 0x838
ret
mov ecx, dword [esp + 0x834]
pop ebx
xor ecx, esp
mov eax, 5
call fcn.00417909
add esp, 0x838
ret