joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e360
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42066c
mov eax, dword fs:[0]
push eax
sub esp, 0x608
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x604], eax
push ebp
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x618]
mov dword fs:[0], eax
mov eax, dword [str.none]
mov dx, word [0x4218a8]
mov ebp, dword [esp + 0x628]
mov esi, ecx
mov ecx, dword [0x4218a4]
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 0x40e486
push 0x200
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push 0x4235d8
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 0x40e446
test dx, dx
je 0x40e442
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e446
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e420
xor eax, eax
jmp 0x40e44b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e5ab
movzx edx, word [ebx]
push edx
lea edi, [esp + 0x218]
call fcn.0040e1d0
test al, al
je 0x40e5ab
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_577]
mov al, 1
jmp 0x40e5b7
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 0x4235d8
call edi
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e4d6
test dx, dx
je 0x40e4d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e4d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e4b0
xor eax, eax
jmp 0x40e4db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e5ab
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 0x4235d8
call edi
lea ecx, [esp + 0x14]
lea eax, [esp + 0x214]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e586
test dx, dx
je 0x40e582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e586
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e560
xor eax, eax
jmp 0x40e58b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e5ab
movzx ecx, word [ebx]
push ecx
lea edi, [esp + 0x218]
call fcn.0040e1d0
test al, al
je 0x40e5ab
mov edx, edi
push edx
jmp 0x40e46e
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
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.0041d7b2
add esp, 0x614
ret 4
Function at 0x40e9a0
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41f7bc
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
mov eax, dword [0x42d028]
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.00409360
test al, al
jne 0x40ea12
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, 1
jmp 0x40ea9b
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 0x40ea7c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40ea6d
push edi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push ebp
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
jmp 0x40ea7c
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 0x40ea05
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
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.0041d7b2
add esp, 0x214
ret 4
Function at 0x411fa0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x210
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp byte [0x42d9b1], 0
jne 0x411fdf
push 0
lea ecx, [edi + 0x2060]
call sub.MFC80U.DLL_Ordinal_2155
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x210
ret
mov eax, dword [str.none]
mov ecx, dword [0x4218a4]
mov dx, word [0x4218a8]
push esi
lea esi, [edi + 0x2c60]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov word [esp + 0xc], dx
call fcn.00409360
test al, al
je 0x412090
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 0x412066
test dx, dx
je 0x412062
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412066
add eax, 4
add ecx, 4
test dx, dx
jne 0x412040
xor eax, eax
jmp 0x41206b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0
jne 0x412080
mov ecx, dword [edi + 0x2080]
push eax
push 0xf1
push ecx
jmp 0x4120a0
mov edx, dword [edi + 0x2080]
push 1
push 0xf1
push edx
jmp 0x4120a0
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.0041d7b2
add esp, 0x210
ret
Function at 0x414140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc10
mov eax, dword [0x42d028]
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 0x41418a
push ebp
push str.HKEY_CURRENT_USER_s
jmp 0x414198
cmp ebx, 0x80000002
jne 0x4141a4
push ebp
push str.HKEY_LOCAL_MACHINE_s
lea edx, [esp + 0x1c]
call fcn.004147b0
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 0x4141c3
xor eax, eax
jmp 0x414286
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ebx, ebx
jmp 0x4141d0
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 0x414276
add ebx, 1
cmp word [esp + 0x414], ax
je 0x4141d0
cmp word [esp + 0x814], ax
je 0x4141d0
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 0x4141d0
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.0041d7b2
add esp, 0xc10
ret 4
Function at 0x415370
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 0x4153e0
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415422
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 0x4153a7
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 0x41543b
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 0x41545f
cmp eax, 0x103
push ebp
je 0x41555b
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_764
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 0x4154e2
push edi
call sub.MFC80U.DLL_Ordinal_266
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x415422
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 0x4154a4
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 0x41551e
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 0x415542
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 0x415473
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x417050
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420d1d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1f8b4
call fcn.0041e070
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x1f8b0], eax
push ebx
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x1f8c8]
mov dword fs:[0], eax
push 0x4218f0
push 0x64
push 0x42d8e8
mov edi, ecx
mov byte [0x42d9b0], 0
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, dword [edi + 0x44]
add esp, 0xc
push eax
mov dword [0x42d8dc], eax
mov dword [0x42d8e4], eax
lea eax, [edi + 0xf8]
push eax
call fcn.00405b60
push 0x425ec0
push 0
push 0
mov dword [0x42d8dc], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42d9b8], eax
call ebx
cmp eax, 0xb7
jne 0x417122
push str.USBGuardShowEvent
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
call ebx
test esi, esi
je 0x417116
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417256
call sub.MFC80U.DLL_Ordinal_1121
mov ecx, dword [sym.imp.BCGCBPRO1500u80.dll_struct_BCGPGLOBAL_DATA_globalData]
call dword [sym.imp.BCGCBPRO1500u80.dll_public:_int___thiscall_BCGPGLOBAL_DATA::SetDPIAware_void_]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0xfa0
push 0x42da04
call esi
push 0xfa0
push 0x42d9ec
call esi
push 0xfa0
push 0x42d9d4
call esi
push 0xfa0
push 0x42d9bc
call esi
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_3824
push 0
call sub.MFC80U.DLL_Ordinal_1049
add esp, 4
push str.Zbshareware_Lab
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5971
push 0
call fcn.0041d48a
mov edx, dword [edi + 0x728]
mov eax, dword [edx + 0x13c]
lea esi, [edi + 0x728]
push 0
push 0x148
mov ecx, esi
mov byte [0x42d9b1], 1
call eax
push 0
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_6086
mov ecx, dword [edi + 0x748]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea esi, [edi + 0x1888]
mov ebx, 0x1e
lea ecx, [ecx]
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
push 0
push 0xbc
mov ecx, esi
call eax
push 0
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_6086
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
add esi, 0x16f8
sub ebx, 1
jne 0x4171f0
lea edx, [esp + 0x1c]
push edx
call fcn.00417430
lea eax, [esp + 0x1c]
mov dword [esp + 0x1f8d0], ebx
mov ecx, eax
mov dword [edi + 0x20], eax
call dword [sym.imp.BCGCBPRO1500u80.dll_public_virtual:_int___thiscall_CBCGPDialog::DoModal_void_]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1f8d4], 0xffffffff
call fcn.00417280
xor eax, eax
mov ecx, dword [esp + 0x1f8c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8b0]
xor ecx, esp
call fcn.0041d7b2
mov esp, ebp
pop ebp
ret
Function at 0x419020
Capabilities:
Get disk information

Disassembly:
sub esp, 0x448
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x444], eax
push 0x206
lea eax, [esp + 0x242]
push 0
push eax
mov word [esp + 0x248], 0
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x46]
push 0
push ecx
mov word [esp + 0x4c], 0
call sub.MSVCR80.dll_memset
lea edx, [esi - 0x41]
add esp, 0x18
xor eax, eax
cmp dx, 0x19
ja 0x4190ec
push 0x422c6c
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], 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
lea eax, [esp + 0x10]
push 0x14
push eax
mov word [esp + 0x18], si
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x104
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x448
ret
Function at 0x41b460
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x42d028]
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 0x41b4ed
xor al, al
jmp 0x41b647
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 0x41b56b
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x41b63f
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 0x41b643
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 0x41b643
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 0x41b617
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 0x41b645
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x20c]
pop esi
pop ebp
xor ecx, esp
call fcn.0041d7b2
add esp, 0x208
ret 4
Function at 0x41b660
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x284
mov eax, dword [0x42d028]
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 0x41b70c
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0041d7b2
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 0x41b84a
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
push 0x80
je 0x41b82e
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 0x41b84c
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.0041d7b2
add esp, 0x284
ret
Function at 0x41bf80
Capabilities:
Delete file
Read .ini file
Set file attributes

Disassembly:
mov eax, 0x174c
call fcn.0041e070
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x1748], eax
mov eax, dword [esp + 0x1754]
push ebp
mov ebp, dword [esp + 0x1754]
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
lea eax, [esp + 0x100]
push 0x64
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xfc]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
lea edx, [esp + 0x1c4]
push edx
lea esi, [esp + 0x100]
call fcn.00409170
add esp, 4
test al, al
je 0x41c204
push ebx
xor ebx, ebx
push 0x7fe
lea eax, [esp + 0x75e]
push ebx
push eax
mov word [esp + 0x764], bx
call sub.MSVCR80.dll_memset
push 0x3fe
lea ecx, [esp + 0x2a2]
push ebx
push ecx
mov word [esp + 0x2a8], 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 + 0xc4]
push 0x32
push eax
call edi
push 0x400
lea esi, [esp + 0x78c]
call fcn.00408e40
add esp, 0x34
push ebx
lea ecx, [esp + 0xf5c]
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 0x41c1fd
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x75c]
push 0x400
push edx
call edi
add esp, 0xc
push 0x200
lea ebx, [esp + 0x294]
call fcn.004014b0
test al, al
je 0x41c1fd
lea eax, [esp + 0x9c]
push eax
mov ecx, ebx
push 0x200
push ecx
call edi
add esp, 0xc
push 0
lea edx, [esp + 0xf5c]
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 0x41c0ff
push 0x80
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, ebx
push edx
call esi
lea eax, [esp + 0x290]
push eax
lea ecx, [esp + 0x75c]
call fcn.0041c5b0
cmp eax, 1
jne 0x41c1fd
mov ecx, dword [str.none]
mov ax, word [0x4218a8]
mov edx, dword [0x4218a4]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x290]
push ecx
mov word [esp + 0x1c], ax
xor eax, eax
push 0x64
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x698]
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 + 0x1d8]
push ecx
add ebp, 0x64
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x426978
lea eax, [esp + 0x690]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c1b9
test dx, dx
je 0x41c1b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c1b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c193
xor eax, eax
jmp 0x41c1be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41c1ec
lea edx, [esp + 0x290]
push edx
call esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1754]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041d7b2
add esp, 0x174c
ret 8
lea eax, [esp + 0x290]
push eax
call esi
mov eax, 6
jmp 0x41c1d1
mov eax, 5
jmp 0x41c1d1
mov eax, 1
jmp 0x41c1d2