joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ccab0
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor esi, esi
mov edi, 0x53bda0
lea esp, [esp]
xor ecx, ecx
mov edx, edi
mov eax, dword [edx]
test eax, eax
je 0x4ccae0
cmp word [eax + 0x42c], bx
jne 0x4ccae0
cmp dword [eax + 0x428], 0
jne 0x4ccbf8
inc ecx
add edx, 4
cmp ecx, 0x40
jl 0x4ccac4
add edi, 0x100
inc esi
cmp edi, 0x53cda0
jl 0x4ccac0
cmp esi, 0x10
jne 0x4ccb4d
xor esi, esi
mov eax, 0x53bea0
cmp dword [eax - 0x100], 0
je 0x4ccb40
cmp dword [eax], 0
je 0x4ccb35
cmp dword [eax + 0x100], 0
je 0x4ccb38
cmp dword [eax + 0x200], 0
je 0x4ccb3d
add eax, 0x400
add esi, 4
cmp eax, 0x53cea0
jl 0x4ccb04
jmp 0x4ccb40
inc esi
jmp 0x4ccb40
add esi, 2
jmp 0x4ccb40
add esi, 3
cmp esi, 0x10
jne 0x4ccb4d
pop edi
mov eax, pe_nt_image_headers32
pop esi
ret
lea eax, [esi + esi*2]
add eax, eax
add eax, eax
add eax, eax
cmp dword [eax + 0x53b31c], 0
jne 0x4ccb71
push 0x400
lea eax, [eax + 0x53b318]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x474
call fcn.004e4629
mov edi, eax
add esp, 4
test edi, edi
je 0x4ccb98
push 0x474
push 0
push edi
call fcn.004e7d90
add esp, 0xc
mov ecx, edi
jmp 0x4ccb9a
xor ecx, ecx
mov edx, esi
shl edx, 8
mov dword [edx + 0x53bda0], ecx
mov word [ecx + 0x42c], bx
mov eax, dword [edx + 0x53bda0]
mov ecx, dword [0x536714]
mov dword [eax + 0x46c], ecx
mov eax, dword [esi*4 + 0x53cda0]
mov edx, esi
shl edx, 6
add eax, edx
mov ecx, dword [eax*4 + 0x53bda0]
add ecx, 0x470
push ecx
push 1
push esi
push 0x4cc5f0
push 0
push 0
mov dword [0x536c98], 0x4cca30
call fcn.004e48f1
add esp, 0x18
pop edi
xor eax, eax
pop esi
ret
Function at 0x4cea20
Capabilities:
Create process on windows
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str._delete_pnp_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x24], 0
call fcn.004cf1a0
add esp, 0xc
cmp al, 1
jne 0x4ceb70
push 0x103
lea ecx, [ebp - 0x12f]
push 0
push ecx
mov byte [ebp - 0x130], 0
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x130]
push str.pnputil.exe__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
ja 0x4ceaf0
push str._delete_pnp_fail_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xff
lea edx, [ebp - 0x22f]
push 0
push edx
call fcn.004e7d90
mov ecx, 9
mov esi, str.SYSTEMCurrentControlSetServicesSmrf
lea edi, [ebp - 0x230]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
push 0xf003f
push 0
movsw word es:[edi], word [esi]
lea ecx, [ebp - 0x230]
push ecx
push reloc.WS2_32.dll_bind
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ceb5c
mov edx, dword [ebp - 0x234]
push str.PublicName
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._delete_pnp_success_
jmp 0x4ceb75
push str._cant_find_publicName_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4cf6b0
Capabilities:
Create process on windows
Delete file
Get common file path
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x413]
push ebx
push eax
mov byte [ebp - 0x414], bl
call fcn.004e7d90
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x103
lea edx, [ebp - 0x30f]
push ebx
push edx
mov byte [ebp - 0x310], bl
call fcn.004e7d90
push str.Smrf
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x310]
push str._sdrivers_s
push ecx
call fcn.004e5066
push 0x103
lea edx, [ebp - 0x20b]
push ebx
push edx
mov byte [ebp - 0x20c], bl
call fcn.004e7d90
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.004e7d90
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x108]
push str._s.inf
push edx
call fcn.004e5066
add esp, 0x40
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push str.del__F__Q__s
push ecx
call fcn.004e5066
push str._delete_driver.inf_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0x14
push ebx
lea edx, [ebp - 0x20c]
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
push eax
call edi
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x108]
push str._s.sys
push edx
call fcn.004e5066
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push str.del__F__Q__s
push ecx
call fcn.004e5066
push str._delete_driver.sys_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 0x20
push ebx
lea edx, [ebp - 0x20c]
push edx
call esi
lea eax, [ebp - 0x108]
push eax
call edi
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x108]
push str._s.cat
push edx
call fcn.004e5066
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push str.del__F__Q__s
push ecx
call fcn.004e5066
push str._delete_driver.cat_
push str.Driver
xor edx, edx
xor ecx, ecx
call fcn.004a5390
add esp, 0x20
push ebx
lea edx, [ebp - 0x20c]
push edx
call esi
lea eax, [ebp - 0x108]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4cffc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4feb72
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5322a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x52a0b8
mov dword [edi + 0x10], 0x52a0c0
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.004d13f0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
mov dword [edi + ecx + 0x10], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov dword [edi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 4
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push esi
mov dword [edi + edx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.004d1490
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x53e5bc]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d0270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4d02ac
xor eax, eax
jmp 0x4d0431
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4d02d5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4d02d5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x4d0431
cmp dword [edi + 0x54], 0
je 0x4d042e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x4d02fd
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x4d0323
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.004e5f2b
add esp, 8
cmp eax, 0xffffffff
je 0x4d042e
mov eax, ebx
jmp 0x4d0431
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.004d0c60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x4d0340
mov edx, eax
cmp ebx, 0x10
jae 0x4d034c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x4d0426
cmp eax, 1
jg 0x4d03e0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4d038c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x4d03b5
cmp ebx, 0x10
jae 0x4d039b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004e4c4b
add esp, 0x10
cmp esi, eax
jne 0x4d0426
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x4d0419
test esi, esi
jne 0x4d0340
cmp dword [ebp - 0x1c], 0x20
jae 0x4d0426
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004d0cc0
jmp 0x4d0335
cmp eax, 3
jne 0x4d0426
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.004e5f2b
add esp, 8
cmp eax, 0xffffffff
je 0x4d040a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004cfa40
mov eax, esi
jmp 0x4d0431
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.004cfa40
mov eax, esi
jmp 0x4d0431
lea ecx, [ebp - 0x2c]
call fcn.004cfa40
mov eax, dword [ebp + 8]
jmp 0x4d0431
lea ecx, [ebp - 0x2c]
call fcn.004cfa40
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret 4
Function at 0x4d1110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4d1218
cmp byte [edi + 0x49], 0
je 0x4d1218
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4d120c
lea esi, [ebp - 0x2c]
call fcn.004d0c60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4d1183
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4d11ac
dec eax
je 0x4d11b0
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4d1207
jmp 0x4d1213
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4d11c0
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4d11e9
cmp ebx, 0x10
jae 0x4d11cf
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004e4c4b
add esp, 0x10
cmp esi, eax
jne 0x4d1204
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4d1210
test esi, esi
jne 0x4d1177
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004d0cc0
jmp 0x4d1171
lea ecx, [ebp - 0x2c]
call fcn.004cfa40
xor al, al
jmp 0x4d121a
lea ecx, [ebp - 0x2c]
call fcn.004cfa40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4d1490
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe64b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5322a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004f84ed
push 4
mov dword [ebp - 4], 0
call fcn.004e4629
mov edi, eax
add esp, 4
test edi, edi
je 0x4d150c
call fcn.004f83c5
mov dword [edi], eax
call fcn.004f8184
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004f84ae
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4d1502
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004f84d6
jmp 0x4d150e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4dca90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x88]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4dcadc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push esi
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], 0x80
mov word [ebp - 0x84], cx
call fcn.004e7d90
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
push str.svcVersion
push eax
call esi
test eax, eax
je 0x4dcb82
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x90]
push eax
push 0
push str.Version
push ecx
call esi
test eax, eax
je 0x4dcb82
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x84]
push ecx
push str.Internet_Explorer_t_s_t_t_t
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004e3946
mov esp, ebp
pop ebp
ret
Function at 0x4e05f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x4e0603
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x4e067d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004eaf30
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4e0651
sub eax, edi
jmp 0x4e0653
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4e0642
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4e0670
sub eax, edi
jmp 0x4e0672
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4e0661
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4e0732
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x4e06a3
mov ebx, ecx
test ebx, ebx
je 0x4e06f6
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4e06c5
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.004e1120
jmp 0x4e06de
cmp eax, 2
jne 0x4e06e4
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x4e06d7
xor eax, eax
jmp 0x4e06e1
mov edx, ebx
call fcn.004e17c0
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.004eaf30
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4e071e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x4e0732
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4e0600
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e17a0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test ecx, ecx
jne 0x4e17ab
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
pop ebp
jmp fcn.004e17c0
Function at 0x4e3946
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5322a8]
jne 0x4e3950
repz ret
jmp fcn.004e69b5

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4e5cad
call fcn.004e6c23
mov dword [eax], esi
call fcn.004e6c10
push 0x16
pop esi
mov dword [eax], esi
call fcn.004e7334
mov eax, esi
jmp 0x4e5d02
test dword [ebp + 0xc], 0xfffffff9
jne 0x4e5c93
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e5cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e6c36
pop ecx
call fcn.004e6c10
mov eax, dword [eax]
jmp 0x4e5d02
test al, 0x10
jne 0x4e5d00
test al, 1
je 0x4e5d00
test byte [ebp + 0xc], 2
je 0x4e5d00
call fcn.004e6c23
mov dword [eax], 5
call fcn.004e6c10
mov dword [eax], 0xd
jmp 0x4e5cd1
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4e68d0
call fcn.004e6c23
mov dword [eax], esi
call fcn.004e6c10
push 0x16
pop esi
mov dword [eax], esi
call fcn.004e7334
mov eax, esi
jmp 0x4e6925
test dword [ebp + 0xc], 0xfffffff9
jne 0x4e68b6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4e68fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e6c36
pop ecx
call fcn.004e6c10
mov eax, dword [eax]
jmp 0x4e6925
test al, 0x10
jne 0x4e6923
test al, 1
je 0x4e6923
test byte [ebp + 0xc], 2
je 0x4e6923
call fcn.004e6c23
mov dword [eax], 5
call fcn.004e6c10
mov dword [eax], 0xd
jmp 0x4e68f4
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f07dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5322a8]
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.004e9990
and dword [ebp - 0x14], 0
cmp dword [0x5362b0], 0
mov dword [ebp - 0x18], eax
jne 0x4f088f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4f0937
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4f0937
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5362b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5362b4], eax
call edi
push eax
call esi
push 0x50074c
push ebx
mov dword [0x5362b8], eax
call edi
push eax
call esi
mov dword [0x5362c0], eax
test eax, eax
je 0x4f088f
push 0x500734
push ebx
call edi
push eax
call esi
mov dword [0x5362bc], eax
mov eax, dword [0x5362bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4f08e8
cmp dword [0x5362c0], ecx
je 0x4f08e8
push eax
call esi
push dword [0x5362c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4f08e8
test ebx, ebx
je 0x4f08e8
call edi
test eax, eax
je 0x4f08df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4f08df
test byte [ebp - 8], 1
jne 0x4f08e8
or dword [ebp + 0x10], 0x200000
jmp 0x4f091b
mov eax, dword [0x5362b4]
cmp eax, dword [ebp - 0x18]
je 0x4f091b
push eax
call esi
test eax, eax
je 0x4f091b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4f091b
mov eax, dword [0x5362b8]
cmp eax, dword [ebp - 0x18]
je 0x4f091b
push eax
call esi
test eax, eax
je 0x4f091b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5362b0]
call esi
test eax, eax
je 0x4f0937
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4f0939
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
leave
ret