joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x46c
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0x228]
movzx ecx, word [edx]
mov edi, eax
test cx, cx
je 0x4049e1
lea edi, [ebp - 0x228]
add edx, 2
nop dword [eax + eax]
mov word [edi], cx
add edi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4049d0
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx + 0x14]
mov dword [edi], 0x2a005c
mov word [edi + 4], 0
lea ecx, [ebp - 0x478]
push ecx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x404b77
add esi, 1
mov dword [ebp - 0x1c], esi
xor esi, esi
mov dword [ebp - 0x14], 0
jmp 0x404a41
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FindNextFileW]
mov esi, ebx
test eax, eax
je 0x404b5f
mov eax, dword fs:[0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
push 0x2b0
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
mov dword [eax + 0x2a4], 0
mov dword [eax + 0x2a8], 0
mov dword [eax + 0x2ac], 0
mov eax, dword [ebp - 0x14]
test eax, eax
cmove eax, ebx
mov dword [ebp - 0x14], eax
test esi, esi
je 0x404a91
mov dword [esi], ebx
lea eax, [ebx + 0x18]
push 0x250
lea ecx, [ebp - 0x478]
push ecx
push eax
call sub.ucrtbase.dll_memcpy
add esp, 0xc
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x2a0], 0
mov dword [ebx + 0x29c], 0
mov eax, 0x44
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, word [ebx + eax]
mov word [edi + eax - 0x42], cx
add eax, 2
test cx, cx
jne 0x404af0
sub esp, 0x1c
movaps xmm0, xmmword [0x4096f0]
movups xmmword [esp + 4], xmm0
lea eax, [ebp - 0x228]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x404a27
mov esi, eax
lea eax, [ebx + 0x268]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileInformationByHandle]
test eax, eax
je 0x404a20
mov dword [ebx + 0x29c], 1
jmp 0x404a20
test ebx, ebx
je 0x404b69
mov dword [ebx], 0
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
jmp 0x404b79
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 1
add esp, 0x46c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4053c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x9a8
lea eax, [esp + 0x18]
mov ecx, esp
lea edx, [esp + 8]
push eax
push ecx
push edx
push 0
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x405458
lea eax, [esp + 0xa4]
mov esi, dword [sym.imp.shlwapi.dll_StrFormatByteSizeW]
push 0x40
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
call esi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push 0x40
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call esi
mov dword [esp + 0x14], eax
lea esi, [esp + 0x124]
push 0x40
push esi
push 0x4c3
push dword [section..data]
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1a4]
push eax
push 0x400
push ecx
push 0
push 0
push esi
push 0x2400
call dword [sym.imp.kernel32.dll_FormatMessageW]
jmp 0x40546e
mov dword [esp + 0x1a8], 0x3f
mov dword [esp + 0x1a4], 0x3f003f
lea eax, [esp + 0x1a4]
push eax
push 0
push 0x40b
push dword [0x414028]
call dword [sym.imp.user32.dll_SendMessageW]
lea esp, [ebp - 4]
pop esi
pop ebp
ret

Function at 0x405530
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 0x10]
test edx, edx
je 0x405676
mov ebx, edx
mov edi, ecx
push 0
push dword [ecx]
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
and eax, 0xe
mov dword [ebp - 0x10], eax
mov eax, edx
and eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40557a
mov ecx, dword [ebp + 8]
nop dword [eax]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40566c
cmp dword [edi + 0x84], 0
mov eax, dword [ebx + 0x18]
je 0x4055b0
test al, 0x10
je 0x405570
cmp word [ebx + 0x44], 0x2e
jne 0x4055ba
movzx eax, word [ebx + 0x46]
test ax, ax
je 0x405570
cmp ax, 0x2e
jne 0x4055ba
cmp word [ebx + 0x48], 0
jne 0x4055ba
jmp 0x405570
test al, 0x10
je 0x4055ba
cmp dword [ebp - 0x14], 0
je 0x405570
test ecx, ecx
je 0x4055d0
lea ecx, [ebx + 0x44]
mov edx, dword [ebp + 8]
call sym._pattern_imatch
mov ecx, dword [ebp + 8]
test eax, eax
je 0x405570
mov eax, dword [ebp + 0xc]
test al, 0x10
jne 0x4055dd
test byte [ebx + 0x18], 6
jne 0x405570
cmp dword [ebp - 0x10], 0xe
jne 0x405630
inc esi
mov eax, 0xffffffff
cmove esi, eax
push ebx
push esi
push 0x181
push dword [edi]
call dword [sym.imp.user32.dll_SendMessageW]
cmp dword [edi + 0x84], 0
je 0x40556a
cmp dword [ebx + 0xc], 0
je 0x40556a
mov edx, dword [ebx + 4]
mov ecx, edi
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call sym._insert_entries
mov ecx, esi
add esp, 0xc
mov esi, eax
jmp 0x405570
lea ecx, [ebx + 0x44]
call sym._get_file_type
cmp eax, 2
je 0x40564f
cmp eax, 1
jne 0x40565c
mov eax, dword [ebp + 0xc]
test al, 2
je 0x40556a
jmp 0x4055e3
mov eax, dword [ebp + 0xc]
test al, 4
je 0x40556a
jmp 0x4055e3
mov eax, dword [ebp + 0xc]
test al, 8
je 0x40556a
jmp 0x4055e3
push 5
push dword [edi]
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x200
push 0x2e
push ecx
call dword [sym.imp.ucrtbase.dll_wcsrchr]
add esp, 8
test eax, eax
mov esi, 0x40940c
cmovne esi, eax
mov edi, 2
mov ebx, dword [sym.imp.ucrtbase.dll_tolower]
nop dword [eax]
movzx eax, word [esi + edi]
push eax
call ebx
add esp, 4
mov word [ebp + edi - 0x20e], ax
add edi, 2
test ax, ax
jne 0x405ae0
lea edi, [ebp - 0x20c]
push 0x40940e
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x405b8d
push 0x409416
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x405b8d
push 0x40941e
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x405b8d
push 0x409426
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x405b8d
push 0x40942e
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x405b8d
push 0x409436
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x405b8d
push 0x40943e
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x405b8d
push 0
push 0
push esi
push 0x80000000
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
add eax, eax
jmp 0x405b92
mov eax, 1
add esp, 0x200
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406b80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x814
mov eax, dword [0x4094a8]
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [0x409498]
movups xmmword [ebp - 0x20], xmm0
push 0x414048
push 0x400
call dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
mov eax, dword [section..data]
mov ecx, dword [0x41400c]
sub esp, 0x34
movaps xmm0, xmmword [0x409700]
movups xmmword [esp + 0x1c], xmm0
lea edx, [ebp - 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp], ecx
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0xd
mov dword [esp + 0x14], 0x65
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x102
mov dword [esp + 4], 0x50001002
call sub.comctl32.dll_CreateToolbarEx
mov dword [0x414030], eax
lea esi, [ebp - 0x820]
push 0x400
push esi
push 0x4b5
push dword [section..data]
call dword [sym.imp.user32.dll_LoadStringW]
mov eax, 0xfffffffe
nop word cs:[eax + eax]
nop dword [eax]
cmp word [ebp + eax - 0x81e], 0
lea eax, [eax + 2]
jne 0x406c40
mov word [eax + esi + 2], 0
mov edi, dword [sym.imp.user32.dll_SendMessageW]
push esi
push 0
push 0x44d
push dword [0x414030]
call edi
mov dword [ebp - 0x1c], 0x9001
lea eax, [ebp - 0x20]
push eax
push 1
push 0x443
push dword [0x414030]
call edi
add dword [ebp - 0x10], 1
push 0x414048
push 0
push 0x44d
push dword [0x414030]
call edi
mov dword [ebp - 0x1c], 0x9002
cmp word [0x414048], 0
je 0x406d66
mov ebx, 2
mov edi, 0x414048
mov esi, dword [sym.imp.kernel32.dll_GetDriveTypeW]
nop word cs:[eax + eax]
nop dword [eax]
push edi
call esi
add eax, 0xfffffffe
cmp eax, 4
ja case.0x406cdb.3
jmp dword [eax*4 + 0x409314]
mov dword [ebp - 0x20], 1
jmp 0x406d30
mov dword [ebp - 0x20], 2
jmp 0x406d30
mov dword [ebp - 0x20], 4
jmp 0x406d30
mov dword [ebp - 0x20], 3
jmp 0x406d30
mov dword [ebp - 0x20], 5
nop word [eax + eax]
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x443
push dword [0x414030]
call dword [sym.imp.user32.dll_SendMessageW]
add dword [ebp - 0x1c], 1
add dword [ebp - 0x10], 1
nop
cmp word [edi], 0
lea edi, [edi + 2]
jne 0x406d50
add ebx, 1
cmp word [edi], 0
jne 0x406cd0
add esp, 0x814
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60c
mov ebx, edx
mov edi, ecx
mov ecx, dword [ecx + 0x90]
lea esi, [ebp - 0x218]
mov edx, esi
call sym._get_path
push esi
push sym._DestinationDlgProc_16
push dword [edi]
push 0x68
push dword [section..data]
call dword [sym.imp.user32.dll_DialogBoxParamW]
xor esi, esi
cmp eax, 1
jne 0x40765c
mov edx, ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0x90]
mov dword [ebp - 0x10], edx
call sym._get_path
movzx eax, word [ebp - 0x218]
cmp ax, 0x2f
je 0x4075d6
cmp word [ebp - 0x216], 0x3a
je 0x4075d6
mov eax, dword [edi + 0x90]
mov ecx, dword [eax + 8]
mov edx, ebx
call sym._get_path
mov eax, 0xfffffffe
nop word cs:[eax + eax]
nop dword [eax]
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x407590
movzx ecx, word [eax + ebx - 2]
sar eax, 1
cmp cx, 0x2f
je 0x4075b7
cmp cx, 0x5c
je 0x4075b7
mov word [ebx + eax*2], 0x2f
add eax, 1
lea eax, [ebx + eax*2]
xor ecx, ecx
nop dword [eax]
movzx edx, word [ebp + ecx - 0x218]
mov word [eax + ecx], dx
add ecx, 2
test dx, dx
jne 0x4075c0
jmp 0x407604
mov word [ebx], ax
test ax, ax
je 0x407604
mov eax, 2
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, word [ebp + eax - 0x218]
mov word [ebx + eax], cx
add eax, 2
test cx, cx
jne 0x4075f0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, 1
cmp eax, 0xffffffff
je 0x40765c
and eax, 0x10
je 0x40765c
lea edi, [ebp - 0x618]
lea eax, [ebp - 0x418]
push edi
push eax
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ucrtbase.dll__wsplitpath]
add esp, 0x14
push edi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x218]
push eax
push str._s__s_s
push ebx
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x14
mov eax, esi
add esp, 0x60c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407670
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 0x111
je 0x40778c
xor esi, esi
cmp eax, 0x110
jne 0x407891
mov edi, dword [ebp + 0x14]
mov dword [0x414bb0], edi
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
push 0x3e8
push ebx
call esi
push edi
push eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [0x414bb0]
mov ecx, ebx
mov ebx, dword [eax + 0x208]
and ebx, 1
push 0x3e9
push ecx
call esi
mov edi, esi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
push 0
push ebx
push 0xf1
push eax
call esi
mov eax, dword [0x414bb0]
mov ebx, dword [eax + 0x208]
shr ebx, 1
and ebx, 1
push 0x3ea
mov eax, dword [ebp + 8]
push eax
call edi
push 0
push ebx
push 0xf1
push eax
call esi
mov eax, dword [0x414bb0]
mov ebx, dword [eax + 0x208]
shr ebx, 2
and ebx, 1
push 0x3eb
mov esi, dword [ebp + 8]
push esi
call edi
push 0
push ebx
push 0xf1
push eax
mov edi, dword [sym.imp.user32.dll_SendMessageW]
call edi
mov eax, dword [0x414bb0]
mov ebx, dword [eax + 0x208]
shr ebx, 3
and ebx, 1
push 0x3ec
push esi
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push ebx
push 0xf1
push eax
call edi
mov eax, dword [0x414bb0]
mov ebx, dword [eax + 0x208]
shr ebx, 4
and ebx, 1
push 0x3ed
push esi
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push ebx
push 0xf1
push eax
call edi
mov esi, 1
jmp 0x407891
mov eax, dword [ebp + 0x10]
mov esi, 1
cmp eax, 2
je 0x407888
cmp eax, 1
jne 0x407891
mov edi, dword [0x414bb0]
push 0x3e8
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push 0x104
push edi
push eax
call dword [sym.imp.user32.dll_GetWindowTextW]
push 0x3e9
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push 0
push 0xf2
push eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edi, eax
and edi, 1
push 0x3ea
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push 0
push 0xf2
push eax
call dword [sym.imp.user32.dll_SendMessageW]
and eax, 1
lea eax, [edi + eax*2]
mov dword [ebp - 0x10], eax
push 0x3eb
push ebx
mov eax, dword [sym.imp.user32.dll_GetDlgItem]
call eax
push 0
push 0
push 0xf2
push eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
call eax
and eax, 1
mov ecx, dword [ebp - 0x10]
lea edi, [ecx + eax*4]
push 0x3ec
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push 0
push 0xf2
push eax
call dword [sym.imp.user32.dll_SendMessageW]
and eax, 1
lea edi, [edi + eax*8]
push 0x3ed
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push 0
push 0xf2
push eax
call dword [sym.imp.user32.dll_SendMessageW]
shl eax, 4
and eax, 0x10
or eax, edi
mov ecx, dword [0x414bb0]
mov dword [ecx + 0x208], eax
push 1
jmp 0x40788a
push 2
push ebx
call dword [sym.imp.user32.dll_EndDialog]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x4081a0
Capabilities:
Hide graphical window

Disassembly:
test edx, edx
je 0x40824d
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, edx
mov esi, ecx
push edx
push 0
push 0x18f
push dword [ecx]
call dword [sym.imp.user32.dll_SendMessageW]
mov ebx, eax
push 0
push dword [esi]
call dword [sym.imp.user32.dll_ShowWindow]
add ebx, 1
push 0
mov dword [ebp - 0x14], ebx
push ebx
push 0x199
mov dword [ebp - 0x10], esi
push dword [esi]
call dword [sym.imp.user32.dll_SendMessageW]
lea ecx, [eax - 1]
cmp ecx, 0xfffffffd
ja 0x408232
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
nop dword [eax + eax]
mov eax, dword [eax + 0x14]
cmp eax, dword [edi + 0x14]
jle 0x408232
push 0
push esi
push 0x182
push dword [ebx]
call dword [sym.imp.user32.dll_SendMessageW]
push 0
push esi
push 0x199
push dword [ebx]
call dword [sym.imp.user32.dll_SendMessageW]
mov ecx, eax
add ecx, 0xffffffff
cmp ecx, 0xfffffffe
jb 0x408200
mov dword [edi + 0xc], 0
push 5
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.user32.dll_ShowWindow]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408250
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1000
call sub.ntdll.dll__chkstk
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 0x111
je 0x4082a5
xor esi, esi
cmp eax, 0x110
jne 0x40833c
mov esi, dword [ebp + 0x14]
push esi
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.user32.dll_SetWindowLongW]
push 0xc9
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov esi, 1
jmp 0x40833c
mov eax, dword [ebp + 0x10]
mov esi, 1
cmp eax, 0xfe
je 0x4082e6
cmp eax, 2
je 0x408333
cmp eax, 1
jne 0x40833c
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.user32.dll_GetWindowLongW]
mov edi, eax
push 0xc9
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push 0x104
push edi
push eax
call dword [sym.imp.user32.dll_GetWindowTextW]
push 1
jmp 0x408335
lea eax, [ebp - 0x80c]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
push 0x400
push eax
push 0x4b0
push dword [section..data]
call edi
mov eax, edi
lea edi, [ebp - 0x100c]
push 0x400
push edi
push 0x4b7
push dword [section..data]
call eax
push 0
lea eax, [ebp - 0x80c]
push eax
push edi
push ebx
call dword [sym.imp.user32.dll_MessageBoxW]
jmp 0x40833c
push 2
push ebx
call dword [sym.imp.user32.dll_EndDialog]
mov eax, esi
add esp, 0x1000
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x4088c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push 1
call sub.ucrtbase.dll__configure_wide_argv
add esp, 4
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov edi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov ebx, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov esi, eax
call sym._get_nt_header
xor ecx, ecx
cmp word [eax + 0x5c], 2
sete cl
add ecx, 1
push ecx
call sub.ucrtbase.dll__set_app_type
add esp, 4
push esi
push ebx
push edi
call sym._wmain
add esp, 0xc
push eax
call sub.ucrtbase.dll_exit
nop word cs:[eax + eax]

Function at 0x408940
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
xor ebx, ebx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
xor eax, eax
jmp 0x40896b
xor edx, edx
test eax, eax
je 0x4089b7
add esi, 2
mov ebx, edx
movzx ecx, word [esi]
cmp cx, 9
je 0x408960
test cx, cx
je 0x4089b7
cmp cx, 0x20
jne 0x408983
test eax, eax
je 0x4089b7
xor edx, edx
cmp cx, 0x22
je 0x408998
cmp cx, 0x5c
jne 0x408966
add ebx, 1
mov edx, ebx
jmp 0x408966
xor ecx, ecx
test eax, eax
sete cl
test bl, 1
cmove eax, ecx
jmp 0x408966
movzx ecx, word [esi + 2]
add esi, 2
cmp cx, 0x20
je 0x4089b0
cmp cx, 9
je 0x4089b0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
test byte [ebp - 0x24], 1
jne 0x4089e0
mov word [ebp - 0x20], 1
mov edi, 1
jmp 0x4089e4
movzx edi, word [ebp - 0x20]
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push edi
push esi
push 0
push eax
call sym._wWinMain_16
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x33680c98
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x747b5ade
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4060d3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42228c], 0
push esi
jne 0x40610a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4060e4
mov dword [ecx*4 + 0x422288], eax
inc ecx
cmp ecx, 0x100
jl 0x4060df
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40613b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422288]
xor eax, esi
inc ecx
dec edx
jne 0x40611d
pop edi
not eax
pop esi
ret 0xc

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
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 eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4