joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015ff
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp + 0x2a4], eax
mov eax, dword [ebp + 0x2b0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push edi
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp + 0x94]
push ecx
xor ebx, ebx
mov edi, 0x104
push edi
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], 1
mov byte [ebp - 0x74], bl
mov byte [ebp + 0x19c], bl
mov byte [ebp + 0x94], bl
call esi
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x401664
mov byte [eax], bl
lea eax, [ebp + 0x94]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x4016ec
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x94]
push 0x4044a0
push eax
call fcn.0040112c
add esp, 0x10
inc dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp - 0x78]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp + 0x19c]
push eax
push edi
push eax
call esi
lea eax, [ebp + 0x19c]
push eax
call fcn.0040120a
pop ecx
test eax, eax
jne 0x4016e5
push ebx
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
cmp byte [eax], bl
jne 0x401675
mov ecx, dword [ebp + 0x2a4]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004033d1
add ebp, 0x2a8
leave
ret

Function at 0x401793
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov dword [esp + 0x24], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x401830
push ebx
push ebp
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
cmp ebx, esi
je 0x4017ee
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call ebp
push dword [esp + 0x14]
call ebp
pop ebp
pop ebx
cmp edi, esi
je 0x401830
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x401829
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x401829
cmp dword [esi], 0x4550
jne 0x401829
mov dword [esp + 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x401fb1
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
jmp 0x402003
dec esi
cmp byte [esi], 0x2f
jne 0x402003
push 0x404538
push esi
call fcn.00401f38
pop ecx
pop ecx
test eax, eax
jne 0x402009
push str.autoextract
push esi
call fcn.00401f38
pop ecx
pop ecx
test eax, eax
je 0x402003
cmp dword [0x406454], 0
jne 0x402003
mov dword [0x406454], 1
cmp esi, edi
ja 0x401fc8
jmp 0x40200c
mov byte [esi], 0
pop edi
pop esi
ret
Function at 0x402901
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
call fcn.00401ee8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.FDICreate
push edi
call esi
push str.FDICopy
push edi
mov dword [ebp - 0x28], eax
call esi
push str.FDIDestroy
push edi
mov dword [ebp - 0x24], eax
call esi
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
cmp dword [ebp - 0x28], esi
je 0x402a38
cmp dword [ebp - 0x24], esi
je 0x402a38
cmp eax, esi
je 0x402a38
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 0x401d97
push 0x401d8a
push 0x401d69
push 0x401d48
push 0x401d12
push 0x401d07
push 0x401cfa
call dword [ebp - 0x28]
add esp, 0x24
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x4029a0
push str.Could_not_create_FDI_context.
call fcn.00401038
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x401dc0
push esi
mov edi, 0x409c00
push edi
push 0x409d60
push eax
call dword [ebp - 0x24]
add esp, 0x1c
push esi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x404
push 0x3ef
push dword [0x406024]
call ebx
movzx eax, word [ebp - 0xc]
shl eax, 0x10
push eax
push esi
push 0x401
push 0x3ef
push dword [0x406024]
call ebx
lea eax, [ebp - 0x10]
push eax
push esi
push 0x401dc0
push esi
push edi
push 0x409d60
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [ebp - 0x24]
push dword [ebp - 4]
call dword [ebp - 0x20]
add esp, 0x20
call fcn.00402487
cmp dword [0x40665c], esi
je 0x402a33
push 5
push esi
push esi
push edi
push str.explore
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00401000
push str.Could_not_load_cabinet.dll.
jmp 0x40299b
Function at 0x403261
Capabilities:
Create shortcut via ishelllink
Terminate process

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x409d08], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x406028], eax
call fcn.0040200f
cmp dword [0x409364], edi
je 0x4032a7
push 0x409c00
call fcn.004015ff
pop ecx
test eax, eax
jne 0x4032a1
push str.Couldnt_create_output_directory.
call fcn.00401038
push edi
call fcn.00402901
push esi
mov esi, str.Segoe_UI
push esi
call fcn.00401284
pop ecx
test eax, eax
je 0x4032bb
push esi
jmp 0x4032d0
mov esi, str.Tahoma
push esi
call fcn.00401284
pop ecx
test eax, eax
jne 0x4032b8
push 0x404824
push 0x409d20
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x402df4
push edi
push 0x66
push dword [0x409d08]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4032f8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a8]
push ebx
mov ebx, dword [ebp + 0x1a4]
push edi
mov edi, dword [ebp + 0x1a0]
push 0
mov dword [ebp - 0x80], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x78]
push eax
push 0x40486c
push 1
push 0
push 0x40488c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4033b4
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x40487c
push eax
call dword [ecx]
test eax, eax
jl 0x4033ab
push 0x104
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x4033a2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x74]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.004033d1
add ebp, 0x198
leave
ret

Function at 0x4033d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406004]
jne 0x4033db
repz ret
jmp fcn.0040340b
Function at 0x402f50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f7d
mov ecx, dword [0x4243b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41710c], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040307b
cmp eax, edi
jl 0x403074
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
cmp dword [ebp - 4], esi
jne 0x403071
push dword [ebp + 8]
add dword [0x41710c], esi
call fcn.0040307b
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403074
cmp dword [ebp + 0x10], edi
jne 0x403040
cmp dword [ebp + 8], edi
jle 0x40306c
mov esi, 0x4130c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402ff0
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
cmp edi, dword [ebp - 4]
jne 0x403071
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40303c
cmp dword [ebp + 0x14], edi
jne 0x40303c
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41710c], eax
cmp dword [ebp + 8], 0
jg 0x402fe3
jmp 0x40306c
push 0xfffffffffffffffe
jmp 0x403073
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40304b
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
mov eax, dword [ebp - 4]
add dword [0x41710c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403074
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40307b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x41710c]
mov edi, eax
sub esi, dword [0x40b03c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403251
push dword [0x41f11c]
call fcn.0040328e
push ebp
push ebp
push dword [0x40b03c]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f118], esi
mov dword [0x417108], ebp
mov eax, dword [0x417110]
mov ebx, 0x4000
sub eax, dword [0x41f11c]
cmp eax, ebx
jg 0x4030ee
mov ebx, eax
mov esi, 0x4130c8
push ebx
push esi
call fcn.0040325c
test eax, eax
je 0x40321c
add dword [0x41f11c], ebx
mov dword [0x40b058], esi
mov dword [0x40b05c], ebx
cmp dword [0x424368], ebp
je 0x40317f
cmp dword [0x424400], ebp
jne 0x40317f
cmp dword [esp + 0x10], ebp
je 0x40314c
mov eax, dword [0x41f118]
push ebp
sub eax, dword [0x41710c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b03c]
mov dword [0x417108], eax
call fcn.00405e94
jmp 0x40317f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40317f
mov eax, dword [0x424364]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bab
push ebp
push 0x6f
push dword [0x424360]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b040
mov dword [0x40b060], 0x40b0c8
mov dword [0x40b064], 0x8000
call fcn.00405f55
test eax, eax
jl 0x403225
mov esi, dword [0x40b060]
mov eax, 0x40b0c8
sub esi, eax
je 0x4031e6
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403221
cmp esi, dword [esp + 0x14]
jne 0x403221
add dword [0x40b03c], esi
cmp dword [0x40b05c], ebp
jne 0x403114
jmp 0x4031f2
cmp dword [0x40b05c], ebp
jne 0x403225
cmp ebx, ebp
je 0x403225
mov eax, dword [0x41710c]
mov ecx, eax
sub ecx, dword [0x40b03c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030d8
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40322a
or eax, 0xffffffff
jmp 0x403253
push 0xfffffffffffffffe
jmp 0x403227
push 0xfffffffffffffffd
pop eax
jmp 0x403253
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403251
mov eax, dword [0x41f118]
push ebp
push ebp
push 0x113
push esi
mov dword [0x417108], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053eb
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422960], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40540f
test al, 0x10
jne 0x405412
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422960
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40543d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054a5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405744
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054d9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243e8], eax
jmp 0x40565e
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054f7
test eax, eax
je 0x40560f
test byte [ebp + 0xc], 2
je 0x40560f
mov esi, 0x421960
push edi
push esi
call fcn.00405b57
test ebx, ebx
je 0x405514
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40551a
push edi
call fcn.004056ab
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405605
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040568f
cmp byte [eax], 0
je 0x40556b
cmp byte [ebp - 0x18], 0
je 0x40556b
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405581
mov al, byte [esi + 1]
test al, al
je 0x4055e4
cmp al, 0x2e
jne 0x405581
cmp byte [esi + 2], 0
je 0x4055e4
push esi
push ebx
call fcn.00405b57
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4055a7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055e4
push dword [ebp + 0xc]
push edi
call fcn.004054a5
jmp 0x4055e4
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055dc
test byte [ebp + 0xc], 4
je 0x4055d4
push edi
push 0xfffffffffffffff1
call fcn.00404f06
push 0
push edi
call fcn.0040589f
jmp 0x4055e4
inc dword [0x4243e8]
jmp 0x4055e4
push edi
push 0xfffffffffffffff2
call fcn.00404f06
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405549
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40560f
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40565e
cmp dword [ebp - 8], esi
jne 0x405624
inc dword [0x4243e8]
jmp 0x40565e
push edi
call fcn.00405e2c
test eax, eax
je 0x40565e
push edi
call fcn.00405664
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405656
test byte [ebp + 0xc], 4
je 0x40561c
push edi
push 0xfffffffffffffff1
call fcn.00404f06
push esi
push edi
call fcn.0040589f
jmp 0x40565e
push edi
push 0xffffffffffffffe5
call fcn.00404f06
pop edi
pop esi
leave
ret 8
Function at 0x405744
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d60
push esi
call fcn.00405b57
push esi
call fcn.004056f7
mov edi, eax
test edi, edi
jne 0x405765
xor eax, eax
jmp 0x4057b7
push edi
call fcn.00405d93
test byte [0x424370], 0x80
je 0x40577e
mov al, byte [edi]
test al, al
je 0x405761
cmp al, 0x5c
je 0x405761
sub edi, esi
jmp 0x405796
call fcn.00405e2c
test eax, eax
je 0x405790
test byte [eax], 0x10
je 0x405761
push esi
call fcn.004056ab
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405782
call fcn.00405664
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405828
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405857
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40589b
test edi, edi
jne 0x405862
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405895
Function at 0x40589f
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e6a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058cb
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a11
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ae8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ae8
je 0x40590f
push 1
push 0
push esi
call fcn.00405828
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a17
cmp eax, edi
jg 0x405a17
mov esi, 0x422560
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a17
cmp eax, edi
jg 0x405a17
push esi
push ebp
push str._s_s_r_n
push 0x422160
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405a11
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a0a
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a0a
cmp edi, dword [esp + 0x18]
jne 0x405a0a
push str._Rename__r_n
push esi
call fcn.004057bc
test eax, eax
jne 0x405a1e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b57
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422160
push eax
call fcn.00405808
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4243f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409324
push eax
call fcn.004057bc
test eax, eax
je 0x4059d5
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405a47
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405a3a
sub eax, esi
jmp 0x4059d7
Function at 0x405a4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405aaf
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a9e
cmp dword [ebp + 0x14], 1
je 0x405aa0
cmp dword [ebp + 0x14], 2
je 0x405aa0
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405b79
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405b9a
mov ecx, dword [0x423b3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424398]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x423300
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d6d
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d6d
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d7a
inc ebx
cmp cl, 0xfc
jbe 0x405d60
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d0b
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c2e
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405ca6
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c4d
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a4b
jmp 0x405ca1
cmp eax, 0x26
jne 0x405c7d
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a4b
cmp byte [edi], 0
jne 0x405d03
push str.C:Program_Files
push edi
call fcn.00405b57
jmp 0x405ca1
cmp eax, 0x25
jne 0x405c90
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405ca1
cmp eax, 0x24
jne 0x405ca6
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d03
cmp dword [0x4243e4], 0
jne 0x405cb2
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424364]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405ce8
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053c0
cmp dword [ebp - 8], 0
jne 0x405cef
jmp 0x405ceb
and byte [edi], 0
test esi, esi
jne 0x405cb2
cmp byte [edi], 0
je 0x405d03
cmp dword [ebp + 0xc], 0
je 0x405d03
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405d93
jmp 0x405d51
cmp byte [ebp + 0xf], 0xfd
jne 0x405d3f
cmp esi, 0x1b
jne 0x405d24
push dword [0x424364]
push edi
call fcn.00405ab5
jmp 0x405d35
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b57
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d51
jmp 0x405d03
cmp byte [ebp + 0xf], 0xff
jne 0x405d51
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405b79
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x423300
jmp 0x405d6d
jne 0x405d6a
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d6d
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bc5
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405d8f
push eax
push dword [ebp + 8]
call fcn.00405b57
leave
ret 8
Function at 0x405ec7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422eec], 0
push esi
jne 0x405efe
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 0x405ed8
mov dword [ecx*4 + 0x422ee8], eax
inc ecx
cmp ecx, 0x100
jl 0x405ed3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f2f
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 + 0x422ee8]
xor eax, esi
inc ecx
dec edx
jne 0x405f11
pop edi
not eax
pop esi
ret 0xc