joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x423ea8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esi, eax
mov edi, edx
shl esi, 0xa
mov ecx, section..ndata
mov dword [ebp - 4], ebx
shl edi, 0xa
add esi, ecx
add edi, ecx
lea ecx, [ebp - 0x24]
mov dword [0x409b68], ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffffe
cmp ecx, 0x41
ja 0x40288b
jmp dword [ecx*4 + 0x40289d]
add byte [edx], cl
sbb eax, dword [eax]
add byte [edx - 0x53fff1a2], bl
pop es
add byte [eax], al
sbb eax, 0x732003e
add byte [esi], ah
sbb eax, 0x732003e
add byte [eax], al
sbb dword [ebp + 0xa], ecx
add byte [eax], dl
sbb eax, dword [eax]
add byte [eax], ch
sbb eax, 0x1a63003e
add byte [eax], al
cmpsd dword [esi], dword es:[edi]
scasb al, byte es:[edi]
sbb dword [eax], eax
sub eax, 0x2a000002
sbb eax, 0x1e0003e
add byte [eax], al
add al, 0x9f
push es
add byte [ebp], ah
add byte [edx], ch
sbb eax, 0x22bb003e
add byte [eax], al
push ss
outsb dx, byte [esi]
or eax, dword [eax]
push eax
adc dword [eax], eax
add byte [esi], ch
sbb eax, 0x1033003e
add byte [eax], al
insb byte es:[edi], dx
in al, 5
add byte [edx + 0x28], cl
add byte [eax], al
xor byte [0x2825003e], bl
add byte [eax], al
jbe 0x40287f
adc dword [eax], eax
inc ecx
or byte [eax], al
add byte [ebx], dh
sbb eax, 0x6a4003e
add byte [eax], al
call 0x7140430c
add al, byte [eax]
add byte [ebx + 0x25b003e], dh
add byte [eax], al
and eax, dword [edx + 0xa5f000e]
add byte [eax], al
xor al, 0x1d
add byte ds:[eax + 0x3000008], dh
out dx, al
push ss
add byte [edi + 4], cl
add byte [eax], al
xor eax, 0x51003e1d
add eax, dword [eax]
add bh, cl
in eax, dx
or eax, dword [eax]
mov eax, dword [esi]
add byte [eax], al
xor eax, 0x76003e1d
push es
add byte [eax], al
loop 0x4028c2
adc byte [eax], al
das
or al, byte [eax]
add byte [esi], dh
sbb eax, 0x971003e
add byte [eax], al
push cs
sub ecx, dword [esi]
add byte [esi + ecx], ah
add byte [eax], al
aaa
sbb eax, 0xd35003e
add byte [eax], al
inc edi
xor edx, dword [eax + eax]
out 5, al
add byte [eax], al
cmp dword [0x59f003e], ebx
add byte [eax], al
aad 0xba
add dword [eax], eax
dec esp
add byte [eax], al
cmp ebx, dword [0x4b78003e]
add byte [eax], al
out dx, eax
aaa
or al, byte [eax]
mov word [eax + eax], ss
add byte [0xe9003e1d], bh
adc al, byte [eax]
add dh, ah
ficom dword [edi]
add byte [ebx + eax], cl
add byte [eax], al
aas
sbb eax, 0x2c9003e
add byte [eax], al
jae 0x402a13
invalid
add byte [edx], ch
pop ds
Function at 0x401030
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x401105
push esi
push edi
mov ecx, dword [ebp - 4]
mov edi, ecx
and edi, 0x80000003
jns 0x401059
dec edi
or edi, 0xfffffffc
inc edi
mov edx, dword [ebp + 8]
movsx cx, byte [ecx + edx]
movzx esi, cx
lea ecx, [esi - 0x41]
xor edx, edx
cmp cx, 0x19
ja 0x401074
lea edx, [esi - 0x41]
jmp 0x4010a2
lea ecx, [esi - 0x61]
cmp cx, 0x19
ja 0x401082
lea edx, [esi - 0x47]
jmp 0x4010a2
lea ecx, [esi - 0x30]
cmp cx, 9
ja 0x401090
lea edx, [esi + 4]
jmp 0x4010a2
cmp esi, 0x2b
jne 0x40109a
push 0x3e
pop edx
jmp 0x4010a7
cmp esi, 0x2f
jne 0x4010a2
push 0x3f
pop edx
cmp esi, 0x3d
je 0x4010b5
push 3
pop ecx
sub ecx, edi
imul ecx, ecx, 6
shl edx, cl
or ebx, edx
jmp 0x4010b6
dec edi
cmp edi, 3
je 0x4010c0
cmp esi, 0x3d
jne 0x4010f4
mov ecx, dword [ebp + 0x10]
mov edx, ebx
shr edx, 0x10
mov byte [eax + ecx], dl
inc eax
cmp esi, 0x3d
jne 0x4010d6
cmp edi, 1
jle 0x4010ed
mov edx, ebx
shr edx, 8
mov byte [eax + ecx], dl
inc eax
cmp esi, 0x3d
jne 0x4010e9
cmp edi, 2
jle 0x4010ed
mov byte [eax + ecx], bl
inc eax
xor ebx, ebx
cmp esi, 0x3d
je 0x401103
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jl 0x401047
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4015a3
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x416324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x2f
lea eax, [ebp - 0x33]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x34], 0
call fcn.00405d30
push 0x30
pop edi
push edi
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00405d30
lea eax, [ebp - 0x34]
push ebx
push eax
mov ecx, 0x413458
call fcn.004014f0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
add esp, 0x20
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x34]
mov dl, byte [esi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, edi
jl 0x4015f7
mov dword [ebp - 0x3c], ebx
xor edi, edi
lea eax, [ebp - 0x33]
movsx edx, byte [eax + 4]
movsx ecx, byte [eax - 1]
movsx esi, byte [eax + 1]
lea ecx, [edx + ecx*2]
movsx edx, byte [eax]
lea edx, [esi + edx*2]
movsx esi, byte [eax + 2]
lea edx, [esi + edx*2]
movsx esi, byte [eax + 3]
add ecx, edi
xor ebx, ebx
lea edx, [esi + edx*2]
add ecx, ecx
lea esi, [edx + ecx*8 + 0x413520]
mov dword [ebp - 0x38], 3
mov cl, byte [ebp - 0x38]
mov dl, byte [esi]
sar dl, cl
mov ecx, dword [ebp - 0x3c]
and dl, 1
mov byte [ebx + ecx], dl
inc ebx
dec dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0xffffffff
jg 0x401644
add dword [ebp - 0x3c], 4
add edi, 4
add eax, 6
cmp edi, 0x20
jl 0x40160d
push dword [ebp - 0x40]
mov ecx, 0x413488
push dword [ebp - 0x40]
push 0x20
pop edi
call fcn.004014f0
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056e1
leave
ret
Function at 0x401691
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x416324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
lea eax, [ebp - 0x43]
push ebx
push eax
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x44], bl
call fcn.00405d30
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.00401420
lea eax, [ebp - 0x44]
push eax
push eax
push 0x38
pop edi
mov ecx, str.91__
call fcn.004014f0
add esp, 0x1c
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x48]
lea ebx, [ebx + 0x413510]
movsx edi, byte [ebx]
push 0x1c
lea esi, [ebp - 0x44]
call fcn.00401452
movsx edi, byte [ebx]
push 0x1c
lea esi, [ebp - 0x28]
call fcn.00401452
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x4c]
mov ecx, 0x4134e0
push 0x30
pop edi
call fcn.004014f0
add dword [ebp - 0x4c], edi
add esp, 0x10
inc dword [ebp - 0x48]
cmp dword [ebp - 0x48], 0x10
jl 0x4016dc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056e1
leave
ret
Function at 0x401731
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x416324]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x43]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x44], bl
call fcn.00405d30
push 7
xor eax, eax
pop ecx
push dword [ebp + 0xc]
mov byte [ebp - 0x64], bl
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x44]
push eax
call fcn.00401420
lea eax, [ebp - 0x44]
push eax
push eax
push 0x40
pop edi
mov ecx, 0x4133d8
call fcn.004014f0
add esp, 0x1c
push 0x20
pop edi
cmp dword [ebp + 0x10], ebx
jne 0x4017e1
mov dword [ebp - 0x68], 0x10
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00405830
push esi
lea ecx, [ebp - 0x24]
call fcn.004015a3
add esp, 0x10
xor eax, eax
mov cl, byte [ebp + eax - 0x44]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, edi
jl 0x4017b9
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00405830
add esp, 0xc
add esi, 0x30
dec dword [ebp - 0x68]
jne 0x40179d
jmp 0x401833
mov dword [ebp - 0x68], 0xf
add esi, 0x2d0
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00405830
push esi
lea ecx, [ebp - 0x24]
call fcn.004015a3
add esp, 0x10
xor eax, eax
mov cl, byte [ebp + eax - 0x44]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, edi
jl 0x40180a
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00405830
add esp, 0xc
dec dword [ebp - 0x68]
sub esi, 0x30
cmp dword [ebp - 0x68], ebx
jge 0x4017ee
push 0x40
lea esi, [ebp - 0x44]
call fcn.00401452
mov eax, esi
push eax
push eax
push 0x40
pop edi
mov ecx, 0x413418
call fcn.004014f0
push 8
push ebx
push dword [ebp - 0x6c]
call fcn.00405d30
add esp, 0x18
xor esi, esi
or edi, 0xffffffff
mov dl, byte [ebp + esi - 0x44]
mov ecx, edi
and ecx, 7
mov eax, esi
sar eax, 3
add eax, dword [ebp - 0x6c]
shl dl, cl
or byte [eax], dl
inc esi
dec edi
cmp edi, 0xffffffbf
jg 0x401861
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056e1
leave
ret
Function at 0x401d15
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x416324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor ecx, ecx
push edi
inc ecx
xor edi, edi
call fcn.00404f16
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x210], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test eax, eax
je 0x401d55
xor eax, eax
jmp 0x401e0b
cmp dword [ebp - 0x210], edi
je 0x401e09
push ebx
mov ebx, 0x14b7
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x214], eax
cmp eax, edi
je 0x401e05
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00405d30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
push eax
lea edi, [ebp - 0x20c]
call fcn.00401fa4
push 2
pop ecx
call fcn.00404f16
push eax
lea esi, [ebp - 0x218]
call fcn.00401ff7
test eax, eax
js 0x401dfa
push dword [ebp - 0x214]
push ebx
push 0x111
push dword [ebp - 0x210]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x218]
call fcn.0040204d
xor edi, edi
inc edi
pop ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004056e1
leave
ret

Function at 0x401ec6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x416324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x214], esi
test esi, esi
je 0x401f7a
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00405d30
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x210]
push eax
lea edi, [ebp - 0x20c]
call fcn.00401fa4
push 4
pop ecx
call fcn.00404f16
push eax
lea esi, [ebp - 0x210]
call fcn.00401ff7
pop edi
test eax, eax
js 0x401f4e
mov dword [ebx + 0x40], 1
push 5
pop ecx
call fcn.00404f16
push eax
lea esi, [ebp - 0x210]
call fcn.00401ff7
test eax, eax
jne 0x401f6f
mov eax, dword [ebp - 0x214]
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0x210]
call fcn.0040204d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
pop esi
test eax, eax
je 0x401f89
xor eax, eax
jmp 0x401f98
xor eax, eax
cmp dword [ebx + 0x40], eax
je 0x401f95
cmp dword [ebx + 0x3c], eax
jne 0x401f98
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004056e1
leave
ret
Function at 0x4023b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40240f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402401
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4023fd
cmp edi, eax
jae 0x402401
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4023ef
cmp edi, eax
jb 0x402405
xor eax, eax
jmp 0x40240e
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x403726
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x884
mov eax, dword [0x416324]
xor eax, esp
mov dword [esp + 0x880], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x403768
push esi
mov edi, 0x4137d4
call fcn.00401fa4
mov eax, esi
jmp 0x403823
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x403756
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x1c], ebx
mov edi, 0x800
push ebx
lea eax, [esp + 0x14]
push eax
push edi
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4037de
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x1c], ecx
lea eax, [esp + 0x88]
push eax
lea esi, [esp + 0x24]
call fcn.00403538
pop ecx
cmp dword [esp + 0x10], edi
jae 0x4037b9
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004035d0
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x1c]
call fcn.0040367d
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [esp + 0x88c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004056e1
mov esp, ebp
pop ebp
ret

Function at 0x404e01
Capabilities:
Get system information on windows
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x416324]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 8
xor eax, eax
and dword [ebp - 0x13c], eax
and dword [0x417e90], eax
and dword [0x417e94], eax
pop ecx
push str.GetNativeSystemInfo
lea edi, [ebp - 0x138]
push str.kernel32.dll
mov word [0x417e8c], ax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
test eax, eax
je 0x404e61
lea ecx, [ebp - 0x13c]
push ecx
call eax
jmp 0x404e6e
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x13c]
push 0x110
mov word [0x417e8c], ax
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00405d30
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
mov dword [0x417e90], eax
mov eax, dword [ebp - 0x110]
mov dword [0x417e94], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 4]
mov word [0x417e98], ax
xor ecx, ebp
mov eax, 0x417e8c
call fcn.004056e1
leave
ret
Function at 0x404fea
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push 0x2c
mov eax, 0x40fe6a
call fcn.0040f01e
mov ebx, ecx
mov dword [ebp - 0x14], ebx
lea edi, [ebx + 0x24]
mov eax, dword [edi]
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp eax, esi
je 0x405123
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x405123
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push dword [ebx + 0x30]
lea eax, [ebp - 0x18]
push str.StopThread__s
call fcn.0040524e
mov eax, dword [ebx + 0x28]
pop ecx
pop ecx
cmp eax, esi
je 0x40505e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp + 0xc], esi
je 0x405151
cmp dword [ebp + 8], 0xffffffff
jne 0x4050aa
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x405096
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x40
push 0xffffffffffffffff
push esi
push edi
push 1
call ebx
mov dword [ebp + 0xc], eax
cmp eax, 1
je 0x405075
jmp 0x405102
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x4050ec
push esi
push esi
push esi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp - 0x10]
cmp dword [ebp + 8], ecx
jbe 0x405102
sub dword [ebp + 8], ecx
push 0x40
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push esi
push edi
push 1
call ebx
mov dword [ebp + 0xc], eax
cmp eax, 1
je 0x4050b8
cmp dword [ebp + 0xc], esi
je 0x405118
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.0040204d
mov eax, dword [edi]
cmp eax, esi
je 0x405132
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], esi
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x2c], esi
cmp eax, esi
je 0x405146
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x28], esi
mov eax, dword [ebp - 0x1c]
call fcn.0040f0bd
ret 8
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x40511b
cmp eax, esi
je 0x40511b
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40511b

Function at 0x4056e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416324]
jne 0x4056eb
repz ret
jmp fcn.004078eb
Function at 0x40d515
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416324]
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.00409898
and dword [ebp - 0x14], 0
cmp dword [0x417e68], 0
mov dword [ebp - 0x18], eax
jne 0x40d5c8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d670
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40d670
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x417e68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x417e6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x417e70], eax
call edi
push eax
call esi
mov dword [0x417e78], eax
test eax, eax
je 0x40d5c8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x417e74], eax
mov eax, dword [0x417e74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d621
cmp dword [0x417e78], ecx
je 0x40d621
push eax
call esi
push dword [0x417e78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d621
test ebx, ebx
je 0x40d621
call edi
test eax, eax
je 0x40d618
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d618
test byte [ebp - 8], 1
jne 0x40d621
or dword [ebp + 0x10], 0x200000
jmp 0x40d654
mov eax, dword [0x417e6c]
cmp eax, dword [ebp - 0x18]
je 0x40d654
push eax
call esi
test eax, eax
je 0x40d654
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d654
mov eax, dword [0x417e70]
cmp eax, dword [ebp - 0x18]
je 0x40d654
push eax
call esi
test eax, eax
je 0x40d654
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x417e68]
call esi
test eax, eax
je 0x40d670
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d672
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056e1
leave
ret
Function at 0x4df970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x6ea000
lea edi, [esi - 0x89000]
push edi
jmp 0x4df98a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4df991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df980
mov eax, 1
add ebx, ebx
jne 0x4df9a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4df9b4
jne 0x4df9d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df9d3
dec eax
add ebx, ebx
jne 0x4df9c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4df998
add ebx, ebx
jne 0x4df9cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dfa25
xor ecx, ecx
sub eax, 3
jb 0x4df9eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dfa5a
sar eax, 1
mov ebp, eax
jmp 0x4df9f6
add ebx, ebx
jne 0x4df9f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df9c4
inc ecx
add ebx, ebx
jne 0x4dfa04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4df9c4
add ebx, ebx
jne 0x4dfa11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dfa06
jne 0x4dfa22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dfa06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dfa44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dfa36
jmp 0x4df986
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dfa44
add edi, ecx
jmp 0x4df986
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dfa62
cmp byte [edi], 0x11
jne 0x4dfa62
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 al, bl
loop 0x4dfa67
lea edi, [esi + 0xd8000]
mov eax, dword [edi]
or eax, eax
je 0x4dfadf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe5f2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe60a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dfa94
mov ecx, edi
jns 0x4dfac3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe60ac]
or eax, eax
je 0x4dfad9
mov dword [ebx], eax
add ebx, 4
jmp 0x4dfab1
call dword [esi + 0xe60bc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4dfb10
cmp al, 0xef
ja 0x4dfb03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4dfae5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4dfaf2
mov ebp, dword [esi + 0xe60b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4dfb44
sub esp, 0xffffff80
jmp 0x427f4a