joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d13f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor eax, eax
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [esi + 0x20]
lea eax, [ebp - 0x10]
push eax
mov ecx, edx
call fcn.0046bb60
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x38]
mov dword [ebp - 8], eax
mov edi, eax
mov eax, edi
or eax, ebx
je 0x46d264
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x2c]
push ebx
mov dword [ebp - 8], edi
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46d1b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46d249
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x38]
push eax
mov eax, dword [esi + 0x2c]
push dword [eax + 0x11c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46d1d6
cmp dword [ebp - 0xc], 0x18
je 0x46d1f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00430d77
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x46d264
mov dword [ebp - 4], 0x8004022d
cmp dword [ebp - 4], 0
jl 0x46d264
lea ecx, [esi + 0x20]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.0046c1a2
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
adc dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov edx, eax
or edx, ecx
je 0x46d23a
cmp ebx, ecx
jne 0x46d227
cmp edi, eax
je 0x46d231
cmp dword [ebp - 0x20], ecx
jne 0x46d23a
cmp dword [ebp - 0x1c], eax
jne 0x46d23a
xor edi, edi
xor ebx, ebx
jmp 0x46d17b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov ebx, ecx
mov edi, eax
jmp 0x46d17b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00430d77
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x46d264
mov dword [ebp - 4], 0x8004022d
mov eax, dword [esi + 0x2c]
cmp dword [eax + 8], 0
je 0x46d28d
mov ecx, dword [esi + 0x30]
inc ecx
imul ecx, ecx, 0x18
add eax, ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jne 0x46d285
mov edx, dword [ebp - 0x14]
cmp edx, dword [eax + 4]
je 0x46d28d
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e295
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [section..cdata]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0046e295
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [section..cdata]
jne 0x46e16d
ret

Function at 0x46e4d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push 0x407128
push SysReAllocString
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x46e578
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x46e56a
push 4
pop esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x407c0c
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46e56a
cmp dword [ebp + 8], esi
jne 0x46e56a
mov edi, dword [ebp - 0xc]
cmp edi, 3
ja 0x46e56a
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x46e55c
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x46e566
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x46e588
cmp dword [ebp - 4], ebx
je 0x46e578
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x46e586
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46e58f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x497620], 0
je 0x46e5a4
mov eax, dword [0x49761c]
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
push 0
push 0x407c88
mov edi, SysReAllocString
push edi
call esi
test eax, eax
jne 0x46e5fb
lea eax, [ebp - 8]
push eax
push 0x49761c
push 0
push 0
push dword [0x494bc0]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46e5fb
cmp dword [ebp - 8], 4
je 0x46e640
lea eax, [ebp - 4]
push eax
push ebx
xor ebx, ebx
push ebx
push 0x407c4c
push edi
call esi
test eax, eax
jne 0x46e638
push 4
pop esi
lea eax, [ebp - 8]
push eax
push 0x49761c
push ebx
push ebx
push dword [0x494bc0]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46e638
cmp dword [ebp - 8], esi
je 0x46e642
mov dword [0x49761c], ebx
jmp 0x46e642
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov esi, dword [0x49761c]
mov byte [0x497620], 1
je 0x46e65d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46eb13
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0046ead6
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x46eb97
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea esi, [eax - 1]
not esi
and esi, dword [ebp - 4]
mov dword [ebp - 8], eax
sub esi, eax
lea eax, [edi + 0x2000]
cmp esi, eax
jb 0x46eb97
mov dword [ebp - 4], edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x46eb97
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], edi
je 0x46eb6b
test byte [ebp - 0x13], 1
mov ebx, dword [ebp - 0x28]
je 0x46eb93
xor eax, eax
inc eax
jmp 0x46ebbb
cmp esi, ebx
jae 0x46eb9b
xor eax, eax
jmp 0x46ebbb
push 4
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ebfa
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x407dc8
call fcn.0046e2a2
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x46ec3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46ec3a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x46ec52
cmp eax, 0x20b
je 0x46ec3f
mov dword [ebp - 0x1c], edi
jmp 0x46ec66
cmp dword [ecx + 0x84], 0xe
jbe 0x46ec3a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x46ec60
cmp dword [ecx + 0x74], 0xe
jbe 0x46ec3a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x49763c], 0xffffffff
or dword [0x497640], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x497630]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x49762c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x497638], eax
call fcn.0046ee04
call fcn.0041697f
cmp dword [0x494be0], edi
jne 0x46ecc6
push 0x46efba
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0046efa8
push 0x493034
push 0x493030
call sub.MSVCRT.dll__initterm
push 0x46ee48
call fcn.0046e314
mov eax, dword [0x497628]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x497624]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x46ed1a
push 8
call sub.MSVCRT.dll__amsg_exit
pop ecx
push 0x49302c
push section..data
call sub.MSVCRT.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCRT.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x46ed44
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x46edfe
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x46edb3
cmp ax, di
je 0x46ed5a
cmp dword [ebp - 0x20], edi
jne 0x46edb3
mov ax, word [esi]
cmp ax, di
je 0x46ed6f
cmp ax, 0x20
ja 0x46ed6f
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x46ed5a
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x46ed8b
movzx eax, word [ebp - 0x54]
jmp 0x46ed8e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00467f8e
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x46edab
push esi
call dword [sym.imp.MSVCRT.dll_exit]
call dword [sym.imp.MSVCRT.dll__cexit]
jmp 0x46edf8
cmp ax, 0x22
jne 0x46edc4
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x46ed44
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0046e2dd
ret
Function at 0x46f5b6
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x48990d
call fcn.0046e3e3
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [edi + 0xc]
mov esi, ecx
push eax
mov dword [ebp - 0x10], esi
call fcn.00471b95
xor ebx, ebx
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], ebx
mov dword [esi], 0x407ebc
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
call fcn.00423964
mov al, byte [ebp + 0x10]
mov byte [esi + 0x4c], al
mov dword [esi + 0x48], ebx
mov eax, dword [edi + 8]
sub eax, 0x18
push eax
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x48], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x46f630
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x48990d
call fcn.0046e3e3
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [edi + 0xc]
mov esi, ecx
push eax
mov dword [ebp - 0x10], esi
call fcn.00471b95
xor ebx, ebx
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], ebx
mov dword [esi], 0x407ebc
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], edi
call fcn.00423964
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], 1
mov eax, dword [edi + 8]
sub eax, 0x18
push eax
mov byte [ebp - 4], 1
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x48], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4731a7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x489b01
call fcn.0046e3e3
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
push edi
lea ecx, [esi + 0x44]
mov dword [esi], fcn.00471866
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call fcn.0047206e
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x483a55
xor eax, eax
jmp 0x483b26
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x483b08
push edi
mov edi, eax
shr edi, 3
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
dec edi
jne 0x483a75
pop edi
test eax, eax
je 0x483b20
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x40ab10]
inc edx
dec eax
jne 0x483b0c
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x48401e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x48404a
test ecx, ecx
jne 0x484054
test esi, esi
jne 0x484054
mov eax, edx
jmp 0x4840c5
cmp eax, 0xffffffff
jne 0x484054
push 0xfffffffffffffffe
pop eax
jmp 0x4840c5
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x4840c5
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x48408a
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x4840a9
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x484172
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x4840ea
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4840f4
xor ecx, ecx
jmp 0x484133
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x484116
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.0047546d
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x48415e
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x484172
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x48402c
pop edi
pop esi
leave
ret
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x18e3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.018e378f
jae 0x18e370e
xor ecx, ecx
call fcn.018e378f
jae 0x18e373d
xor eax, eax
call fcn.018e378f
jae 0x18e374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.018e378f
adc al, al
jae 0x18e372f
jne 0x18e3779
stosb byte es:[edi], al
jmp 0x18e3711
call fcn.018e379b
sub ecx, ebx
jne 0x18e3756
call fcn.018e3799
jmp 0x18e3775
lodsb al, byte [esi]
shr eax, 1
je 0x18e3783
adc ecx, ecx
jmp 0x18e3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.018e3799
cmp eax, 0x7d00
jae 0x18e3772
cmp ah, 5
jae 0x18e3773
cmp eax, 0x7f
ja 0x18e3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x18e3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x1873700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0187378f
jae 0x187370e
xor ecx, ecx
call fcn.0187378f
jae 0x187373d
xor eax, eax
call fcn.0187378f
jae 0x187374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0187378f
adc al, al
jae 0x187372f
jne 0x1873779
stosb byte es:[edi], al
jmp 0x1873711
call fcn.0187379b
sub ecx, ebx
jne 0x1873756
call fcn.01873799
jmp 0x1873775
lodsb al, byte [esi]
shr eax, 1
je 0x1873783
adc ecx, ecx
jmp 0x1873772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.01873799
cmp eax, 0x7d00
jae 0x1873772
cmp ah, 5
jae 0x1873773
cmp eax, 0x7f
ja 0x1873774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1873711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x404780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4047b7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054d3
mov esp, ebp
pop ebp
ret
push esi
push 0x208
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 8], 0x208
lea eax, [ebp - 8]
push eax
push esi
push str.shellopencommand
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0xc]
test eax, eax
je 0x404816
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054d3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004054d3
mov esp, ebp
pop ebp
ret