joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068c9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x406903
test eax, eax
je 0x406903
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406905
mov ecx, 0x409aa4
jmp 0x40690a
xor eax, eax
mov ecx, 0x409aa6
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406968
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40698b
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406a31
pop ecx
pop ecx
inc dword [0x46f630]
ret 8

Function at 0x406a31
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x45ce78], 0x55004e
mov ebp, 0x45ce78
mov dword [0x45ce7c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406a87
push 1
push 0
push esi
call fcn.00407306
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406b67
cmp eax, ebx
jg 0x406b67
push ebx
mov esi, 0x45c678
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406b67
cmp eax, ebx
jg 0x406b67
push esi
push ebp
push str._ls_ls_r_n
push 0x45c278
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x46f570]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.004065d6
push 4
push 0xc0000000
push esi
call fcn.00407306
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406b67
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406b60
push esi
push edi
push ebx
call fcn.00407333
test eax, eax
je 0x406b60
push str._Rename__r_n
push edi
call fcn.00407521
test eax, eax
jne 0x406b6c
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x45c278
lea eax, [ecx + edi]
push eax
call fcn.00407045
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004073f6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40a938
add eax, 0xa
push eax
call fcn.00407521
mov ecx, eax
test ecx, ecx
je 0x406b31
lea edx, [edi + esi]
jmp 0x406b8b
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406b85
sub ecx, edi
inc ecx
jmp 0x406b33
Function at 0x406e48
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00407588
mov edi, eax
cmp edi, 0xffffffff
je 0x406e7e
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406e85
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406e8d
test byte [ebp + 0xc], 4
jne 0x406e7e
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406e6a
xor eax, eax
inc eax
jmp 0x406e80

Function at 0x406efb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x458278
push ebx
call fcn.00407505
push ebx
call fcn.004075b0
mov esi, eax
test esi, esi
je 0x406f72
push esi
call fcn.00407728
test byte [0x46f56c], 0x80
je 0x406f34
movzx eax, word [esi]
test ax, ax
je 0x406f72
cmp eax, 0x5c
je 0x406f72
sub esi, ebx
sar esi, 1
jmp 0x406f4e
call fcn.00406e92
test eax, eax
je 0x406f48
test byte [eax], 0x10
je 0x406f72
push ebx
call fcn.004076fb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x406f3a
call fcn.00406e19
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x406f74
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x407067
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x454230], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x454230
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4070a6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4070aa
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406efb
mov dword [esp + 0x14], eax
test bl, 8
je 0x4070ec
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x46f628], eax
jmp 0x4072c5
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x407109
test eax, eax
je 0x407250
test bl, 2
je 0x407258
push esi
push 0x454278
call fcn.00407505
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40712c
push str..
push 0x454278
call ebp
jmp 0x407132
push esi
call fcn.004076fb
xor eax, eax
cmp word [esi], ax
jne 0x407143
cmp word [0x454278], 0x5c
jne 0x40714b
push 0x409aa4
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x454278
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x407235
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x407199
cmp word [esp + 0x4a], 0
je 0x407217
cmp word [esp + 0x4a], ax
jne 0x407199
cmp word [esp + 0x4c], 0
je 0x407217
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00407505
test byte [esp + 0x1c], 0x10
je 0x4071c0
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x407217
push ebx
push esi
call fcn.004070aa
jmp 0x407217
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406f79
pop ecx
pop ecx
push edi
push esi
call fcn.00406e48
push esi
test eax, eax
jne 0x407210
test edi, edi
je 0x4071fc
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406f79
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406477
xor eax, eax
push eax
push esi
call fcn.00406968
jmp 0x407217
push str.Delete:_DeleteFile_failed___s__
call fcn.00406f79
inc dword [0x46f628]
pop ecx
pop ecx
jmp 0x407217
push 0xfffffffffffffff2
call fcn.00406477
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407177
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4072c4
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
jne 0x407258
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x4072ae
push esi
call fcn.00406e92
test eax, eax
je 0x4072c4
push esi
call fcn.00406e19
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406f79
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406e48
push esi
test eax, eax
jne 0x4072bd
test edi, edi
je 0x4072a9
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406f79
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00406477
xor eax, eax
push eax
push esi
call fcn.00406968
jmp 0x4072c4
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406f79
inc dword [0x46f628]
pop ecx
pop ecx
jmp 0x4072c4
push 0xffffffffffffffe5
call fcn.00406477
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8
Function at 0x407306
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x407362
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x4000
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406a03
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4073d4
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x3ffe], ax
pop esi
jne 0x4073d4
cmp dword [ebp + 0x18], 1
je 0x4073d9
cmp dword [ebp + 0x18], 2
je 0x4073d9
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4073de
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x407441
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40748b
test edi, edi
jne 0x40744e
mov word [esi], ax
jmp 0x40748d
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x407588
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4075aa
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x407825
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45d8cc], 0
push esi
jne 0x40785f
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x407836
mov dword [ecx*4 + 0x45d8c8], edx
inc ecx
cmp ecx, 0x100
jl 0x407831
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407889
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45d8c8]
inc esi
sub edx, 1
jne 0x407871
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x404ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x409528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esp + 0x38]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x14]
push str._s_d
push edx
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
mov word [esp + 0x10], 0
push eax
call sub.MFC42.DLL_COleVariant::operator_1
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esi + 0x78]
mov byte [esp + 0x30], 3
lea edi, [esi + 0x70]
call fcn.00405820
push eax
mov ecx, edi
call sub.MFC42.DLL_COleDispatchDriver::AttachDispatch
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x2c], 2
call esi
push ebp
lea ecx, [esp + 0x14]
mov word [esp + 0x14], 0
call sub.MFC42.DLL_COleVariant::operator
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov byte [esp + 0x2c], 4
call fcn.004058e0
lea ecx, [esp + 0x10]
push ecx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.0040845c
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0040845c
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040845c
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x406c90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4098a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebp
push esi
mov esi, ecx
push edi
push 1
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_fstream::constructor_void_]
lea eax, [esi + 0x88]
push str._scheme.dat
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x94], 0
call sub.MFC42.DLL_operator
mov edx, dword [sym.imp.MSVCIRT.dll_int_const_filebuf::openprot]
mov eax, dword [eax]
mov byte [esp + 0x88], 1
mov ecx, dword [edx]
push ecx
push 0x82
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_fstream::open_char_const___int__int_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 0
call fcn.0040845c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi + 0x1e4]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x146
push edx
mov byte [esp + 0x98], 2
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x1e4]
push 0
push 0
push 0x147
push eax
call edi
lea ecx, [esp + 0xc]
lea edi, [esi + 0x1c4]
push ecx
push 0
mov ecx, edi
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CComboBox::GetLBText
mov ebp, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::write_char_const___int_]
lea edx, [esp + 0x10]
push 4
push edx
lea ecx, [esp + 0x30]
call ebp
lea eax, [esp + 0x18]
push 4
push eax
lea ecx, [esp + 0x30]
call ebp
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x406db2
lea ecx, [esp + 0xc]
push ecx
push esi
mov ecx, edi
call sub.MFC42.DLL_CComboBox::GetLBText
mov edx, dword [esp + 0xc]
push 0x75
push edx
lea ecx, [esp + 0x30]
call ebp
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x406d8f
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCIRT.dll_public:_void___thiscall_fstream::close_void_]
lea ecx, [esp + 0xc]
mov byte [esp + 0x88], 0
call fcn.0040845c
lea ecx, [esp + 0x30]
mov dword [esp + 0x88], 0xffffffff
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_fstream::destructor_void_]
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCIRT.dll_public_virtual:_void___thiscall_ios::destructor_void_]
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x80
ret
Function at 0x401f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403250
push 0x402140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404184], 0xffffffff
mov dword [0x404188], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404180]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x40417c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40418c], ecx
call fcn.00402130
mov eax, dword [0x404130]
test eax, eax
jne 0x401fd1
push 0x402120
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402100
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x404178]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404174]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4020df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402045
cmp al, 0x22
jne 0x402037
cmp byte [esi], 0x22
jne 0x40204e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40205e
cmp al, 0x20
ja 0x40205e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40204e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40207f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402084
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4020c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40204e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4020df

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40283d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x4dd54c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402896
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x402896
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x402896
xor eax, eax
inc eax
jmp 0x402898
xor eax, eax
leave
ret 0x10

Function at 0x405bae
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x405cd1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x405cb5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x405c07
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x405be5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x419352
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
jne 0x419375
mov eax, 0x8876086c
jmp 0x41948a
cmp dword [ebp + 0xc], esi
push ebx
je 0x41940d
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x4193ed
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.004a4786
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x4193d1
mov eax, 0x8007000e
jmp 0x419489
push esi
push esi
push dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x41940d
push esi
push 0x10000000
push 3
push esi
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x419426
push esi
push 0x10000000
push 3
push esi
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 4]
mov dword [edi], eax
call fcn.004a57ac
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x419477
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x419477
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x419477
cmp eax, esi
je 0x419484
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x419487
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x419489
mov dword [edi + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8