joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408115
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408154
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x408150
lea ebx, [ebx]
cmp esi, edx
jae 0x408154
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x408140
cmp esi, edx
jb 0x408159
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4096d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409741
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40970f
cmp eax, 2
jne 0x40972b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x40973b
test ecx, ecx
je 0x409736
test cl, 1
jne 0x40972b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40973b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x409f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x409f25
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x409f30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409f30
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40e650
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.0040e7c0
mov ebx, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40e755
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40e755
cmp eax, dword [ebp + 0x14]
ja 0x40e755
xor eax, eax
test esi, esi
je 0x40e716
cmp eax, esi
jae 0x40e69a
movzx edx, byte [eax + ebx]
inc eax
jmp 0x40e69c
xor edx, edx
cmp eax, esi
jae 0x40e6aa
movzx ecx, byte [eax + ebx]
mov dword [ebp + 8], ecx
inc eax
jmp 0x40e6b1
mov dword [ebp + 8], 0
cmp eax, esi
jae 0x40e6bc
movzx ecx, byte [eax + ebx]
inc eax
jmp 0x40e6be
xor ecx, ecx
shl edx, 8
add edx, dword [ebp + 8]
add edi, 4
shl edx, 8
add edx, ecx
mov ecx, edx
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], cl
mov ecx, edx
shr ecx, 6
and ecx, 0x3f
and edx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 1], cl
cmp eax, esi
jb 0x40e693
mov edi, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
xor ecx, ecx
lea eax, [edx + edx*2]
mov edx, dword [ebp - 4]
sub esi, eax
cmp dword [esi*4 + 0x4c271c], ecx
jle 0x40e747
lea eax, [edx - 1]
add eax, edi
mov byte [eax], 0x3d
inc ecx
lea eax, [eax - 1]
cmp ecx, dword [esi*4 + 0x4c271c]
jl 0x40e737
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], edx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x504e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 8], ax
push edi
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x5f005f
mov dword [ebp - 0x44], 0x520043
mov dword [ebp - 0x40], 0x40005f
mov dword [ebp - 0x3c], 0x410046
mov dword [ebp - 0x38], 0x4c0049
mov dword [ebp - 0x34], 0x440045
mov dword [ebp - 0x30], 0x44005f
mov dword [ebp - 0x2c], 0x57004f
mov dword [ebp - 0x28], 0x4c004e
mov dword [ebp - 0x24], 0x41004f
mov dword [ebp - 0x20], 0x5f0044
mov dword [ebp - 0x1c], 0x450052
mov dword [ebp - 0x18], 0x440041
mov dword [ebp - 0x14], 0x5f0040
mov dword [ebp - 0x10], 0x520043
mov dword [ebp - 0xc], 0x5f005f
call fcn.00401b70
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496d64
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415eab
test al, 0x10
je 0x415eab
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x415f90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415fb8
xor eax, eax
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret
Function at 0x416180
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4161ab
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [0x506280]
mov ebx, eax
mov eax, esi
imul eax, esi
imul eax, esi
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 0xb
jne 0x416263
xor edx, edx
lea esp, [esp]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x4161e0
mov dword [0x506280], esi
cmp ebx, 0xffffffff
je 0x4162a6
cmp ebx, dword [ebp + 0x10]
ja 0x4162a6
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4162ad
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4167a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8008
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x504e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4167f4
xor bl, bl
jmp 0x416859
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov ecx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
or ecx, edx
jge 0x41682a
push 0
lea ecx, [ebp + 0xc]
call fcn.00406af0
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [esi + esi]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
sete bl
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41687d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [eax]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416ab0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
push 0
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416aa9
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x41c4c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8988
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x504e20]
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], 0
mov dword [edi + 4], 0
call fcn.0041c8b0
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0041c8b0
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.0041c9b0
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.0041c9b0
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
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
Function at 0x41f8f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8e31
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x504e20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x818], ecx
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
push 0
push eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 4], 0
call fcn.0041e8c0
add esp, 0xc
lea ecx, [ebp - 0x824]
push 0x2001f
push dword [eax]
push dword [0x500128]
call fcn.00409620
mov edx, dword [ebp - 0x814]
test eax, eax
setne bl
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41f99e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x824]
test bl, bl
je 0x41f9b5
xor bl, bl
jmp 0x41facc
xor ebx, ebx
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call fcn.004980c0
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push edi
mov dword [ebp - 0x828], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebx
test eax, eax
jne 0x41fabb
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x41fa53
movzx esi, ax
push 0
push esi
call fcn.00402da0
add esp, 8
test eax, eax
je 0x41fa78
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.00406900
jmp 0x41fa78
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fa56
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00407df0
mov ecx, dword [ebp - 0x818]
lea eax, [ebp - 0x814]
push eax
mov byte [ebp - 4], 2
call fcn.0040a2e0
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41f9b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41f9b7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41faca
push edi
call esi
xor edi, edi
mov bl, 1
test edi, edi
je 0x41fad3
push edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496d64
mov esp, ebp
pop ebp
ret
Function at 0x4204b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x506280]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 6
idiv ecx
cmp edx, 3
jne 0x4204e9
call fcn.00497804
mov ecx, dword [0x506280]
cmp ecx, eax
jne 0x4204e9
dec ecx
mov dword [0x506280], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
push dword [eax]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42050c
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4208b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00420230
test al, al
jne 0x4208cd
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
push dword [eax]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4208f0
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004201d0
test al, al
jne 0x420933
call fcn.00497804
mov ecx, dword [0x506280]
cmp ecx, eax
jne 0x420933
dec ecx
mov dword [0x506280], ecx
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4290c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b981b
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x504e20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5ec], eax
mov dword [ebp - 0x5f4], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr eax, 8
movzx edi, cl
movzx ebx, al
cmp ecx, 0x80000000
jae 0x429121
mov esi, ecx
shr esi, 0x10
cmp edi, 6
jb 0x4291b9
cmp ebx, 2
jb 0x4291b9
call fcn.004297a0
test al, al
jne 0x4291a8
xor esi, esi
mov edi, edi
call fcn.00497804
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0x5f0], xmm0
cmp esi, 0xbb
jb 0x429140
xor ecx, ecx
mov eax, 0xba
cmp ecx, eax
jge 0x42919f
lea ebx, [ebx]
movsd xmm0, qword [ebp + eax*8 - 0x5e8]
movsd xmm1, qword [ebp + eax*8 - 0x5f0]
comisd xmm0, xmm1
jbe 0x42919a
movsd qword [ebp + eax*8 - 0x5e8], xmm1
movsd qword [ebp + eax*8 - 0x5f0], xmm0
dec eax
cmp eax, ecx
jg 0x429170
inc ecx
cmp ecx, 0xbb
jl 0x429161
mov edi, dword [ebp - 0x5ec]
push edi
call fcn.00429250
add esp, 4
jmp 0x429225
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5f0], eax
push esi
push ebx
push edi
lea eax, [ebp - 0x5f0]
push 0x4c4734
push eax
mov dword [ebp - 4], 0
call fcn.00405040
mov esi, dword [ebp - 0x5f0]
add esi, 0xfffffff0
push esi
call fcn.00404d50
mov edi, dword [ebp - 0x5ec]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x429225
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496d64
mov esp, ebp
pop ebp
ret
Function at 0x43c240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb5e6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x504e20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x43c2ec
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x43c2ec
call fcn.00422410
mov esi, eax
jmp 0x43c3dc
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43c30f
call fcn.00422410
jmp 0x43c3cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x43c32d
call fcn.00422410
jmp 0x43c3cf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x43c34e
mov esi, 0x8007000e
jmp 0x43c3d1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004360e0
jmp 0x43c378
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x43c38f
mov esi, 0x8007000e
jmp 0x43c3d1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x43c3af
call fcn.00422410
jmp 0x43c3cf
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0043c0e0
mov esi, eax
test edi, edi
je 0x43c3dc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x43c400
lea ecx, [ebp - 0x418]
call fcn.0043a8f0
jmp 0x43c400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00496d64
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43dba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x43dbb9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43dbc5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x43dbc0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x444760
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00498090
mov eax, dword [0x504e20]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4447c5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4447c5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0049b62f
add eax, 0x40
push eax
call fcn.0049b467
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00496d64
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.0049b3a2
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x444854
call fcn.00444620
test eax, eax
jle 0x444854
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.00496d64
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.00496d64
add esp, 0x108
ret

Function at 0x449860
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4498a7
mov al, byte [edx]
test al, al
je 0x4498a7
push edi
mov edi, pe_nt_image_headers32
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x449877
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret