joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c8a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x1001a050]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov dword [ebp - 0xa3], eax
mov dword [ebp - 0x9f], eax
mov dword [ebp - 0x9b], eax
mov word [ebp - 0x97], ax
mov byte [ebp - 0x95], al
push esi
lea eax, [ebp - 0x14]
push edi
mov dword [ebp - 0x94], 0x68eaa91
mov dword [ebp - 0x90], 0x95f5f25
mov dword [ebp - 0x8c], 0x9b8774fd
mov dword [ebp - 0x88], 0xf478096a
mov dword [ebp - 0x84], 0xf9475ba3
mov dword [ebp - 0x80], 0x865c7e75
mov dword [ebp - 0x7c], 0xbab57cac
mov dword [ebp - 0x78], 0xea66968e
mov dword [ebp - 0x14], 0x51a63d10
mov dword [ebp - 0x10], 0xa1434490
mov dword [ebp - 0xc], 0x5fce16f
mov dword [ebp - 8], 0xc6bbe2d2
mov dword [ebp - 0x54], 0x814dba64
mov dword [ebp - 0x50], 0x6acb360a
mov dword [ebp - 0x4c], 0x29542364
mov dword [ebp - 0x48], 0x90d0cb5f
mov dword [ebp - 0x44], 0x2d2a5ad2
mov dword [ebp - 0x40], 0x2fd263c0
mov dword [ebp - 0x3c], 0xad42bc0e
mov dword [ebp - 0x38], 0xa356626b
mov dword [ebp - 0x34], 0x6c83b5d3
mov dword [ebp - 0x30], 0xb74731aa
mov dword [ebp - 0x2c], 0xe183145
mov dword [ebp - 0x28], 0x65d65a1b
mov dword [ebp - 0x24], 0xa2b96030
mov dword [ebp - 0x20], 0x80a9e7fb
mov dword [ebp - 0x1c], 0x4efaa199
mov dword [ebp - 0x18], 0x8a5e432a
mov dword [ebp - 0x74], 0x5eb77fc5
mov dword [ebp - 0x70], 0xd971b109
mov dword [ebp - 0x6c], 0x79e9fd65
mov dword [ebp - 0x68], 0xfbda2dae
mov dword [ebp - 0x64], 0x10633c3b
mov dword [ebp - 0x60], 0x4445765f
mov dword [ebp - 0x5c], 0xf7d5aa72
mov dword [ebp - 0x58], 0x7d35a45d
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xa8], eax
xor ebx, ebx
call fcn.10004be0
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp + ebx - 0x54]
push ecx
push edx
lea eax, [ebp + ebx - 0x94]
lea esi, [ebp + ebx - 0x34]
push eax
lea edi, [ebp - 0xa4]
call fcn.10004c80
add esp, 0xc
call fcn.10004be0
mov eax, 0x10
lea ecx, [ebp + ebx - 0x74]
mov edx, edi
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1000ca46
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1000ca30
jmp 0x1000ca7a
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x1000ca72
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x1000ca72
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x1000ca72
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jne 0x1000caa0
add dword [ebp - 0xa8], 8
add ebx, 0x10
cmp ebx, 0x20
jl 0x1000c9f4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f5b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x85
pop ebx
call fcn.1000f5b7
mov esp, ebp
pop ebp
ret
Function at 0x1000ed50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x1000f267
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x1000ed3c
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.1000d1d1
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.1000d1d1
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.1000d132
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x1000f139
cmp dword [ebp - 0x6fc], 1
jne 0x1000eded
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
ja 0x1000ed5a
invalid
inc dword [eax]
mov byte [ebp - 0x788], 3
invalid
test dword [ecx - 8], edi

Function at 0x1000f5b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a050]
jne 0x1000f5c1
repz ret
jmp fcn.1000fc3a
Function at 0x10011efb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100102d2
and dword [ebp - 0x14], 0
cmp dword [0x1001db58], 0
mov dword [ebp - 0x18], eax
jne 0x10011fae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10012056
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10012056
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001db58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001db5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001db60], eax
call edi
push eax
call esi
mov dword [0x1001db68], eax
test eax, eax
je 0x10011fae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001db64], eax
mov eax, dword [0x1001db64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10012007
cmp dword [0x1001db68], ecx
je 0x10012007
push eax
call esi
push dword [0x1001db68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10012007
test ebx, ebx
je 0x10012007
call edi
test eax, eax
je 0x10011ffe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10011ffe
test byte [ebp - 8], 1
jne 0x10012007
or dword [ebp + 0x10], 0x200000
jmp 0x1001203a
mov eax, dword [0x1001db5c]
cmp eax, dword [ebp - 0x18]
je 0x1001203a
push eax
call esi
test eax, eax
je 0x1001203a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001203a
mov eax, dword [0x1001db60]
cmp eax, dword [ebp - 0x18]
je 0x1001203a
push eax
call esi
test eax, eax
je 0x1001203a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001db58]
call esi
test eax, eax
je 0x10012056
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10012058
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f5b7
leave
ret
Function at 0x401450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x401479
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x401499
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4014dd
mov ecx, dword [ebx + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4014dd
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
nop
nop
nop
nop
nop
nop
nop
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x401523
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
nop
nop
nop
nop
nop
nop
nop
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x401400
mov dword [esi + 0x18], 0x401420
mov dword [esi + 0x1c], 0x401440
mov dword [esi + 0x20], eax
mov edx, dword [ebx + 0x54]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [ebp - 4], eax
call fcn.0040e890
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call section..text
add esp, 0x18
nop
nop
nop
nop
nop
nop
nop
mov eax, edi
sub eax, dword [ebx + 0x34]
je 0x40159c
push eax
mov eax, esi
call fcn.004011e0
add esp, 4
call fcn.00401270
test eax, eax
je 0x4015db
mov ebx, esi
call fcn.004010c0
mov eax, esi
call fcn.004011a0
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x4015f0
push 0
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x4015e9
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004016e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b50
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x401b7b
push str.Load_dll_error__n
call fcn.0040706d
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push str.RtlDecompressBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x401b9d
push str.Load_function_error__n
call fcn.0040706d
add esp, 4
mov edi, 0x1000
push edi
mov dword [ebp - 4], 0
call fcn.00407681
mov esi, eax
add esp, 4
test esi, esi
je 0x401bfe
push edi
push 0
push esi
call fcn.0040e810
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
push edx
push edi
push esi
push 2
call ebx
mov eax, dword [ebp - 4]
cmp edi, eax
jae 0x401c0e
test esi, esi
je 0x401bed
push esi
call fcn.004072fe
mov eax, dword [ebp - 4]
add esp, 4
push eax
mov edi, eax
call fcn.00407681
mov esi, eax
add esp, 4
test esi, esi
jne 0x401bb8
push str.new_memory_error__n
call fcn.0040706d
mov eax, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx], esi
mov dword [edx], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c30
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
cmp edi, 1
jle 0x401d2d
mov eax, 0x34
cdq
idiv edi
movzx edx, byte [esi + edi - 1]
add eax, 6
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea esp, [esp]
sub ecx, 0x61c88647
mov eax, ecx
shr eax, 2
and eax, 3
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea eax, [edi - 1]
xor ecx, ecx
test eax, eax
je 0x401cd3
lea ecx, [ecx]
movzx eax, byte [ecx + esi + 1]
lea edi, [eax*4]
mov dword [ebp - 0x10], eax
shr eax, 3
mov ebx, edx
shr ebx, 5
xor edi, ebx
mov ebx, edx
shl ebx, 4
xor eax, ebx
mov ebx, dword [ebp + 0xc]
add edi, eax
mov eax, ecx
and eax, 3
xor eax, dword [ebp - 8]
inc ecx
mov ebx, dword [ebx + eax*4]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 4]
xor ebx, edx
movzx edx, byte [ecx + esi - 1]
add eax, ebx
xor eax, edi
add eax, edx
mov byte [ecx + esi - 1], al
movzx edx, al
mov eax, dword [ebp + 8]
dec eax
cmp ecx, eax
jb 0x401c80
movzx eax, byte [esi]
lea ebx, [eax*4]
mov edi, edx
shr edi, 5
xor ebx, edi
mov dword [ebp - 0x10], eax
shr eax, 3
mov edi, edx
shl edi, 4
xor eax, edi
add ebx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
xor ecx, dword [ebp - 8]
mov edi, dword [eax + ecx*4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor edi, edx
xor eax, ecx
add eax, edi
mov edi, dword [ebp + 8]
movzx edx, byte [esi + edi - 1]
xor eax, ebx
add eax, edx
dec dword [ebp - 0xc]
mov byte [esi + edi - 1], al
movzx edx, al
jne 0x401c60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jge 0x401e14
neg edi
mov eax, 0x34
cdq
mov ebx, edi
idiv ebx
mov dword [ebp + 8], ebx
add eax, 6
mov ecx, eax
imul ecx, ecx, 0x9e3779b9
mov dword [ebp - 0xc], eax
movzx eax, byte [esi]
mov dword [ebp - 4], ecx
jmp 0x401d63
mov ebx, dword [ebp + 8]
shr ecx, 2
and ecx, 3
lea edi, [ebx - 1]
mov dword [ebp - 8], ecx
test edi, edi
je 0x401dc1
movzx ecx, byte [edi + esi - 1]
mov ebx, ecx
shr ebx, 5
lea edx, [eax*4]
xor edx, ebx
mov ebx, eax
xor eax, dword [ebp - 4]
shr ebx, 3
shl ecx, 4
xor ebx, ecx
add edx, ebx
mov ebx, dword [ebp + 0xc]
mov ecx, edi
and ecx, 3
xor ecx, dword [ebp - 8]
mov ebx, dword [ebx + ecx*4]
movzx ecx, byte [edi + esi - 1]
xor ebx, ecx
add ebx, eax
movzx eax, byte [edi + esi]
xor edx, ebx
sub eax, edx
dec edi
mov byte [edi + esi + 1], al
movzx eax, al
jne 0x401d73
mov ebx, dword [ebp + 8]
movzx ecx, byte [esi + ebx - 1]
mov bl, cl
shl bl, 4
mov edx, eax
shr edx, 3
xor dl, bl
mov dword [ebp - 0x10], ecx
shr ecx, 5
mov bl, al
add bl, bl
add bl, bl
xor cl, bl
mov bl, byte [ebp - 4]
add dl, cl
mov ecx, dword [ebp + 0xc]
and edi, 3
xor edi, dword [ebp - 8]
xor bl, al
mov cl, byte [ecx + edi*4]
xor cl, byte [ebp - 0x10]
add cl, bl
xor dl, cl
mov ecx, dword [ebp - 4]
sub byte [esi], dl
movzx eax, byte [esi]
add ecx, 0x61c88647
dec dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jne 0x401d60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4184d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42029c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4047a1
cmp byte [ebx + 0x49], 0
je 0x4047a1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x404795
lea esi, [ebp - 0x2c]
call fcn.004041c0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404683
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4046bc
dec eax
je 0x4046c0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40479c
call fcn.00403060
xor al, al
jmp 0x4047a3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4046d0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4046fd
cmp edi, 0x10
jae 0x4046df
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004074d5
add esp, 0x10
cmp esi, eax
jne 0x40478d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404799
test esi, esi
jne 0x404677
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x4047be
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x4047be
cmp edi, esi
jae 0x404776
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404e00
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404677
mov ecx, eax
cmp edi, 0x10
jae 0x404752
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40476d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404671
test esi, esi
jne 0x404748
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x404785
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404671
lea ecx, [ebp - 0x2c]
call fcn.00403060
xor al, al
jmp 0x4047a3
lea ecx, [ebp - 0x2c]
call fcn.00403060
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040581d
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00416820
int3
Function at 0x404b60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41842b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42029c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00416974
push 4
mov dword [ebp - 4], 0
call fcn.00407681
mov edi, eax
add esp, 4
test edi, edi
je 0x404bdc
call fcn.0041676f
mov dword [edi], eax
call fcn.0041652e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00416935
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404bd2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041695d
jmp 0x404bde
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40581d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42029c]
jne 0x405827
repz ret
jmp fcn.00407895
Function at 0x41390e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42029c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004083b9
and dword [ebp - 0x14], 0
cmp dword [0x468120], 0
mov dword [ebp - 0x18], eax
jne 0x4139c1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413a69
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413a69
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x468120], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x468124], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x468128], eax
call edi
push eax
call esi
mov dword [0x468130], eax
test eax, eax
je 0x4139c1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46812c], eax
mov eax, dword [0x46812c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413a1a
cmp dword [0x468130], ecx
je 0x413a1a
push eax
call esi
push dword [0x468130]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413a1a
test ebx, ebx
je 0x413a1a
call edi
test eax, eax
je 0x413a11
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413a11
test byte [ebp - 8], 1
jne 0x413a1a
or dword [ebp + 0x10], 0x200000
jmp 0x413a4d
mov eax, dword [0x468124]
cmp eax, dword [ebp - 0x18]
je 0x413a4d
push eax
call esi
test eax, eax
je 0x413a4d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413a4d
mov eax, dword [0x468128]
cmp eax, dword [ebp - 0x18]
je 0x413a4d
push eax
call esi
test eax, eax
je 0x413a4d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x468120]
call esi
test eax, eax
je 0x413a69
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413a6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040581d
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x4819473b
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2fc602be
nop
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219