joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4649a0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a9ad2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4e52d0]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x464a82
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464a82
mov dword [esp + 0xc], 0
mov dword [esp + 0x40], 1
lea eax, [esp + 0x1c]
push eax
push 0x4bbca4
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x464a3d
lea ecx, [esp + 0xc]
push ecx
push 0x4c8720
push 0x17
push 0
lea edx, [esp + 0x2c]
push edx
call esi
test eax, eax
jns 0x464aa7
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4c8638
call edi
lea eax, [esp + 0xc]
push eax
push 0x4c8720
push 0x17
push 0
push 0x4baf10
call esi
test eax, eax
jns 0x464aa3
push str.DOMDOCUMENT:_Create_Failed_with_CLSID_DOMDocument2_n
call edi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x464a82
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004912db
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x464a6a
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push 0
push eax
call edx
lea esi, [esp + 0x1c]
call fcn.00413800
mov byte [esp + 0x40], 3
mov edi, dword [eax]
mov edx, dword [esp + 0xc]
mov esi, dword [edx]
lea ecx, [esp + 0x10]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [ecx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0xe8]
push edx
call ecx
mov byte [esp + 0x40], 1
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [esp + 0x10], 0
jne 0x464b28
mov dword [esp + 0x40], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.0045b700
jmp 0x464a82
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], 0
mov dword [ecx], eax
mov dword [esp + 0x40], 0xffffffff
lea edx, [esp + 0xc]
push edx
call fcn.0045b700
mov al, 1
jmp 0x464a84
Function at 0x464e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa9f0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
movzx eax, word [eax + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x464fe8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x464fe8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x464fe8
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x464fe8
cmp dword [eax], 0x2e66622e
jne 0x464fe8
mov edx, 0x10000
cmp dword [eax + 0x3c], edx
jne 0x464fe8
cmp dword [eax + 0x40], edx
jne 0x464fe8
lea edi, [ebx + 0x14]
mov dword [ebx + 0x30], ecx
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x34], eax
call fcn.004657f0
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
lea ecx, [ebp + 8]
push ecx
push eax
lea edx, [ebx + 0x14]
call fcn.00465940
test al, al
je 0x464fce
mov ecx, dword [ebx + 0xc]
cmp dword [ecx - 0xc], edi
je 0x464f69
lea edx, [ebx + 0x6c]
push edx
push ecx
lea edx, [ebx + 0x14]
call fcn.00465940
test al, al
je 0x464fce
mov ecx, dword [ebx + 8]
cmp dword [ecx - 0xc], edi
je 0x464f82
lea eax, [ebx + 0x70]
push eax
push ecx
lea edx, [ebx + 0x14]
call fcn.00465940
test al, al
je 0x464fce
add ebx, 0x60
cmp ebx, edi
je 0x464fce
push ebx
mov ebx, dword [ebp + 8]
mov edi, ebx
call fcn.00464b60
test al, al
je 0x464fca
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call esi
mov dword [ebp - 4], 0xffffffff
push ebx
call esi
mov al, 1
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
xor edi, edi
jmp 0x464fd1
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
mov dword [ebp - 4], 0xffffffff
push ebx
call esi
xor al, al
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 0x465700
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, esi
je 0x46571f
push eax
call fcn.004912d0
add esp, 4
mov dword [edi + 0x14], esi
mov eax, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
push eax
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x465753
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004911e8
mov edx, dword [ebp - 8]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
mov esi, eax
push esi
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4657c1
cmp dword [ebp - 4], ebx
jne 0x4657c1
cmp dword [esi], 0x2e66622e
jne 0x4657c1
mov eax, 0x10000
cmp dword [esi + 0x3c], eax
jne 0x4657c1
cmp dword [esi + 0x40], eax
jne 0x4657c1
cmp dword [esi + 0x64], 0
je 0x4657c1
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], esi
mov dword [edi + 0x20], esi
call fcn.004657f0
mov bl, 1
jmp 0x4657c4
mov bl, byte [ebp + 0xb]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4657db
push esi
call fcn.004913be
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x467b20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 8
push edi
xor edi, edi
cmp eax, edi
je 0x467b3c
push eax
call fcn.004913be
add esp, 4
mov dword [esi + 4], edi
mov eax, dword [ebp + 8]
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x467b72
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push eax
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call fcn.004911e8
mov edx, dword [ebp - 4]
add esp, 4
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
mov edi, eax
push edi
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467bf5
cmp dword [edi], 0x2e66622e
jne 0x467bf5
cmp dword [edi + 0x3c], 0x10000
jne 0x467bf5
cmp dword [edi + 0x40], 1
jne 0x467bf5
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
cmp dword [edi + 0xfc], 0
je 0x467bef
mov eax, dword [edi + 0xf8]
lea eax, [eax + edi + 0x100]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov ecx, dword [eax + 4]
lea eax, [ecx + eax + 8]
mov dword [esi + 0x18], eax
mov byte [ebp + 0xb], 1
jmp 0x467c02
test edi, edi
je 0x467c02
push edi
call fcn.004913be
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x46b270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4e52d0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push edi
mov byte [eax], 1
mov eax, dword [esi + 0x78]
push eax
mov edi, ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [esi + 0x27], 0
jne 0x46b30e
cmp byte [esi + 0x24], 0
mov dword [esi + 0xc0], 9
je 0x46b3e2
cmp byte [esi + 0x25], 0
je 0x46b3e2
cmp byte [esi + 0x26], 0
je 0x46b3e2
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46b3e2
mov eax, dword [esi + 4]
test eax, eax
je 0x46b3e2
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004912db
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x38]
dec eax
mov dword [esp + 0xc], eax
sub eax, dword [esi + 0xb4]
inc ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0xb8]
add eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x10], eax
movsx eax, di
mov dword [esp + 8], ecx
shr edi, 0x10
movsx ecx, di
push ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x46b372
mov dword [esi + 0xc0], 2
mov dword [esi + 0xbc], 1
jmp 0x46b386
mov dword [esi + 0xc0], 6
mov dword [esi + 0xbc], 0
cmp byte [esi + 0x24], 0
je 0x46b3be
cmp byte [esi + 0x25], 0
je 0x46b3be
cmp byte [esi + 0x26], 0
je 0x46b3be
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46b3be
mov eax, dword [esi + 4]
test eax, eax
je 0x46b3be
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [esi + 0xbc]
push eax
mov eax, esi
call fcn.0046b6e0
mov ecx, dword [esi + 0x78]
push 0
push 0xc8
push 0x3e9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004912db
mov esp, ebp
pop ebp
ret 4
Function at 0x46b400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x4e52d0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x78]
push edi
push 0x3e9
push eax
mov edi, ecx
call dword [sym.imp.USER32.dll_KillTimer]
cmp byte [esi + 0x27], 0
jne 0x46b438
mov dword [esi + 0xc0], 9
jmp 0x46b492
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x3c]
dec eax
mov dword [esp + 0xc], eax
sub eax, dword [esi + 0xb4]
mov dword [esp + 4], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xb8]
inc ecx
add eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x10], eax
movsx eax, di
mov dword [esp + 8], ecx
shr edi, 0x10
movsx ecx, di
push ecx
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 5
mov dword [esi + 0xc0], eax
cmp byte [esi + 0x24], 0
je 0x46b4ca
cmp byte [esi + 0x25], 0
je 0x46b4ca
cmp byte [esi + 0x26], 0
je 0x46b4ca
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46b4ca
mov eax, dword [esi + 4]
test eax, eax
je 0x46b4ca
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov ecx, dword [esp + 0x14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004912db
mov esp, ebp
pop ebp
ret

Function at 0x46eb80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esi + 0xc8]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x46ebfb
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x4eb4a0]
cmp eax, 0x1388
jbe 0x46ebfb
call edi
mov ecx, dword [esi + 0x1c]
mov dword [0x4eb4a0], eax
test ecx, ecx
je 0x46ebfb
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
push esi
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x6c]
cmp dword [ecx - 0xc], 0
je 0x46ebfb
mov ecx, dword [esi + 0x1c]
movzx eax, word [ebp + 0xc]
movzx esi, word [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push 1
shl eax, 0x10
or eax, esi
push eax
push 0
push 0x200
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x46f020
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push edi
mov edi, ecx
mov byte [edi + 0x28], al
test al, al
je 0x46f067
mov eax, dword [edi + 4]
mov word [edi + 0x29], 0
test eax, eax
je 0x46f04f
push esi
lea esi, [eax + 0x6c]
call fcn.00401fd0
mov eax, dword [edi + 4]
call fcn.00441af0
pop esi
mov edi, dword [edi + 0xf0]
test edi, edi
je 0x46f062
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop ebp
ret 4
mov word [edi + 0x29], 0x101
pop edi
pop ebp
ret 4
Function at 0x46fe80
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x46fe93
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x18c], 0
ret

Function at 0x4744f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7753
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 1
mov dword [eax], vtable.CDrawImage.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], edx
mov byte [eax + 0x18], dl
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [eax], vtable.CDrawImageBMP.0
mov dword [eax + 0x28], vtable.CHSL.0
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [ebp - 4], dl
mov dword [eax + 8], edx
mov dword [eax + 0x24], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4749a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7718
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4e52d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, 1
mov dword [eax], vtable.CDrawImage.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], edx
mov byte [eax + 0x18], dl
mov dword [eax + 0x1c], ecx
mov dword [ebp - 4], ecx
mov dword [eax], vtable.CDrawImageGIF.0
mov dword [eax + 8], 2
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [eax + 0x38], cl
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x476760
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x476780
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x477278
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0xc], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x10], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ebx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, ah
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, ecx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0xc]
and edx, 0xff
mov edx, dword [ebp + edx*8]
movzx ecx, ch
xor edx, dword [ebp + ecx*8 + 3]
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
shr eax, 0x18
xor edx, dword [ebp + eax*8 + 1]
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xc], edi
jb 0x477298
mov esi, eax
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, dh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ebx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, ah
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, ecx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
movzx esi, byte [ebp + esi + 0x800]
movzx edi, bh
movzx edi, byte [ebp + edi + 0x800]
shl edi, 8
xor esi, edi
mov edi, eax
shr edi, 0x10
and edi, 0xff
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x10
xor esi, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [ebp + edi + 0x800]
shl edi, 0x18
xor esi, edi
mov edi, dword [esp + 0xc]
and edx, 0xff
movzx edx, byte [ebp + edx + 0x800]
movzx ecx, ch
movzx ecx, byte [ebp + ecx + 0x800]
shl ecx, 8
xor edx, ecx
mov ecx, esi
shr ebx, 0x10
and ebx, 0xff
movzx ebx, byte [ebp + ebx + 0x800]
shl ebx, 0x10
xor edx, ebx
mov ebx, dword [esp + 8]
shr eax, 0x18
movzx eax, byte [ebp + eax + 0x800]
shl eax, 0x18
xor edx, eax
mov eax, dword [esp + 4]
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret
Function at 0x47c160
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004949d0
mov eax, dword [0x4e52d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x47c1c5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x47c1c5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00494ee6
add eax, 0x40
push eax
call fcn.00496080
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004912db
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00495f58
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x47c254
call fcn.0047c080
test eax, eax
je 0x47c254
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
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.004912db
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004912db
add esp, 0x108
ret
Function at 0x4911e3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4e9508], 0
push esi
push edi
jne 0x491159
call fcn.004910c5
test eax, eax
je 0x49119e
mov eax, dword [0x4e9508]
cmp eax, 1
jne 0x49117a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49119e
jmp 0x4911e0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4911e0
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 0x4911a2
xor eax, eax
jmp 0x4911e0
mov eax, dword [esi]
push dword [0x4e9508]
call edi
mov edi, eax
test edi, edi
je 0x4911c4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4911e0
lea edi, [esi + 0xff0]
push esi
push dword [0x4e9508]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4911ca
mov eax, esi
pop edi
pop esi
ret
jmp 0x491145

Function at 0x4912db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e52d0]
jne 0x4912e5
repz ret
jmp fcn.0049635b