joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a40
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov edi, 0x40a0d8
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x409cd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x25
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x401ab7
call section..text
test eax, eax
jne 0x401ad9
call fcn.004016a0
test eax, eax
jne 0x401ad9
call fcn.00401300
jmp 0x401ad9
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401ad9
mov al, byte [0x409cd8]
test al, al
jne 0x401ae0
call fcn.00401590
inc esi
mov dword [esp + 0x10], eax
cmp esi, 0xa
jl 0x401ab9
mov al, byte [0x409cd8]
test al, al
jle 0x401c2d
mov esi, 0x409cd8
push 4
push 0x4090c0
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401b05
mov esi, 0x409cdd
test esi, esi
je 0x401c2d
mov al, byte [esi]
test al, al
je 0x401c16
cmp al, 0x2d
je case.0x401b3d.48
push 0
push 0xa
push ebx
push ebp
call fcn.00405ed0
mov ebp, eax
mov ebx, edx
movsx eax, byte [esi]
add eax, 0xffffffd0
cmp eax, 0x4a
ja case.0x401b3d.48
jmp dword [eax*4 + 0x401c40]
add ebp, 1
jmp 0x401c0c
add ebp, 2
jmp 0x401c0c
add ebp, 3
jmp 0x401c0c
add ebp, 4
jmp 0x401c0c
add ebp, 5
jmp 0x401c0c
add ebp, 6
jmp 0x401c0c
add ebp, 7
jmp 0x401c0c
add ebp, 8
jmp 0x401c0c
add ebp, 9
jmp 0x401c0c
add ebp, 0xa
jmp 0x401c0c
add ebp, 0xb
jmp 0x401c0c
add ebp, 0xc
jmp 0x401c0c
add ebp, 0xd
jmp 0x401c0c
add ebp, 0xe
jmp 0x401c0c
add ebp, 0xf
jmp 0x401c0c
add ebp, 0x10
jmp 0x401c0c
add ebp, 0x11
jmp 0x401c0c
add ebp, 0x12
jmp 0x401c0c
add ebp, 0x13
jmp 0x401c0c
add ebp, 0x14
jmp 0x401c0c
add ebp, 0x15
jmp 0x401c0c
add ebp, 0x16
jmp 0x401c0c
add ebp, 0x17
jmp 0x401c0c
add ebp, 0x18
jmp 0x401c0c
add ebp, 0x19
jmp 0x401c0c
add ebp, 0x1a
jmp 0x401c0c
add ebp, 0x1b
jmp 0x401c0c
add ebp, 0x1c
jmp 0x401c0c
add ebp, 0x1d
jmp 0x401c0c
add ebp, 0x1e
jmp 0x401c0c
add ebp, 0x1f
jmp 0x401c0c
add ebp, 0x20
jmp 0x401c0c
add ebp, 0x21
jmp 0x401c0c
add ebp, 0x22
jmp 0x401c0c
add ebp, 0x23
adc ebx, 0
inc esi
jne 0x401b0d
test ebp, ebp
jne 0x401c1e
test ebx, ebx
je 0x401c2d
pop edi
mov eax, ebp
pop esi
mov edx, ebx
pop ebp
pop ebx
add esp, 0x98
ret
call fcn.004019e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x401fa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4061ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [esp + 0x220]
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CDialog::CDialog
lea edi, [esi + 0x60]
mov dword [esp + 0x220], 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x4076f8
lea ecx, [esi + 0xb4]
mov byte [esp + 0x220], 1
call sub.MFC42.DLL_CImageList::CImageList
or eax, 0xffffffff
mov byte [esp + 0x220], 2
mov dword [esi], 0x407620
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], 0
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea edx, [esi + 0xc0]
xor ecx, ecx
mov dword [esi + 0xb0], eax
lea edi, [esi + 0xd0]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
push ecx
mov dword [edx + 0xc], ecx
mov dword [edi], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
push edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esp + 8]
lea ecx, [esi + 0xbc]
push 0
push ecx
mov edx, dword [eax]
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [esi + 0x20]
push 0
push ecx
push eax
call dword [edx + 0xc]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
Function at 0x402ab0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
push 0x4001
push 0x160
push eax
push 0
push 0x4091dc
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
push eax
call sub.MFC42.DLL_CImageList::Attach
add esp, 0x160
ret 4

Function at 0x402af0
Capabilities:
Get file system object information

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x160
lea eax, [esp]
push 0x4009
push 0x160
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret 4

Function at 0x402b20
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x264
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4001
lea ecx, [esp + 0x10c]
push 0x160
push ecx
lea edx, [esp + 0x10]
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 0x10c]
pop edi
add esp, 0x264
ret

Function at 0x402b80
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
mov ecx, dword [esp + 0x164]
push 0x808
lea eax, [esp + 4]
push 0x160
push eax
push 0
push ecx
mov dword [esp + 0x1c], 0xfc000
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 8]
add esp, 0x160
ret 4

Function at 0x402bc0
Capabilities:
Get file system object information

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x160
lea eax, [esp]
push esi
push edi
push 0x408
push 0x160
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x16c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x160
ret 8
Function at 0x4032d0
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0xbc]
lea ebx, [edi + 0xbc]
mov eax, edx
mov esi, edx
mov cx, word [eax]
test cx, cx
je 0x4032ff
and ecx, 0xffff
mov esi, eax
add eax, ecx
mov cx, word [eax]
test cx, cx
jne 0x4032ed
cmp esi, edx
je 0x40330a
mov word [esi], 0
jmp 0x403328
mov eax, dword [edi + 0xd0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edx, dword [edi + 0x20]
push ebx
push 0
push 0
push 0
push edx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov eax, dword [edi + 0x80]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
xor esi, esi
test ebx, ebx
jle 0x403365
push ebp
lea ebp, [edi + 0x60]
push esi
mov ecx, ebp
call sub.MFC42.DLL_CListCtrl::GetItemData
mov ecx, dword [edi + 0xd0]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
inc esi
cmp esi, ebx
jl 0x40334a
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4034c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x64]
push esi
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403591
xor ecx, ecx
push edi
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 0xc], ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x6c]
mov dword [esp + 0x14], ecx
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push edx
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
mov dword [esp + 0x80], 0
call edi
lea ecx, [esp + 0x6c]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x50
push edx
push esi
call edi
mov eax, dword [esp + 8]
pop edi
cmp eax, 0x93f8dcac
jne 0x40358a
cmp dword [esp + 8], 0xbcfec3dc
jne 0x40358a
cmp word [esp + 0xc], 0
jne 0x40358a
mov eax, dword [0x40a1a8]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x40358a
mov ecx, dword [0x40a1ac]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x40358a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x60
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x60
ret 4
Function at 0x403ac0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x68]
push esi
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403bdc
xor ecx, ecx
push edi
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 0xc], ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x70]
mov dword [esp + 0x14], ecx
mov ecx, 0x14
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
push edx
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
mov dword [esp + 0x84], 0
call edi
lea ecx, [esp + 0x70]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x50
push edx
push esi
call edi
mov eax, dword [esp + 8]
pop edi
cmp eax, 0x93f8dcac
jne 0x403bd5
cmp dword [esp + 8], 0xbcfec3dc
jne 0x403bd5
cmp word [esp + 0xc], 0
jne 0x403bd5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
pop esi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x34]
lea ecx, [eax + 0x14]
mov dword [eax], 1
add eax, 0x24
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
add esp, 0x60
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x60
ret 8

Function at 0x403d00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
and eax, 0xffff
push 0x100
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403d66
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
lea edx, [esp + 0x14]
push 0
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x403d89
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret 0xc
Function at 0x404330
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4043bf
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.AppInit_DLLs
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4043b4
lea edx, [esp + 0x14]
push str.sp3_bak.dll
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4043b4
mov esi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x404ed0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
test ebx, ebx
push edi
je 0x40503c
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40503c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404f02
mov edi, 0x80
push 0
push edi
push 4
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40503c
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push eax
push ecx
push 0xc
push edx
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x3765
jne 0x404f5b
cmp word [esp + 0x1c], 0xd65d
je 0x404f92
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404f92
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push 2
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40503c
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebx
jne 0x404fa9
mov eax, 0x104
add eax, eax
push eax
mov dword [ebp + 0x20], eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x20]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x1c], edi
push ebp
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x34], 0
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00404af0
add esp, 8
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
inc eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push 0
push eax
push edi
push ecx
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [esp + 0x28]
cmp ebx, edi
je 0x405014
cmp dword [esp + 0x2c], 5
jl 0x404fdd
push ebp
call fcn.00404b20
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x405046
mov edx, dword [ebp + 0x1c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
call fcn.00404af0
mov eax, dword [ebp + 0x1c]
push edi
push eax
call fcn.00404e80
push ebp
call fcn.00404b20
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x405070
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
test esi, esi
je 0x4050cb
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x4050cb
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4050cb
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4050cb
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4050a5
mov eax, 0x80
push 0
push eax
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x4050d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov edi, dword [ebp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], 0x3765
mov word [esp + 0x20], 0xd65d
push eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x24]
push 0xc
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], 0xc
je 0x405123
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov edi, dword [ebp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
xor eax, eax
push edi
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esp + 0x1c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00404af0
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0x1c]
push ebx
push edi
push eax
call fcn.00404e20
push ebp
call fcn.00404b20
add esp, 0x18
xor ebp, ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push 0
push ecx
push ebx
push edi
push edx
inc ebp
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [esp + 0x34]
cmp esi, ebx
je 0x4051a1
cmp ebp, 5
jl 0x405177
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop ebx
je 0x4051d2
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x18]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push edi
mov esi, 1
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x4b0770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6e000]
push edi
jmp 0x4b078a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b0791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b0780
mov eax, 1
add ebx, ebx
jne 0x4b07a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b07b4
jne 0x4b07d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b07d3
dec eax
add ebx, ebx
jne 0x4b07c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b0798
add ebx, ebx
jne 0x4b07cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b0825
xor ecx, ecx
sub eax, 3
jb 0x4b07eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b085a
sar eax, 1
mov ebp, eax
jmp 0x4b07f6
add ebx, ebx
jne 0x4b07f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b07c4
inc ecx
add ebx, ebx
jne 0x4b0804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b07c4
add ebx, ebx
jne 0x4b0811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b0806
jne 0x4b0822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b0806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b0844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b0836
jmp 0x4b0786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b0844
add edi, ecx
jmp 0x4b0786
pop esi
mov edi, esi
mov ecx, 0x376b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b0862
cmp byte [edi], 0x13
jne 0x4b0862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b0867
lea edi, [esi + 0xac000]
mov eax, dword [edi]
or eax, eax
je 0x4b08df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb109c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb11f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b0894
mov ecx, edi
jns 0x4b08c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb11f4]
or eax, eax
je 0x4b08d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b08b1
call dword [esi + 0xb1204]
mov ebp, dword [esi + 0xb11f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b0913
sub esp, 0xffffff80
jmp 0x416761
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41d08c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
push 0
lea eax, [ebp - 0x204]
push eax
call fcn.00402300
add esp, 0xc
push 0x86
push section..data
lea ecx, [ebp - 0x204]
push ecx
call fcn.00401d80
add esp, 0xc
mov edx, 1
imul eax, edx, 0x1fe
mov byte [ebp + eax - 0x204], 0x55
mov ecx, 1
imul edx, ecx, 0x1ff
mov byte [ebp + edx - 0x204], 0xaa
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0xffffffff
jne 0x4010a3
push str.createfile_failed...
call fcn.00401200
add esp, 4
or eax, 0xffffffff
jmp 0x40110d
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push 0
push 0x90018
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 0x20c]
push edx
push 0x200
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
mov eax, dword [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040123a
mov esp, ebp
pop ebp
ret

Function at 0x401a3f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a7e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a7e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a7e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a7e
cmp dword [ecx + 0x74], 0xe
jbe 0x401a7e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407ef4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417600
push 0x4175f8
push str.FlsAlloc
push 0x1e
call fcn.00407db5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407f28
push dword [ebp + 8]
mov ecx, esi
call dword [0x416124]
call esi
jmp 0x407f2e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407f72
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417610
push 0x417608
push str.FlsGetValue
push 0x20
call fcn.00407db5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407fa9
push dword [ebp + 8]
mov ecx, esi
call dword [0x416124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40c928
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c9c5
push ebx
push esi
call fcn.0040c8f1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c83a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c972
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c9c4
push edi
push eax
call fcn.0040a298
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c992
call fcn.00407c48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c9c3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c83a
add esp, 0x20
test eax, eax
jne 0x40c9b1
push edi
call fcn.00407c48
jmp 0x40c9b9
push ebx
call fcn.00407c48
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret