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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x291a9e1
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x291a9cf
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x2935cfe
Capabilities:
Parse pe header

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

Function at 0x294d1f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x294d21d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x294d21d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x436570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
jmp 0x43658a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436580
mov eax, 1
add ebx, ebx
jne 0x4365a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436598
jne 0x4365b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436598
xor ecx, ecx
sub eax, 3
jb 0x4365c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43663a
mov ebp, eax
add ebx, ebx
jne 0x4365d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4365e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x436604
inc ecx
add ebx, ebx
jne 0x4365f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4365e5
jne 0x436601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4365e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x436624
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x436615
jmp 0x436586
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x436624
add edi, ecx
jmp 0x436586
pop esi
mov edi, esi
mov ecx, 0xe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436642
cmp byte [edi], 0xe
jne 0x436642
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 0x436647
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x4366bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37390]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x373cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x436674
mov ecx, edi
jns 0x4366a3
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 + 0x373d4]
or eax, eax
je 0x4366b9
mov dword [ebx], eax
add ebx, 4
jmp 0x436691
call dword [esi + 0x373d0]
mov ebp, dword [esi + 0x373d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x4366f3
sub esp, 0xffffff80
jmp 0x4011f0
Function at 0x7813480f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
xor ebx, ebx
push ebx
push ebx
mov ebp, str.__MSVCRT_HEAP_SELECT
push ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x78134961
push esi
push ebx
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x7813495f
push esi
push ebx
push ebp
call edi
test eax, eax
mov ebp, dword [sym.imp.kernel32.dll_HeapFree]
jbe 0x78134953
cmp eax, esi
ja 0x78134953
cmp byte [ebx], 0
mov ecx, ebx
je 0x78134889
mov al, byte [ecx]
cmp al, 0x61
jl 0x78134883
cmp al, 0x7a
jg 0x78134883
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78134875
push 0x16
push ebx
push str.__GLOBAL_HEAP_SELECTED
call sym.MSVCR80.dll__fgetwc_nolock
add esp, 0xc
test eax, eax
jne 0x781348a1
mov edi, ebx
jmp 0x781348fc
push 0x105
push 8
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x78134953
push 3
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x781348e5
mov al, byte [ecx]
cmp al, 0x61
jl 0x781348df
cmp al, 0x7a
jg 0x781348df
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x781348d1
push esi
push ebx
call sym.MSVCR80.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
test edi, edi
je 0x78134953
push 0x2c
push edi
call sym.MSVCR80.dll_strchr
test eax, eax
pop ecx
pop ecx
je 0x78134953
inc eax
cmp byte [eax], 0x20
je 0x7813490e
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x78134953
cmp cl, 0x39
jg 0x78134934
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7813491d
cmp esi, 2
je 0x78134943
cmp esi, 3
je 0x78134943
cmp esi, 1
jne 0x78134953
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
mov eax, esi
jmp 0x781349c1
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call ebp
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
call sym.MSVCR80.dll__get_osplatform
test eax, eax
pop ecx
je 0x7813497d
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call sym.MSVCR80.dll__get_winmajor
test eax, eax
pop ecx
je 0x78134999
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.MSVCR80.dll__invoke_watson
add esp, 0x14
cmp dword [esp + 0x10], 2
jne 0x781349ac
cmp dword [esp + 0x14], 5
jb 0x781349ac
xor eax, eax
inc eax
jmp 0x781349c1
lea eax, [esp + 0x18]
push eax
call fcn.781347e2
cmp byte [esp + 0x1c], 6
pop ecx
sbb eax, eax
add eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x78138894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.MSVCR80.dll__invalid_parameter
Function at 0x78139847
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x781c19c8]
jne 0x78139851
repz ret
jmp sym.MSVCR80.dll___report_gsfailure

Function at 0x7815472c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154759
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__fgetwc_nolock
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78154735
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154788
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x781547af
test al, 1
je 0x781547af
test byte [esp + 0xc], 2
je 0x781547af
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x7815477f
xor eax, eax
pop esi
ret

Function at 0x78154a51
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78154a7e
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__fgetwc_nolock
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x78154a9c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78154a79
test byte [esp + 0xc], 0x80
je 0x78154aa8
and eax, 0xfffffffe
jmp 0x78154aab
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x78154a8d
xor eax, eax
pop esi
ret

Function at 0x78155c9d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155cca
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__fgetwc_nolock
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x78155ca6
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155cf9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
call sym.MSVCR80.dll__errno
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x78155d20
test al, 1
je 0x78155d20
test byte [esp + 0xc], 2
je 0x78155d20
call sym.MSVCR80.dll___doserrno
mov dword [eax], 5
call sym.MSVCR80.dll__errno
mov dword [eax], 0xd
jmp 0x78155cf0
xor eax, eax
pop esi
ret
Function at 0x78155e6a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x78155e97
call sym.MSVCR80.dll___doserrno
mov dword [eax], esi
call sym.MSVCR80.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR80.dll__fgetwc_nolock
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78155eb5
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR80.dll__dosmaperr
pop ecx
jmp 0x78155e92
test byte [esp + 0xc], 0x80
je 0x78155ec1
and eax, 0xfffffffe
jmp 0x78155ec4
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x78155ea6
xor eax, eax
pop esi
ret
Function at 0x10048e98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10048ea7
pop dword [ebp - 0x34]
mov eax, 0x10048ea7
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x4b59e26e
add dword [ebp - 0x44], 0x2f862dd
mov dword [ebp - 0x40], 0x5ee6f103
add dword [ebp - 0x40], 0xd34c5b42
mov dword [ebp - 0x3c], 0x1eefc8b1
sub dword [ebp - 0x3c], 0xd2a38483
mov dword [ebp - 0x38], 0x8ce959e4
add dword [ebp - 0x38], 0x7316a61c
lea eax, [ebp - 0x44]
push eax
mov eax, 0xd5f3f01
sub eax, 0xfd593ef1
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xe1ad7378
sub dword [ebp - 0x44], 0x6d3b0a22
mov dword [ebp - 0x40], 0x2a201951
sub dword [ebp - 0x40], 0xe8b3b7dc
mov dword [ebp - 0x3c], 0x77c09447
add dword [ebp - 0x3c], 0xebaed825
mov dword [ebp - 0x38], 0x40bb7083
add dword [ebp - 0x38], 0xbf448f7d
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x9af49efa
add eax, 0x7511611a
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x575e0
push 0
call eax
mov ecx, 0x4e2a
xor edx, edx
add edx, eax
mov esi, 0x67381fd3
sub esi, 0x572f63d3
add esi, dword [ebp - 0x34]
mov ebx, 0x590efaa6
sub ebx, 0x58f9c679
mov edi, dword [esi]
sub dword [ebp - 0x2c], 0xf6ec6bb8
xor edi, ebx
sub dword [ebp - 0x10], edi
mov dword [edx], edi
add dword [ebp - 0x20], edx
add edx, 4
add esi, 4
loop 0x10048fc0
add eax, 0x9fab2a94
add eax, 0x605600e7
mov ebx, eax
add eax, 0xaea2b55b
add eax, 0x515d4aaa
mov ecx, 0x917a7276
add ecx, 0x7e858d8a
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1000b85f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000b86e
pop dword [ebp - 0x18]
mov eax, 0xbf60de45
sub eax, 0xaf6025d7
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x24c65462
sub dword [ebp - 0x28], 0xd6740f17
mov dword [ebp - 0x24], 0x77e008bc
add dword [ebp - 0x24], 0xba534389
mov dword [ebp - 0x20], 0xedcd0fb1
add dword [ebp - 0x20], 0x5e7f347d
mov dword [ebp - 0x1c], 0x7c8e7872
add dword [ebp - 0x1c], 0x8371878e
lea eax, [ebp - 0x28]
push eax
mov eax, 0xeccf8c45
sub eax, 0xdccdec3d
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x50cdd536
sub dword [ebp - 0x28], 0xdc5b6be0
mov dword [ebp - 0x24], 0xc9e33188
add dword [ebp - 0x24], 0x77892fed
mov dword [ebp - 0x20], 0x77822f10
add dword [ebp - 0x20], 0xebed3d5c
mov dword [ebp - 0x1c], 0x6726cb93
sub dword [ebp - 0x1c], 0x6726cb93
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x37c4d
push 0
call eax
mov ecx, 0xfd97c7b
add ecx, 0xf026c177
mov edx, eax
mov esi, 0x2bbb751a
add esi, 0xe446d4e6
add esi, dword [ebp - 0x18]
mov ebx, 0xa0dd4abb
add dword [ebp - 0x14], edx
mov edi, dword [esi]
xor dword [ebp - 0x14], 0x8a1c492c
xor edi, ebx
sub dword [ebp - 0x14], edi
mov dword [edx], edi
add dword [ebp - 0xc], 0xb79c9dd6
add edx, 0x13e35ba
add edx, 0xfec1ca4a
add esi, 4
loop 0x1000b985
add eax, 0xea9b
mov ebx, eax
add eax, 0x40e09a9c
add eax, 0xbf1f6569
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401de8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4072d4
cmp dword [edi], ebx
je 0x401e79
push str._mozilla.org_observer_service_1
mov edx, 0x4079a4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.0040560c
mov eax, dword [ebp - 4]
test eax, eax
je 0x401e59
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change2
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.004056bb
mov eax, dword [ebp - 4]
test eax, eax
je 0x401e79
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x401eb0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x401eb0
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00404c8b
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.0040537f
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x401ecc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x401ed9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x401ee5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x401ef5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
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 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e07c]
jne 0x401617
repz ret
jmp fcn.00401fa0

Function at 0x406bcc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48e07c]
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.0040454b
and dword [ebp - 0x14], 0
cmp dword [0x490e78], 0
mov dword [ebp - 0x18], eax
jne 0x406c7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406d27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406d27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x490e78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x490e7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x490e80], eax
call edi
push eax
call esi
mov dword [0x490e88], eax
test eax, eax
je 0x406c7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x490e84], eax
mov eax, dword [0x490e84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406cd8
cmp dword [0x490e88], ecx
je 0x406cd8
push eax
call esi
push dword [0x490e88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406cd8
test ebx, ebx
je 0x406cd8
call edi
test eax, eax
je 0x406ccf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406ccf
test byte [ebp - 8], 1
jne 0x406cd8
or dword [ebp + 0x10], 0x200000
jmp 0x406d0b
mov eax, dword [0x490e7c]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406d0b
mov eax, dword [0x490e80]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x490e78]
call esi
test eax, eax
je 0x406d27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406d29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x1003148b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1003149a
pop dword [ebp - 0x14]
mov eax, 0x7c995f55
add eax, 0x9369b545
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x16d6350f
add dword [ebp - 0x24], 0x377c103c
mov dword [ebp - 0x20], 0x556f7b2b
add dword [ebp - 0x20], 0xdcc3d11a
mov dword [ebp - 0x1c], 0x6e88d8d8
add dword [ebp - 0x1c], 0xddc36b56
mov dword [ebp - 0x18], 0x23a544d
add dword [ebp - 0x18], 0xfdc5abb3
lea eax, [ebp - 0x24]
push eax
mov eax, 0x424202cb
add eax, 0xcdc3be41
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x73e9b8c5
sub dword [ebp - 0x24], 0xff774f6f
mov dword [ebp - 0x20], 0x711ab859
add dword [ebp - 0x20], 0xd051a91c
mov dword [ebp - 0x1c], 0xa8dd3c00
sub dword [ebp - 0x1c], 0x456dcf94
mov dword [ebp - 0x18], 0xe0708620
sub dword [ebp - 0x18], 0xe0708620
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xe5d4c6ab
sub eax, 0xd5cf066b
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x585f9
push 0
call eax
mov ecx, 0x4207
xor esi, esi
add esi, eax
mov edx, 0x1006ca00
add edx, dword [ebp - 0x14]
mov ebx, 0x294d22db
mov edi, dword [edx]
add dword [ebp - 0xc], edi
xor edi, ebx
xor dword [ebp - 8], ecx
mov dword [esi], edi
xor dword [ebp - 8], 0x2e99002e
add esi, 4
add edx, 4
loop 0x100315ac
add eax, 0xb74a1488
add eax, 0x48b6e667
mov ebx, eax
add eax, 0xa257ca36
add eax, 0x5da835cf
mov ecx, 0x10000000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x42cf20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x42cf3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42cf41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42cf30
mov eax, 1
add ebx, ebx
jne 0x42cf53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42cf48
jne 0x42cf64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42cf48
xor ecx, ecx
sub eax, 3
jb 0x42cf78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42cfea
mov ebp, eax
add ebx, ebx
jne 0x42cf83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42cf90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42cfb4
inc ecx
add ebx, ebx
jne 0x42cfa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42cf95
jne 0x42cfb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42cf95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42cfd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42cfc5
jmp 0x42cf36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42cfd4
add edi, ecx
jmp 0x42cf36
pop esi
mov edi, esi
mov ecx, 0x41e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42cff2
cmp byte [edi], 1
jne 0x42cff2
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 0x42cff7
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42d06f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d6b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d774]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42d024
mov ecx, edi
jns 0x42d053
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 + 0x2d77c]
or eax, eax
je 0x42d069
mov dword [ebx], eax
add ebx, 4
jmp 0x42d041
call dword [esi + 0x2d778]
mov ebp, dword [esi + 0x2d780]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x42d0a3
sub esp, 0xffffff80
jmp 0x40a96c