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

Disassembly:
mov eax, 0x88
call fcn.004f4f90
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x4804c5
cmp ebx, dword [esi]
je 0x4804bc
test edi, edi
je 0x4804a2
cmp dword [esp + 0xa0], eax
jge 0x4804bc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004f4b51
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x4804cb
mov ebx, dword [esi]
test ebx, ebx
je 0x4804a2
test edi, edi
push ebp
je 0x48059d
push ebx
call fcn.0049b2f0
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x4804fb
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00484ce0
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x480555
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00484180
add esp, 0xc
test eax, eax
je 0x480658
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.00484330
add esp, 0xc
test eax, eax
je 0x480658
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00484340
add esp, 0xc
test eax, eax
je 0x480658
jmp 0x48057a
cmp eax, 0x80
ja 0x480658
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004f0e70
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4805a5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004ef000
add esp, 0xc
jmp 0x4805a5
test eax, eax
je 0x480644
xor eax, eax
jmp 0x4805b0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x4805b0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00484180
add esp, 0xc
test eax, eax
je 0x480658
push ebx
call fcn.0049b2f0
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00484330
add esp, 0x10
test eax, eax
je 0x480658
xor eax, eax
jmp 0x480600
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x480600
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00484180
add esp, 0xc
test eax, eax
je 0x480658
push ebx
call fcn.0049b2f0
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00484330
add esp, 0x10
test eax, eax
je 0x480658
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.004844a0
add esp, 8
test eax, eax
jne 0x48065c
xor eax, eax
jmp 0x480661
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f4b51
add esp, 0x88
ret
Function at 0x484ba0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004f4f90
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x484c27
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x484c27
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004f642d
add esp, 0x10
test eax, eax
jge 0x484bfd
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4b51
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004f642d
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x484cb5
call fcn.00484a60
test eax, eax
jle 0x484cb5
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4b51
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004f4b51
add esp, 0x108
ret
Function at 0x4d67d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4d67e9
mov esi, edi
mov edi, eax
jmp 0x4d67eb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4d67fb
mov eax, ebx
jmp 0x4d6805
push eax
push ebx
call fcn.0048fda0
add esp, 8
test eax, eax
jne 0x4d680d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4d682b
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4d6814
cmp eax, dword [esi + 4]
jge 0x4d6842
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4d6830
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4d6865
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4d6862
sub eax, 1
test eax, eax
jg 0x4d6852
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4ec0b4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x55709c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004ebff3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ef000
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4ec103
cmp dword [ebp - 0x1c], 5
jb 0x4ec11b
jmp 0x4ec117
cmp dword [ebp - 0x10], 1
jne 0x4ec11b
cmp dword [ebp - 0x1c], 4
ja 0x4ec117
jne 0x4ec11b
cmp dword [ebp - 0x18], 0
jbe 0x4ec11b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x538b04
call fcn.00407b9f
test eax, eax
jge 0x4ec13c
mov byte [0x55eb58], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f4b51
add ebp, 0x78
leave
ret
Function at 0x4ec3bb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x55db30], 0
push esi
jne 0x4ec32e
call fcn.004ec259
test eax, eax
je 0x4ec371
mov eax, dword [0x55db30]
cmp eax, 1
jne 0x4ec34f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ec371
pop esi
ret
push eax
call dword [0x55db38]
test eax, eax
jne 0x4ec3b9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ec375
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x55db30]
call dword [0x55db38]
mov edi, eax
test edi, edi
je 0x4ec39c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ec3b8
lea edi, [esi + 0xff0]
push esi
push dword [0x55db30]
call dword [0x55db34]
add esi, 0x10
cmp esi, edi
jb 0x4ec3a2
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ec31b
Function at 0x4eed3e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4eed7b
cmp dword [ebp + 0x14], edi
je 0x4eed7b
cmp ecx, edi
jne 0x4eed82
call fcn.004f5ca0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004ee96a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4eed96
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4eedb7
cmp ebx, 0xffffffff
je 0x4eeda6
push ebx
push edi
push ecx
call fcn.004ef000
add esp, 0xc
cmp esi, edi
je 0x4eed63
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4eed63
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4eedd3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4eedda
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4eeecb
test word [esi + 0xc], 0x10c
je 0x4eee2e
mov eax, dword [esi + 4]
test eax, eax
je 0x4eee2e
jl 0x4eef2c
cmp ebx, eax
mov edi, ebx
jb 0x4eedff
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4eeed3
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004ee278
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4eeec3
cmp ebx, dword [ebp - 0xc]
jb 0x4eee9b
cmp dword [ebp - 0xc], 0
je 0x4eee58
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4eee4d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4eee54
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4eee63
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4eee63
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4eeeff
push eax
push dword [ebp - 8]
push esi
call fcn.004f138e
pop ecx
push eax
call fcn.004fd6e6
add esp, 0xc
test eax, eax
je 0x4eef3e
cmp eax, 0xffffffff
je 0x4eef2c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4eeec3
push esi
call fcn.004fd005
cmp eax, 0xffffffff
pop ecx
je 0x4eef30
cmp dword [ebp - 4], 0
je 0x4eeeff
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4eede2
mov eax, dword [ebp + 0x14]
jmp 0x4eed7d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4eeeea
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004ef000
add esp, 0xc
call fcn.004f5ca0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4eed73
cmp dword [ebp + 0xc], 0xffffffff
je 0x4eef15
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004ef000
add esp, 0xc
call fcn.004f5ca0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4eed73
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4eed7d
or dword [esi + 0xc], 0x10
jmp 0x4eef30
Function at 0x4f25ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f25d8
call fcn.004f5cb3
mov dword [eax], esi
call fcn.004f5ca0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ee96a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f25b4
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f2607
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5cc6
pop ecx
call fcn.004f5ca0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f262e
test al, 1
je 0x4f262e
test byte [esp + 0xc], 2
je 0x4f262e
call fcn.004f5cb3
mov dword [eax], 5
call fcn.004f5ca0
mov dword [eax], 0xd
jmp 0x4f25fe
xor eax, eax
pop esi
ret

Function at 0x4f4b51
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55709c]
jne 0x4f4b5b
repz ret
jmp fcn.00505cc7

Function at 0x4fa8b8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x557c08]
je 0x4fa8d3
inc edi
cmp edi, 0x17
jb 0x4fa8c4
cmp edi, 0x17
jae 0x4faa53
push ebp
push 3
call fcn.00507837
cmp eax, 1
pop ecx
je 0x4faa1f
push 3
call fcn.00507837
test eax, eax
pop ecx
jne 0x4fa907
cmp dword [0x557098], 1
je 0x4faa1f
cmp ebx, 0xfc
je 0x4faa52
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55dc48
push ebp
call fcn.004f2674
add esp, 0xc
test eax, eax
je 0x4fa93d
push esi
push esi
push esi
push esi
push esi
call fcn.004ee86e
add esp, 0x14
push 0x104
mov esi, 0x55dc61
push esi
push 0
mov byte [0x55dd65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fa981
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f2674
add esp, 0xc
test eax, eax
je 0x4fa981
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ee86e
add esp, 0x14
push esi
call fcn.004ec450
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4fa9c6
push esi
call fcn.004ec450
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55df5c
push 0x53a31c
sub ecx, eax
push ecx
push eax
call fcn.00504c0c
add esp, 0x14
test eax, eax
je 0x4fa9c6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ee86e
add esp, 0x14
jmp 0x4fa9c8
xor esi, esi
push 0x53a318
push ebx
push ebp
call fcn.00504b9b
add esp, 0xc
test eax, eax
je 0x4fa9e8
push esi
push esi
push esi
push esi
push esi
call fcn.004ee86e
add esp, 0x14
push dword [edi*8 + 0x557c0c]
push ebx
push ebp
call fcn.00504b9b
add esp, 0xc
test eax, eax
je 0x4faa0a
push esi
push esi
push esi
push esi
push esi
call fcn.004ee86e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0050767a
add esp, 0xc
jmp 0x4faa52
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4faa52
cmp ebp, 0xffffffff
je 0x4faa52
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x557c0c]
push dword [esi]
call fcn.004ec450
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x50767a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004fa339
xor ebx, ebx
cmp dword [0x55e6e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x507750
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x507830
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53af20
push edi
call esi
cmp eax, ebx
je 0x507830
push eax
call fcn.004fa2cb
mov dword [esp], 0x53af10
push edi
mov dword [0x55e6e8], eax
call esi
push eax
call fcn.004fa2cb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55e6ec], eax
call esi
push eax
call fcn.004fa2cb
mov dword [0x55e6f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f4690
test eax, eax
pop ecx
pop ecx
je 0x50771e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee86e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x507750
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004fa2cb
cmp eax, ebx
pop ecx
mov dword [0x55e6f8], eax
je 0x507750
push 0x53aec8
push edi
call esi
push eax
call fcn.004fa2cb
pop ecx
mov dword [0x55e6f4], eax
mov eax, dword [0x55e6f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5077d5
cmp dword [0x55e6f8], ecx
je 0x5077d5
push eax
call fcn.004fa342
push dword [0x55e6f8]
mov esi, eax
call fcn.004fa342
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5077d5
cmp edi, ebx
je 0x5077d5
call esi
cmp eax, ebx
je 0x5077a2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5077a2
test byte [ebp - 0x18], 1
jne 0x5077d5
lea eax, [ebp - 0x10]
push eax
call fcn.004f46c7
test eax, eax
pop ecx
je 0x5077bd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee86e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5077cc
or dword [ebp + 0x10], 0x200000
jmp 0x507810
or dword [ebp + 0x10], 0x40000
jmp 0x507810
mov eax, dword [0x55e6ec]
cmp eax, dword [ebp - 8]
je 0x507810
push eax
call fcn.004fa342
cmp eax, ebx
pop ecx
je 0x507810
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x507810
mov eax, dword [0x55e6f0]
cmp eax, dword [ebp - 8]
je 0x507810
push eax
call fcn.004fa342
cmp eax, ebx
pop ecx
je 0x507810
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55e6e8]
call fcn.004fa342
cmp eax, ebx
pop ecx
je 0x507830
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x507832
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x899058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008991a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x89907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89906a
add dl, dl
jne 0x899089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8990dc
xor eax, eax
add dl, dl
jne 0x899096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x89917d
add dl, dl
jne 0x8990a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8990b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8990bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8990c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8990d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x899075
mov eax, 1
add dl, dl
jne 0x8990ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8990f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8990e1
sub eax, ebx
mov ebx, 1
jne 0x899128
mov ecx, 1
add dl, dl
jne 0x89910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x899119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x899105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x899075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x89913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x89914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x899136
cmp eax, 0x7d00
jae 0x89916d
cmp eax, 0x500
jb 0x899168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x899075
cmp eax, 0x7f
ja 0x899170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x899075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x89919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x899075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401128
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ebx
call fcn.004013b5
mov esi, eax
lea eax, [esi + 0x1c4b]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jae 0x4011ee
mov eax, dword [ebp - 8]
add eax, 1
and eax, 0xff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
add eax, ecx
and eax, 0xff
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
push eax
call section..text
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
movzx edx, byte [edx + ebx]
add ecx, edx
and ecx, 0xff
movsx eax, byte [eax + ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
movsx ecx, byte [ecx + edx]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
inc dword [ebp - 0x10]
jmp 0x40115b
push 0x9fcc97
call fcn.004013c0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, 0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x408939
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408969
xor dword [edx], eax
or ebx, esi
add esi, ebx
add edx, 1
mov esi, 0xe256ca19
add ebx, 0xc73202d5
cmp edx, ecx
jne fcn.00408939
sub esi, 0xbbdc7c15
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401730
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427373
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x524104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 0
push 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00402640
mov dword [esi], eax
push edi
sub esp, 0x18
mov byte [edi + 0x30], 0
mov ecx, esp
mov dword [edi + 0x18], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 9
mov dword [edi + 0x2c], 0
push 0x10
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push str.VCI_Settings.ini
mov byte [ebp - 4], 1
mov byte [ecx], 0
call fcn.004028a0
call fcn.004019e0
add esp, 0x1c
cmp al, 1
jne 0x4017ee
mov ecx, edi
call fcn.00401d90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret