joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411bb2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x813520]
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.0040af11
and dword [ebp - 0x14], 0
cmp dword [0x818a94], 0
mov dword [ebp - 0x18], eax
jne 0x411c65
push 0x403934
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411d0d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ReadConsoleInputA
push ebx
call edi
test eax, eax
je 0x411d0d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403918
push ebx
mov dword [0x818a94], eax
call edi
push eax
call esi
push 0x403904
push ebx
mov dword [0x818a98], eax
call edi
push eax
call esi
push GetFileAttributesA
push ebx
mov dword [0x818a9c], eax
call edi
push eax
call esi
mov dword [0x818aa4], eax
test eax, eax
je 0x411c65
push 0x4038d0
push ebx
call edi
push eax
call esi
mov dword [0x818aa0], eax
mov eax, dword [0x818aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411cbe
cmp dword [0x818aa4], ecx
je 0x411cbe
push eax
call esi
push dword [GetCompressedFileSizeA]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411cbe
test ebx, ebx
je 0x411cbe
call edi
test eax, eax
je 0x411cb5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411cb5
test byte [ebp - 8], 1
jne 0x411cbe
or dword [ebp + 0x10], 0x200000
jmp 0x411cf1
mov eax, dword [0x818a98]
cmp eax, dword [ebp - 0x18]
je 0x411cf1
push eax
call esi
test eax, eax
je 0x411cf1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411cf1
mov eax, dword [0x818a9c]
cmp eax, dword [ebp - 0x18]
je 0x411cf1
push eax
call esi
test eax, eax
je 0x411cf1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x818a94]
call esi
test eax, eax
je 0x411d0d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411d0f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408811
leave
ret
Function at 0x80e970
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0xb9d820], 0x37
jne 0x80ea08
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404140
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404190
push 0x404208
push 0x404230
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9d824]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81d884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x80ec50
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb9d820]
sub esp, 0x434
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x81d884]
cmp eax, ebx
jbe 0x80ee38
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x80ec86
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0xb9d820], 0x1c
jne 0x80ec9d
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x814700]
mov eax, dword [0x814704]
mov esi, dword [edi]
mov ebp, dword [0x814708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x81470c]
mov edi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x80ecda
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0xb9c7a4], ebx
mov eax, dword [esp + 0x18]
add dword [0xb9c7a4], eax
mov edx, dword [0xb9c7a4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0xb9d820], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x80ed74
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0xb9d820], 0x979
mov dword [0xb9c7a8], 0xff6b3619
mov dword [0xb9c7ac], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x80edb8
push 0
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0xb9d820]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x80edda
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x80ecd8
cmp eax, 0x8d4
jne 0x80edf1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], ecx
cmp dword [0xb9d820], 0x17
jne 0x80ee27
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea edx, [esp + 0x40]
push edx
push 0x404100
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x80ec80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
Function at 0xdd267f
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0xe01c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00de5ed0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0xdd2731
push edi
mov edi, 0xdfb8a4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0xdd26ca
sub eax, edx
sar eax, 1
je 0xdd2730
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [0xdf8234]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00de3af7
push 0xdfb8c0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00de404b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0xdd2730
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00de433e
push dword [ebp - 0x78]
call fcn.00de43d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00de3ae8
add ebp, 0x198
leave
ret

Function at 0xdd274a
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0xe01c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00de5ed0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0xdd2825
push edi
mov edi, 0xdfb7f0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0xdd2799
sub eax, edx
sar eax, 1
je 0xdd2824
cmp dword [0xe02fbc], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0xdd27d6
push esi
push eax
call dword [0xdf8214]
push 0xdfb8c8
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00de3af7
add esp, 0xc
jmp 0xdd27de
push eax
push esi
call dword [0xdf8234]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00de3af7
push 0xdfb8c0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00de404b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0xdd2824
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00de433e
push dword [ebp - 0x78]
call fcn.00de43d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00de3ae8
add ebp, 0x198
leave
ret
Function at 0xdd2ec1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0xe01c20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.00de5ed0
add esp, 0xc
test edi, edi
je 0xdd2f87
and dword [ebp - 0x7c], esi
mov ecx, 0xdfb7a0
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0xdd2f0c
sub eax, esi
sar eax, 1
je 0xdd2f30
push 0xdfb93c
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.00de404b
add esp, 0xc
jmp 0xdd2f64
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [0xdf8234]
push 0xdfb8a4
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00de3af7
push 0xdfb93c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00de404b
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0xdd2f87
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.00de4611
push dword [ebp - 0x7c]
call fcn.00de43d2
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00de3ae8
add ebp, 0x194
leave
ret

Function at 0xdd2f9f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0xdfb8c0
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00de404b
add esp, 0xc
test eax, eax
je 0xdd2fc9
xor eax, eax
jmp 0xdd304c
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00de471d
push dword [ebp - 4]
call fcn.00de493f
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00de471d
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.00de49fc
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00de433e
push dword [ebp - 4]
call fcn.00de43d2
push 0x32
lea ebx, [edi + esi]
call fcn.00dd304f
push 0xdfb93c
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00de404b
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0xdd2fc2
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00de4611
push dword [ebp - 4]
call fcn.00de43d2
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0xdd47e8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00de8380
mov eax, dword [0xe01c20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [0xdf83f4]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0xdd482e
xor eax, eax
jmp 0xdd4876
cmp dword [ebp - 0x78], ebx
jbe 0xdd4865
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0xdd4865
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00de4611
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0xdd4833
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00de43d2
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00de3ae8
add ebp, 0xf90
leave
ret

Function at 0xdd5f92
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0xdd6126
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00de8380
mov eax, dword [0xe01c20]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0xdfb8c0
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00de404b
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0xdd6181
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0xdd6214
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00de471d
push dword [ebp - 0x18]
call fcn.00de493f
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00de471d
lea eax, [ebp - 0x80]
call fcn.00dd5f92
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00de433e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0xdd61ee
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.00dd5fbd
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00de433e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0xdd61c7
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.00dd6056
push dword [ebp - 0x18]
call fcn.00de43d2
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0xdd6173
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00de3ae8
add ebp, 0xff0
leave
ret
Function at 0xdd79b7
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0xdd79c2
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0xdd7a74
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xdfce70]
inc ecx
sub edi, 8
dec esi
jne 0xdd79d9
pop ebx
test edi, edi
je 0xdd7a8d
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0xdfce70]
inc ecx
dec edi
jne 0xdd7a78
pop esi
not eax
pop edi
ret

Function at 0xdd7a92
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0xdfce70]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0xdfce70]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x415f73
Capabilities:
Parse pe header

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

Function at 0x428380
Capabilities:
Parse pe header

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

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x401d50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
inc edi
rcl edx, 0x72
sub esi, 0x83
ror eax, 0xe5
not edi
neg eax
dec eax
rcr edx, 0xba
sbb ebx, 0x54
ror esi, 0xa4
imul edi
sbb eax, 5
imul eax
not edx
and edx, 0x9c
ror edx, 0x44
mov edx, 0x38
rcl esi, 0xd7
inc edi
rol edx, 0x3e
mov esi, 0xbd
sbb esi, 0xc1
add edx, 0xf8
imul eax
bswap edi
add edx, 0x74
dec ebx
neg eax
rol esi, 0xc9
sbb esi, 0x64
add edi, 0xd4
neg esi
rol eax, 0x35
sbb eax, 0xae
imul eax
and esi, 0xd1
and eax, 0x6a
ror eax, 0x34
sub edi, 0x51
inc edi
and edx, 0xee
ror edi, 0xd
rcr edi, 0x92
ror esi, 0x70
dec ebx
sbb edx, 0x96
rol edi, 0x70
dec ebx
and esi, 5
neg ebx
xor ecx, ecx
xor edi, edi
mov edi, 0xf3
rol eax, 0xb6
rcr eax, 0xa8
or eax, 0xe3
rcr edx, 0x88
rol edx, 0xdd
neg eax
mov edi, 0x80
not esi
sub eax, 1
dec ebx
mov eax, 0x29
rol esi, 0x1b
or ebx, 0x6b
sub edx, 0x7a
bswap edi
bswap edx
inc esi
imul esi
sub esi, 0x47
or ebx, 0x1f
bswap esi
mov ebx, 0x3c
sub esi, 0x2e
rcr edx, 0xc0
imul edi
imul ebx
add edx, 0x9a
sbb eax, 0xd9
add edx, 9
mov edx, 0xbb
sub eax, 0xb7
not eax
sbb eax, 0x97
bswap edi
and eax, 0x3e
sub eax, 0xda
add eax, 0x9e
rcr edx, 0x3b
inc esi
imul ebx
inc ebx
neg edi
inc eax
rcr ebx, 0xf9
mov edi, 0xf9
and eax, 0xac
dec esi
ror eax, 0x99
and edi, 0xfe
mov ecx, dword [ebp + 0xc]
ror esi, 0x3a
rol esi, 0x36
rcl edi, 0x81
dec edx
add eax, 0xfb
neg esi
ror ebx, 0x3b
inc eax
bswap eax
or edi, 0x1a
imul eax
ror esi, 0xeb
or edx, 0x41
neg edx
or ebx, 0x49
mov edx, 0x8a
rcl esi, 0x27
dec esi
sub eax, 0xd9
rcr esi, 0xc6
rcr ebx, 0x6d
or ebx, 0xcb
sub edi, 0xd5
not edx
ror esi, 0x68
dec ebx
not edi
not esi
rol ebx, 0xb0
sbb edx, 0x97
not edx
dec esi
neg eax
not eax
add edx, 0x5b
bswap esi
and ebx, 0xff
add esi, 0x75
imul edi
not edx
and eax, 7
neg edi
inc eax
rcr edi, 0xb4
dec edx
add esi, 0xf0
rcl ebx, 0x48
add edx, 0x21
bswap edx
rcl eax, 0x21
mov edi, dword [ebp + 8]
mov ebx, esi
xor ebx, ebx
xor esi, eax
not byte [edi]
mov ebx, esi
mov esi, eax
mov ebx, eax
mov eax, eax
xor esi, ebx
xor ebx, eax
xor eax, esi
xor ebx, ebx
mov ebx, eax
add byte [edi], 0x79
xor ebx, eax
mov esi, ebx
xor ebx, esi
xor eax, eax
mov ebx, eax
xor ebx, eax
xor eax, ebx
xor ebx, ebx
mov esi, ebx
sub byte [edi], 0x30
xor eax, eax
mov esi, ebx
mov eax, esi
xor esi, esi
mov esi, esi
mov ebx, eax
xor esi, ebx
xor ebx, esi
xor ebx, esi
imul byte [edi]
inc edi
loop 0x401f2d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4073d4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44d294]
jne 0x4073de
repz ret
jmp fcn.0040bdb6
Function at 0x40d5bd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a37f
and dword [ebp - 4], 0
cmp dword [0x44e814], 0
mov ebx, eax
jne 0x40d66e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d71f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d71f
push eax
call fcn.0040a30d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44e814], eax
call esi
push eax
call fcn.0040a30d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44e818], eax
call esi
push eax
call fcn.0040a30d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44e81c], eax
call esi
push eax
call fcn.0040a30d
pop ecx
mov dword [0x44e824], eax
test eax, eax
je 0x40d66e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a30d
pop ecx
mov dword [0x44e820], eax
mov eax, dword [0x44e820]
cmp eax, ebx
je 0x40d6c6
cmp dword [0x44e824], ebx
je 0x40d6c6
push eax
call fcn.0040a388
push dword [0x44e824]
mov esi, eax
call fcn.0040a388
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d6c6
test edi, edi
je 0x40d6c6
call esi
test eax, eax
je 0x40d6bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d6bd
test byte [ebp - 0xc], 1
jne 0x40d6c6
or dword [ebp + 0x10], 0x200000
jmp 0x40d6ff
mov eax, dword [0x44e818]
cmp eax, ebx
je 0x40d6ff
push eax
call fcn.0040a388
pop ecx
test eax, eax
je 0x40d6ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d6ff
mov eax, dword [0x44e81c]
cmp eax, ebx
je 0x40d6ff
push eax
call fcn.0040a388
pop ecx
test eax, eax
je 0x40d6ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44e814]
call fcn.0040a388
pop ecx
test eax, eax
je 0x40d71f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d721
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret