joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066a4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ae8
mov eax, dword [ebp - 8]
call fcn.00403ae8
xor eax, eax
push ebp
push 0x40675e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403a44
je 0x406706
push 0x80
mov eax, dword [ebp - 8]
call fcn.00403af8
mov ebx, eax
push ebx
mov eax, dword [0x40a8f0]
mov eax, dword [eax]
call eax
push 0
push ebx
mov eax, dword [ebp - 4]
call fcn.00403af8
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00403af8
push eax
mov eax, dword [0x40a9cc]
mov eax, dword [eax]
call eax
mov edx, dword [0x40aa00]
mov dword [edx], eax
mov eax, dword [0x40aa00]
mov eax, dword [eax]
push eax
mov eax, dword [0x40a8d4]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406765
lea eax, [ebp - 8]
mov edx, 2
call fcn.004037a0
ret

Function at 0x406c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406c8e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004038ac
mov eax, dword [ebp - 8]
call fcn.00403900
inc eax
push eax
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004038ac
mov eax, dword [ebp - 0xc]
call fcn.00403900
inc eax
push eax
push ebx
push edi
push esi
call sub.kernel32.dll_WriteProcessMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c95
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004037a0
ret

Function at 0x406ca0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov ebx, eax
push 0x40
push 0x3000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
push esp
push esi
push ebp
push edi
push ebx
mov eax, dword [0x40a8b8]
mov eax, dword [eax]
call eax
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406cd4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00406ca0
mov esi, eax
mov eax, edi
call fcn.00406bec
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.00406ca0
lea edx, [ebp - 0xc]
push edx
push 0
push esi
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
cmp byte [ebp + 8], 0
je 0x406d3a
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_ReadProcessMemory
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406e88
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x4068fc]
call fcn.00403d14
xor eax, eax
push ebp
push 0x406f9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edi, eax
mov esi, 0x10000000
add esi, 0x10000
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x406f21
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov ebx, eax
test ebx, ebx
jne 0x406f2d
cmp esi, 0x30000000
jbe 0x406ed6
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00407e9c
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x406f81
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x28]
push edx
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x40a8b8]
mov eax, dword [eax]
call eax
push 8
push 0
lea ecx, [ebp - 0x14]
mov edx, 0x406e60
mov eax, dword [ebp - 4]
call fcn.00406cd4
test eax, eax
je 0x406f81
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406fa4
lea eax, [ebp - 0x2c]
mov edx, dword [0x4068fc]
call fcn.00403dd8
ret

Function at 0x40711c
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x40a964]
mov byte [eax], 1
mov eax, dword [0x40a980]
mov dword [eax], 0x94
mov eax, dword [0x40a980]
push eax
call sub.kernel32.dll_GetVersionExA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x407162
mov eax, dword [0x40a980]
cmp dword [eax + 0x10], 2
jne 0x40715a
mov eax, dword [0x40a980]
cmp dword [eax + 4], 5
ja 0x407162
mov eax, dword [0x40a964]
mov byte [eax], 0
ret
Function at 0x407c64
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
test eax, 0x4000000
je 0x407c73
or edx, 0x200
test eax, 0x20000000
je 0x407ca7
test eax, 0x40000000
je 0x407c92
test eax, 0x80000000
je 0x407c8d
or edx, 0x40
jmp 0x407cce
or edx, 0x20
jmp 0x407cce
test eax, 0x80000000
je 0x407ca1
or edx, 0x80
jmp 0x407cce
or edx, 0x10
mov eax, edx
ret
test eax, 0x40000000
je 0x407cbf
test eax, 0x80000000
je 0x407cba
or edx, 4
jmp 0x407cce
or edx, 2
jmp 0x407cce
test eax, 0x80000000
je 0x407ccb
or edx, 8
jmp 0x407cce
or edx, 1
mov eax, edx
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x5cdbe7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.005cdc66
jae 0x5cdbf3
xor ecx, ecx
call fcn.005cdc66
jae 0x5cdc1d
xor eax, eax
call fcn.005cdc66
jae 0x5cdc2e
mov al, 0x10
call fcn.005cdc66
adc al, al
jae 0x5cdc0f
jne 0x5cdc5b
stosb byte es:[edi], al
jmp 0x5cdbf4
call fcn.005cdc72
dec ecx
loop 0x5cdc3a
mov eax, ebp
call fcn.005cdc70
jmp 0x5cdc5c
lodsb al, byte [esi]
shr eax, 1
je 0x5cdc82
adc ecx, 2
mov ebp, eax
jmp 0x5cdc5c
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005cdc70
cmp eax, 0x7d00
jae 0x5cdc5a
cmp eax, 0x500
jae 0x5cdc5b
cmp eax, 0x7f
ja 0x5cdc5c
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5cdbf4
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407fdf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fd70]
jne 0x407fe9
repz ret
jmp fcn.0040c2c2

Function at 0x40a778
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.00404b97
and dword [ebp - 4], 0
cmp dword [0x4347f8], 0
mov ebx, eax
jne 0x40a829
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a8da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a8da
push eax
call fcn.00404b25
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4347f8], eax
call esi
push eax
call fcn.00404b25
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4347fc], eax
call esi
push eax
call fcn.00404b25
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434800], eax
call esi
push eax
call fcn.00404b25
pop ecx
mov dword [0x434808], eax
test eax, eax
je 0x40a829
push 0x42bf28
push edi
call esi
push eax
call fcn.00404b25
pop ecx
mov dword [0x434804], eax
mov eax, dword [0x434804]
cmp eax, ebx
je 0x40a881
cmp dword [0x434808], ebx
je 0x40a881
push eax
call fcn.00404ba0
push dword [0x434808]
mov esi, eax
call fcn.00404ba0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a881
test edi, edi
je 0x40a881
call esi
test eax, eax
je 0x40a878
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a878
test byte [ebp - 0xc], 1
jne 0x40a881
or dword [ebp + 0x10], 0x200000
jmp 0x40a8ba
mov eax, dword [0x4347fc]
cmp eax, ebx
je 0x40a8ba
push eax
call fcn.00404ba0
pop ecx
test eax, eax
je 0x40a8ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a8ba
mov eax, dword [0x434800]
cmp eax, ebx
je 0x40a8ba
push eax
call fcn.00404ba0
pop ecx
test eax, eax
je 0x40a8ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4347f8]
call fcn.00404ba0
pop ecx
test eax, eax
je 0x40a8da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a8dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8de14c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de152
pop ebp
sub ebp, 6
sub ebp, 0x4de14c
jmp 0x8de1b0
jmp 0x8de1b9
mov eax, 0x4de14c
add eax, ebp
add eax, 0x93
mov ecx, 0x62c
mov edx, 0x580f8d6d
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de1d0
jmp 0x8de1e3
pop es
sub eax, 0x6d7d6d05
insd dword es:[edi], dx
add eax, 0x6d41a16d
pop esi
lodsd eax, dword [esi]
cmp eax, 0x4c51f892
sub dword [ebp + 0x3d], ebp
out 0xa0, al
out 0xe4, al
push ecx
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
in al, dx
lodsb al, byte [esi]
xchg ebp, eax
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
outsb dx, byte [esi]
mov al, byte [0x6d6d6bd5]
insd dword es:[edi], dx
xlatb
inc ebp
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
lcall 0x61ec, 0xe6a56e8f
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
outsb dx, byte [esi]
test al, 0x3d
add eax, 0x6d645b6e
add eax, 0x6d29c625
insb byte es:[edi], dx
inc ecx
dec ecx
add eax, 0x6d6d6d6d
test dword [eax + 0x6d], ebp
insd dword es:[edi], dx
insd dword es:[edi], dx
test byte [edi + 0x6d], al
insd dword es:[edi], dx
insd dword es:[edi], dx
cmp al, ah
add dword [ecx + 0x6d], ecx
out 0xe8, al
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
out 0xf8, al
popal
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
out 0xe0, al
jge 0x8de2be
insd dword es:[edi], dx
insd dword es:[edi], dx
lodsb al, byte [esi]
test byte [edi + 0x5c], ch
outsd dx, dword [esi]
out dx, al
scasd eax, dword es:[edi]
imul esp, dword [edx], 0x929299e8
xchg edx, eax
xor byte [edi - 0x1e19929f], ch
dec ecx
imul ebp, dword [ebp + 0x6d], 0x5b6e056d
insd dword es:[edi], dx
add eax, 0x6d29c625
insb byte es:[edi], dx
inc ecx
dec ecx
cmp al, 0x85
push 0x846d6d6d
push edx
outsd dx, dword [esi]
insd dword es:[edi], dx
insd dword es:[edi], dx
cmp byte [ecx], bh
xor byte [edx + 0x18926118], dl
test dword gs:[edi], ebx
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
out 0xd0, al
insd dword es:[edi], dx
insd dword es:[edi], dx
insd dword es:[edi], dx
in al, dx
pushfd
add al, 0x49
push 0xffffffffffffffe7
in al, dx
pushfd
add al, 0x49
push 0xffffffffffffffe7
pop esi
movsb byte es:[edi], byte [esi]
pop esi
mov edi, 0x256885ee
invalid
xchg esi, eax
test dword [edx - 0x17], esp
ja 0x8de331
insd dword es:[edi], dx
insd dword es:[edi], dx
in eax, dx
xchg esi, eax
test byte [edx - 0x17], ah
jl 0x8de33a
insd dword es:[edi], dx
insd dword es:[edi], dx
or ebp, esp
xchg esi, eax
xchg edx, eax
dec eax
invalid
out 0x7b, eax
sub edi, dword [edi - 0x41]
invalid
xchg edx, eax
xchg edx, eax
outsd dx, dword [esi]
mov edi, 0x6d68e862
insd dword es:[edi], dx
insd dword es:[edi], dx
out 0x7b, eax
sub edi, dword [edi - 0x41]
invalid
Function at 0x405590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4055ae
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4055ef
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40e26c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4241e8]
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.004051e5
and dword [ebp - 0x14], 0
cmp dword [0xe5ac1c], 0
mov dword [ebp - 0x18], eax
jne 0x40e31f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e3c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e3c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xe5ac1c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xe5ac20], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xe5ac24], eax
call edi
push eax
call esi
mov dword [0xe5ac2c], eax
test eax, eax
je 0x40e31f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xe5ac28], eax
mov eax, dword [0xe5ac28]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e378
cmp dword [0xe5ac2c], ecx
je 0x40e378
push eax
call esi
push dword [0xe5ac2c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e378
test ebx, ebx
je 0x40e378
call edi
test eax, eax
je 0x40e36f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e36f
test byte [ebp - 8], 1
jne 0x40e378
or dword [ebp + 0x10], 0x200000
jmp 0x40e3ab
mov eax, dword [0xe5ac20]
cmp eax, dword [ebp - 0x18]
je 0x40e3ab
push eax
call esi
test eax, eax
je 0x40e3ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e3ab
mov eax, dword [0xe5ac24]
cmp eax, dword [ebp - 0x18]
je 0x40e3ab
push eax
call esi
test eax, eax
je 0x40e3ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xe5ac1c]
call esi
test eax, eax
je 0x40e3c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e3c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051d6
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x627ce0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17a000]
push edi
jmp 0x627cfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x627d01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627cf0
mov eax, 1
add ebx, ebx
jne 0x627d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x627d24
jne 0x627d43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627d43
dec eax
add ebx, ebx
jne 0x627d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x627d08
add ebx, ebx
jne 0x627d3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x627d95
xor ecx, ecx
sub eax, 3
jb 0x627d5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x627dca
sar eax, 1
mov ebp, eax
jmp 0x627d66
add ebx, ebx
jne 0x627d66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627d34
inc ecx
add ebx, ebx
jne 0x627d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627d34
add ebx, ebx
jne 0x627d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x627d76
jne 0x627d92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x627d76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x627db4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x627da6
jmp 0x627cf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x627db4
add edi, ecx
jmp 0x627cf6
pop esi
mov edi, esi
mov ecx, 0x62d3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x627dd2
cmp byte [edi], 0xe
jne 0x627dd2
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 0x627dd7
lea edi, [esi + 0x21b000]
mov eax, dword [edi]
or eax, eax
je 0x627e4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c0190]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c0384]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x627e04
mov ecx, edi
jns 0x627e33
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 + 0x2c038c]
or eax, eax
je 0x627e49
mov dword [ebx], eax
add ebx, 4
jmp 0x627e21
call dword [esi + 0x2c0388]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x627e80
cmp al, 0xef
ja 0x627e73
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x627e55
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x627e62
mov ebp, dword [esi + 0x2c0390]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x627eb4
sub esp, 0xffffff80
jmp 0x4e2599
Function at 0x401e2e
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xb5c470]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401e6e
cmp dword [ebp - 0x364], 6
jne 0x401e6e
cmp dword [ebp - 0x360], 0
je 0x401e98
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e98
push 0xc00
call eax
test eax, eax
jne 0x401f2d
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401f2d
cmp eax, 0x104
ja 0x401f2d
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401ed8
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x401f2c
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401ef3
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x401ef1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d6ff7
leave
ret