joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455e9f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c6c18
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xb4]
mov dword [edi], vtable.PaletteManager.0
mov ecx, dword [0x531bbc]
push eax
push 0
push 0x14
call fcn.00406ad0
mov ecx, dword [0x531bc0]
lea esi, [edi + 0xac]
push esi
call fcn.00476ac6
lea ecx, [edi + 0x9c]
mov dword [esi], vtable.SysCallback.0
mov dword [ecx], vtable.PtrList_class_ElementRegionServer_.0
call fcn.00498e6e
lea ecx, [edi + 0x78]
mov dword [ecx], vtable.PtrList_struct_SkinBitmapElement_.0
call fcn.00498e6e
lea ecx, [edi + 0x54]
mov dword [ecx], vtable.PtrList_class_SkinCursorElement_.0
call fcn.00498e6e
lea ecx, [edi + 0x30]
mov dword [ecx], vtable.PtrList_struct_SkinColorElement_.0
call fcn.00498e6e
lea ecx, [edi + 0xc]
mov dword [ecx], vtable.PtrList_struct_SkinElementAlias_.0
call fcn.00498e6e
mov ecx, dword [ebp - 0xc]
mov dword [edi], vtable.api_palette.0
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x458094
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0049a3b0
push 0x800
lea eax, [ebp - 0xa08]
push 0
push eax
call fcn.0049a3b0
add esp, 0x18
lea eax, [ebp - 0x208]
push str.paths.ini
push 0x5015e8
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x208]
push eax
mov edi, 0x400
lea eax, [ebp - 0xa08]
push edi
push eax
mov ebx, 0x4cada0
push ebx
push str.inidir
push 0x4cbf1c
call esi
cmp word [ebp - 0xa08], 0
je 0x458132
lea eax, [ebp - 0xa08]
push edi
push eax
call fcn.00457dff
lea eax, [ebp - 0xa08]
push eax
call fcn.00414161
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push ebx
push str.m3udir
push 0x4cbf1c
call esi
cmp word [ebp - 0xa08], 0
je 0x458174
lea eax, [ebp - 0xa08]
push edi
push eax
call fcn.00457dff
lea eax, [ebp - 0xa08]
push eax
call fcn.004141d7
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push ebx
push str.m3ubase
push 0x4cbf1c
call esi
cmp word [ebp - 0xa08], 0
je 0x4581b6
lea eax, [ebp - 0xa08]
push edi
push eax
call fcn.00457dff
lea eax, [ebp - 0xa08]
push eax
call fcn.004141a8
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push ebx
push str.inifile
push 0x4cbf1c
call esi
cmp word [ebp - 0xa08], 0
je 0x4581f8
lea eax, [ebp - 0xa08]
push edi
push eax
call fcn.00457dff
lea eax, [ebp - 0xa08]
push eax
call fcn.00414190
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push ebx
push str.class
push 0x4cbf1c
call esi
cmp word [ebp - 0xa08], 0
je 0x458240
lea eax, [ebp - 0xa08]
push edi
push eax
call fcn.00457dff
pop ecx
pop ecx
lea eax, [ebp - 0xa08]
push eax
push 0x40
push 0x531ea8
call fcn.0040c4d6
lea eax, [ebp - 0x208]
push eax
push edi
lea eax, [ebp - 0xa08]
push eax
push ebx
push 0x4d4348
push 0x4cbf1c
call esi
cmp word [ebp - 0xa08], 0
je 0x45828b
lea eax, [ebp - 0xa08]
push edi
push eax
call fcn.00457dff
pop ecx
pop ecx
lea eax, [ebp - 0xa08]
push eax
push 0x104
push 0x504ad0
call fcn.0040c4d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45cd3f
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1588
call fcn.004990f0
push esi
mov esi, dword [0x531bd0]
test esi, esi
jne 0x45cd74
push esi
push pe_nt_image_headers32
push 0x12f
push dword [ebp + 8]
call fcn.00440e4f
add esp, 0x10
xor eax, eax
jmp 0x45cf2f
push edi
push 0x800
xor edi, edi
lea eax, [ebp - 0xd68]
push edi
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0xd68]
mov ecx, esi
push 0x400
push eax
call fcn.00431ec0
push 0x81e
lea eax, [ebp - 0x1586]
push edi
push eax
call fcn.0049a3b0
push 0x208
lea eax, [ebp - 0x568]
push edi
push eax
call fcn.0049a3b0
push 0x100
lea eax, [ebp - 0x158]
push edi
push eax
call fcn.0049a3b0
add esp, 0x24
lea eax, [ebp - 0x568]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x50
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], 0x58
push edi
push eax
call fcn.0049a3b0
add esp, 0xc
cmp dword [0x50dfe4], edi
je 0x45ce0f
xor eax, eax
jmp 0x45cf2e
mov eax, dword [0x533114]
test eax, eax
mov ecx, dword [0x531f70]
cmovne ecx, eax
mov dword [0x50dfe4], 1
mov eax, dword [0x531f80]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xd68]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1588]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x54], ecx
mov ecx, dword [0x531bc4]
mov word [ebp - 0x1588], ax
mov dword [ebp - 0x38], 0x410
call fcn.0040c29e
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x45ce83
cmp esi, 1
jne 0x45ce83
push 0x80
lea eax, [ebp - 0x158]
push eax
push 0x132
jmp 0x45ce94
push 0x80
lea eax, [ebp - 0x158]
push eax
push 0x131
call fcn.00441947
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x4cd718
mov dword [ebp - 0x24], 0x81004
call fcn.0044901f
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x45cf13
push 0x208
xor edi, edi
lea eax, [ebp - 0x360]
push edi
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x360]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [0x531bc4]
lea eax, [ebp - 0x360]
push eax
call fcn.0040c2a4
push edi
lea eax, [ebp - 0x1588]
mov dword [0x50dfe4], edi
push esi
push eax
call fcn.00490c45
add esp, 0xc
inc edi
lea eax, [ebp - 0x568]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
and dword [0x50dfe4], 0
call fcn.00448ee8
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x45cf32
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.0049a3b0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x260]
add esp, 0xc
push eax
push 0x104
call esi
push 0x50
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], 0x58
push ebx
push eax
call fcn.0049a3b0
add esp, 0xc
cmp dword [0x50e1f0], ebx
je 0x45cf8d
xor eax, eax
jmp 0x45d0e5
mov eax, dword [ebp + 8]
push edi
push 0x11a
push 3
push 0x400
push dword [0x531f70]
mov dword [ebp - 0x54], eax
mov edi, ebx
mov eax, dword [0x531f80]
mov dword [0x50e1f0], 1
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 3
push str.plsflt
mov dword [ebp - 0x4c], eax
call fcn.00411eb7
push ebx
push ebx
push 0x133
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x50dfe8
mov dword [ebp - 0x38], 0x103
call fcn.00441947
add esp, 0x14
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1c], 0x4cd7c8
mov dword [ebp - 0x24], 0x80006
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x45d0c3
push 0x208
lea eax, [ebp - 0x468]
push 0
push eax
call fcn.0049a3b0
add esp, 0xc
lea eax, [ebp - 0x468]
push eax
push 0x104
call esi
mov ecx, dword [0x531bc4]
lea eax, [ebp - 0x468]
push eax
call fcn.0040c2a4
lea eax, [ebp - 0x260]
push eax
call ebx
push 0
mov esi, 0x50dfe8
push esi
call fcn.004abb21
pop ecx
pop ecx
test eax, eax
jne 0x45d085
push 2
push esi
call fcn.004abb21
pop ecx
pop ecx
test eax, eax
je 0x45d085
push 0x180
push esi
call fcn.004b021b
pop ecx
pop ecx
and dword [0x50e1f0], edi
xor edi, edi
push 0x4cd718
push esi
inc edi
call fcn.00476738
pop ecx
push eax
call fcn.0049e71a
pop ecx
pop ecx
test eax, eax
jne 0x45d0b6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0045d0e9
pop ecx
jmp 0x45d0c3
push 0
push 1
push esi
call fcn.00441d09
add esp, 0xc
push dword [ebp - 0x40]
push str.plsflt
call fcn.0041202d
pop ecx
pop ecx
lea eax, [ebp - 0x260]
push eax
call ebx
and dword [0x50e1f0], 0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45eccb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 0x1c]
test ecx, ecx
je 0x45ecf1
mov eax, dword [edi + 0x48]
xor edx, edx
div ecx
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x45ecf7
xor esi, esi
inc esi
mov dword [ebp - 4], esi
imul ecx, esi
cmp dword [edi + 0x60], 0
mov dword [edi + 0x4c], ecx
je 0x45ed0f
push dword [edi + 0x60]
call fcn.004a1b5f
pop ecx
mov ecx, dword [edi + 0x4c]
imul eax, ecx, 3
push eax
call fcn.004a1b7a
movsd xmm1, qword [0x4d4680]
xorps xmm0, xmm0
mov dword [ebp - 0xc], eax
mov dword [edi + 0x60], eax
movsd qword [ebp - 0x20], xmm1
movsd qword [ebp - 0x30], xmm0
pop ecx
cmp esi, 1
jbe 0x45ed6b
movsd xmm1, qword [0x4d4688]
lea ecx, [esi - 1]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4cebc0]
divsd xmm1, xmm0
movsd qword [ebp - 0x28], xmm1
movsd xmm1, qword [0x4d4680]
jmp 0x45ed70
movsd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], esi
lea esi, [edi + 0xc]
mov dword [ebp - 0x18], esi
jmp 0x45ed7e
lea esi, [edi + 0xc]
mov eax, dword [ebx + 4]
movaps xmm0, xmm1
mov dword [ebp - 8], eax
call fcn.004a5780
mov eax, dword [edi + 0x24]
movsd xmm2, qword [ebp - 0x20]
addsd xmm2, qword [ebp - 0x28]
movsd qword [ebp - 0x38], xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
movsd qword [ebp - 0x20], xmm2
addsd xmm1, qword [eax*8 + 0x4cebc0]
call fcn.004a3b50
mov eax, dword [ebx + 0x1c]
movaps xmm3, xmm0
movsd xmm2, qword [ebp - 0x38]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 3
mov edi, esi
pop esi
movd xmm1, dword [edi + 0xc]
movd xmm0, dword [edi]
mov edx, dword [ebp - 8]
cvtdq2pd xmm0, xmm0
movzx eax, byte [edx]
inc edx
mov dword [ebp - 8], edx
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm2
mulsd xmm1, xmm3
addsd xmm1, xmm0
movd xmm0, dword [edi - 0xc]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mov eax, 0xff
addsd xmm1, xmm0
cvttsd2si ecx, xmm1
cmp ecx, eax
mov edx, ecx
cmovg edx, eax
cmp ecx, 0xff
movzx eax, cl
mov ecx, 0xff
cmovg eax, ecx
xor ecx, ecx
test edx, edx
movzx eax, al
cmovg ecx, eax
add edi, 4
mov byte [ebx], cl
inc ebx
sub esi, 1
jne 0x45edd2
sub dword [ebp - 0x10], 1
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], ebx
jne 0x45edcd
sub dword [ebp - 0x14], 1
movsd xmm1, qword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x45ed7b
cmp dword [edi + 0x58], 0
mov esi, dword [ebp - 4]
je 0x45ee7f
push dword [edi + 0x58]
call fcn.004a1b5f
pop ecx
push 0x200
call fcn.004a1b7a
movd xmm0, esi
mov ebx, eax
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
mov dword [edi + 0x58], ebx
mov edi, 0x100
pop ecx
xorps xmm1, xmm1
addsd xmm0, qword [esi*8 + 0x4cebc0]
mov esi, dword [ebp + 0xc]
movsd qword [ebp - 0x38], xmm0
movaps xmm0, xmm1
call fcn.004a46a0
mulsd xmm0, qword [ebp - 0x38]
movzx ecx, word [esi + 0x1c]
movsd xmm1, qword [ebp - 0x30]
addsd xmm1, qword [0x4d4678]
cvttsd2si eax, xmm0
movsd qword [ebp - 0x30], xmm1
movzx eax, ax
imul eax, ecx
mov word [ebx], ax
add ebx, 2
sub edi, 1
jne 0x45eeb3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4654d1
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
push 0x3e8
mov dword [ebp - 4], edi
push 0x52f468
mov dword [edi], vtable.Random.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 4]
xor ebx, ebx
push ebx
push 1
push ebx
push str.WinampKeyContainer
push eax
call esi
test eax, eax
jne 0x465524
push 8
push 1
push ebx
push str.WinampKeyContainer
lea eax, [ebp - 4]
push eax
call esi
test eax, eax
je 0x465553
mov esi, dword [ebp - 4]
test esi, esi
je 0x465553
lea eax, [ebp - 0x28]
push eax
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x465549
lea eax, [ebp - 0x28]
push 8
push eax
call fcn.004657f8
pop ecx
pop ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x465588
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push 4
push eax
call fcn.004657f8
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4656e6
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x52f468
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4f9fc0]
cmp edi, 0x270
jl 0x4657b9
xor edi, edi
mov edx, edi
mov ecx, dword [edx*4 + 0x52eaac]
xor ecx, dword [edx*4 + 0x52eaa8]
and ecx, 0x7fffffff
xor ecx, dword [edx*4 + 0x52eaa8]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x4d4700]
xor ecx, dword [edx*4 + 0x52f0dc]
mov dword [edx*4 + 0x52eaa8], ecx
inc edx
cmp edx, 0xe3
jl 0x46570b
lea esi, [edx*4 + 0x52eaa8]
mov eax, dword [esi]
lea edx, [esi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x4d4700]
xor eax, dword [edx - 0x390]
xor eax, ecx
mov dword [esi], eax
mov esi, edx
mov eax, dword [edx]
cmp esi, 0x52f464
jl 0x465754
mov ecx, dword [0x52eaa8]
xor ecx, dword [0x52f464]
and ecx, 0x7fffffff
xor ecx, dword [0x52f464]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x4d4700]
xor ecx, dword [0x52f0d8]
mov dword [0x52f464], ecx
mov esi, dword [edi*4 + 0x52eaa8]
inc edi
push ebx
mov dword [0x4f9fc0], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
shr eax, 0xb
xor esi, eax
mov eax, esi
and eax, 0xff3a58ad
shl eax, 7
xor esi, eax
mov eax, esi
and eax, 0xffffdf8c
shl eax, 0xf
xor esi, eax
mov eax, esi
shr eax, 0x12
pop edi
xor eax, esi
pop esi
pop ebx
ret
Function at 0x4657f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x12bd6aa
call fcn.004658da
mov edi, dword [ebp + 0xc]
xor esi, esi
mov eax, 0x270
inc esi
xor ebx, ebx
cmp edi, eax
pop ecx
cmovl edi, eax
test edi, edi
je 0x46587c
mov eax, dword [esi*4 + 0x52eaa4]
lea edx, [ebx + 1]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x19660d
mov ecx, dword [ebp + 8]
xor eax, dword [esi*4 + 0x52eaa8]
add eax, dword [ecx + ebx*4]
lea ecx, [esi + 1]
add eax, ebx
mov ebx, 0x270
mov dword [esi*4 + 0x52eaa8], eax
cmp ecx, ebx
mov eax, dword [0x52eaa8]
cmovge eax, dword [0x52f464]
xor esi, esi
inc esi
mov dword [0x52eaa8], eax
cmp ecx, ebx
cmovl esi, ecx
xor ebx, ebx
cmp edx, dword [ebp + 0xc]
cmovl ebx, edx
sub edi, 1
jne 0x46581f
mov edx, 0x26f
lea ebx, [edx + 1]
mov eax, dword [esi*4 + 0x52eaa4]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x5d588b65
lea ecx, [esi + 1]
xor eax, dword [esi*4 + 0x52eaa8]
sub eax, esi
cmp ecx, ebx
mov dword [esi*4 + 0x52eaa8], eax
mov eax, dword [0x52eaa8]
cmovge eax, dword [0x52f464]
xor esi, esi
inc esi
mov dword [0x52eaa8], eax
cmp ecx, ebx
cmovl esi, ecx
sub edx, 1
jne 0x465884
pop edi
pop esi
mov dword [0x52eaa8], 0x80000000
pop ebx
pop ebp
ret

Function at 0x4658da
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [0x52eaa8], eax
inc edx
mov eax, dword [edx*4 + 0x52eaa4]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x52eaa8], eax
inc edx
cmp edx, 0x270
jl 0x4658e8
mov dword [0x4f9fc0], edx
pop ebp
ret

Function at 0x466b57
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push 0x52f4bc
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push 1
push edi
call esi
push edi
push edi
push edi
push edi
mov dword [0x52f494], eax
call esi
push edi
push edi
push 1
push edi
mov dword [0x52f498], eax
call esi
mov dword [0x52f49c], eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x4669e4
push 0x40000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52f4a0], eax
mov dword [0x52f4b8], edi
mov dword [0x52f4b4], edi
call fcn.0048518d
pop edi
pop esi
leave
ret
Function at 0x469bfd
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x501d06]
cmp al, 1
je 0x469c1a
cmp al, 2
je 0x469c1a
cmp dword [0x52fd08], 0
je 0x469c25
call fcn.0047707d
jmp 0x469c25
push 0x531f98
call fcn.00476f75
pop ecx
push 0
push dword [0x531f70]
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [0x501d06]
cmp al, 1
je 0x469c55
cmp al, 3
je 0x469c55
push 0xffffffffffffffec
push dword [0x531f70]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffffff7f
jmp 0x469c68
push 0xffffffffffffffec
push dword [0x531f70]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xffffffffffffffec
push dword [0x531f70]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [0x52f588], 0
je 0x469c97
cmp dword [0x5332a4], 0
jne 0x469c97
push 8
push dword [0x531f70]
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x52f588], 1
ret

Function at 0x46a0bf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, eax
and dword [ebx], esi
cmp edi, 0xffffffff
je 0x46a14a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x46a143
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x46a143
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46a131
mov eax, dword [ebx]
cmp eax, dword [ebp + 0xc]
je 0x46a143
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x46a2d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x20
pop eax
mov word [ebp - 0x26], ax
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x30], xmm0
inc eax
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov ebx, esi
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov word [ebp - 0x28], ax
mov dword [ebp - 0x34], 0x28
test edi, edi
jne 0x46a337
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
call fcn.0046a0bf
mov ebx, dword [ebp - 4]
add esp, 0xc
jmp 0x46a369
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x46a38b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 8]
test edi, edi
je 0x46a38d
push dword [ebp + 0x14]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push edi
call fcn.00469ffb
add esp, 0x14
mov edi, eax
jmp 0x46a38d
mov edi, esi
test ebx, ebx
je 0x46a3ad
push ebx
cmp dword [ebp + 8], esi
je 0x46a39f
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x46a3ad
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x46a3f4
neg dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
push esi
push esi
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
je 0x46a3e8
mov eax, dword [ebp - 0x2c]
cdq
xor eax, edx
sub eax, edx
imul eax, dword [ebp - 0x30]
shl eax, 2
push eax
push edi
push dword [ebp - 0xc]
call fcn.0049a510
add esp, 0xc
mov ecx, dword [0x531bfc]
push edi
call fcn.0042d880
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46a4f2
Capabilities:
Check for time delay via gettickcount
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
push 0x204
xor edi, edi
mov dword [ebp - 0x260], 0x22
lea eax, [ebp - 0x25c]
push edi
push eax
call fcn.0049a3b0
push 0x40
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0x44
push edi
push eax
call fcn.0049a3b0
mov ebx, dword [ebp + 0xc]
add esp, 0x18
test ebx, ebx
je 0x46a53b
mov dword [ebx], edi
mov esi, 0x103
lea eax, [ebp - 0x25e]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.___NEW
push 0x104
lea eax, [ebp - 0x260]
push eax
call fcn.0040ad38
mov edi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x46a5c1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x46a5c1
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
jge 0x46a5c1
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x260]
lea eax, [ecx + eax*2]
push eax
push 0xffffffffffffffff
push edi
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x46a5c3
xor edi, edi
push 4
pop eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], 0x41
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x46a6aa
cmp dword [ebp + 8], 0
mov esi, edi
je 0x46a6a1
test esi, esi
jne 0x46a637
xor ebx, ebx
push ebx
push 0x531ea8
push ebx
jmp 0x46a62a
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
je 0x46a637
push ebx
push 0x531ea8
push esi
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
jne 0x46a610
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 0x10]
jmp 0x46a678
push 5
push 0x4ff
sub eax, ecx
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x46a672
mov ecx, dword [0x531bc4]
call fcn.0040bf25
test eax, eax
jne 0x46a663
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0xfa
sub ecx, ebx
cmp ecx, eax
jb 0x46a64b
test esi, esi
je 0x46a694
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x46a69e
inc edi
cmp edi, 0x14
jl 0x46a601
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x46a6a7
mov dword [ebx], esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret