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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x435de2
mov ecx, edx
call fcn.00428250
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [0x537408]
mov ecx, 0x18
lea eax, [esi + 1]
imul eax, esi
cdq
idiv ecx
push edi
xor edi, edi
mov byte [ebp - 1], 0
cmp edx, 9
jne 0x435e24
lea ecx, [edi + 1]
cmp esi, ecx
jle 0x435e1c
lea ebx, [ebx]
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x435e10
mov esi, ecx
mov dword [0x537408], esi
mov eax, esi
imul eax, esi
imul eax, esi
cdq
mov ecx, 0x13
idiv ecx
cmp edx, 2
jne 0x435e90
mov eax, dword [0x51da84]
movq xmm0, qword [str.zL6fpkJmO6k5Sc]
mov dword [ebp - 0x10], eax
mov ax, word [0x51da88]
mov word [ebp - 0xc], ax
mov al, byte [0x51da8a]
lea edx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 0xa], al
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x435e66
sub edx, ecx
xor ecx, ecx
mov eax, edx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7950
push eax
call fcn.004b8a0b
add esp, 8
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebx]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
jne 0x435ec1
push dword [ebx]
mov ecx, dword [ebp - 8]
call fcn.00436410
mov bl, byte [ebp - 1]
jmp 0x435f48
push esi
call fcn.004b7950
push esi
mov edi, eax
push 0
push edi
call fcn.004bcc70
mov eax, dword [ebx]
add esp, 0x10
push 0
push 0
push esi
push edi
push dword [eax - 0xc]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x435f01
push dword [ebx]
mov ecx, dword [ebp - 8]
call fcn.00436410
mov bl, byte [ebp - 1]
jmp 0x435f48
test edi, edi
jne 0x435f09
xor ecx, ecx
jmp 0x435f19
mov ecx, edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435f10
sub ecx, edx
push ecx
mov ecx, dword [ebp - 8]
push edi
call fcn.004281b0
mov esi, dword [0x537408]
mov eax, esi
imul eax, esi
imul eax, esi
cdq
mov ecx, 0x12
idiv ecx
mov bl, 1
cmp edx, 0x10
jne 0x435f4e
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov esi, dword [0x537408]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 0x11
jne 0x435fe9
xor edx, edx
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 0x435f66
mov dword [0x537408], esi
test edi, edi
je 0x435ff6
push edi
call fcn.004b8a0b
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x532d60]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4365cb
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x43658d
cmp eax, 2
jne 0x4365a9
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4365c5
test ecx, ecx
je 0x4365c0
test cl, 1
jne 0x4365a9
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4365c5
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b8181
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b8181
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4369c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x532d60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov word [ebp - 8], ax
push edi
lea eax, [ebp - 0x48]
push eax
mov esi, ecx
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.00403ac0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b8181
mov esp, ebp
pop ebp
ret

Function at 0x436d90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc0e2
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x532d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
xor eax, eax
push 0x1f2
mov dword [ebp - 0x208], 0
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x20c], esi
call fcn.004bcc70
add esp, 0xc
lea eax, [ebp - 0x204]
push 0xfa
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x204]
push eax
mov ecx, esi
mov dword [esi], 0
call fcn.00403ac0
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov dword [ebp - 0x208], 1
cmp dword [ecx - 0xc], 0
mov ecx, esi
je 0x436e42
push 0x11
push str.AppDataLocalLow
jmp 0x436e49
push 3
push 0x51db0c
call fcn.00427f00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8181
mov esp, ebp
pop ebp
ret
Function at 0x437030
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc172
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x532d60]
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 edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
mov dword [edi], 0
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
mov dword [ebp - 0x228], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov eax, dword [0x537558]
test eax, eax
jne 0x4371b6
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x537408]
mov esi, eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 0x220], 0x14
idiv dword [ebp - 0x220]
cmp edx, 0x12
jne 0x437100
mov eax, 1
test ecx, ecx
cmove ecx, eax
mov dword [0x537408], ecx
test esi, esi
jne 0x43719d
call fcn.0045b080
test al, al
jne 0x437121
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004bcc70
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43717f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437161
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00404a90
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.004b8181
mov esp, ebp
pop ebp
ret
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x537558], eax
test eax, eax
je 0x437121
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call eax
test eax, eax
je 0x437121
cmp dword [ebp - 0x21c], 0
je 0x437121
push 0
push 0
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x43717f
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7950
add esp, 4
mov ebx, eax
push esi
push ebx
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x43723e
test ebx, ebx
jne 0x437221
xor ecx, ecx
jmp 0x437235
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437226
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.00404a90
test ebx, ebx
je 0x43717f
push ebx
call fcn.004b8a0b
add esp, 4
jmp 0x43717f
Function at 0x439380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98c
mov eax, dword [0x532d60]
xor eax, esp
mov dword [esp + 0x988], eax
push ebx
push esi
mov esi, dword [0x537408]
mov dword [esp + 0xc], edx
lea eax, [esi + 1]
imul eax, esi
push edi
mov edi, ecx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 7
jne 0x439419
xor esi, esi
mov edi, edi
call fcn.004b8a2c
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [esp + esi*8 + 0x18], xmm0
cmp esi, 0x40
jb 0x4393c0
xor ecx, ecx
jmp 0x4393e0
mov eax, 0x3f
cmp ecx, eax
jge 0x439413
lea esp, [esp]
movsd xmm0, qword [esp + eax*8 + 0x20]
movsd xmm1, qword [esp + eax*8 + 0x18]
comisd xmm0, xmm1
jbe 0x43940e
movsd qword [esp + eax*8 + 0x20], xmm1
movsd qword [esp + eax*8 + 0x18], xmm0
dec eax
cmp eax, ecx
jg 0x4393f0
inc ecx
cmp ecx, 0x40
jl 0x4393e0
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push dword [edi]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x439544
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
push 0
mov eax, dword [eax]
lea ecx, [esp + 0x994]
push ecx
mov dword [esp + 0x998], 0
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43953d
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [0x537408]
lea ecx, [ebx + 1]
lea eax, [ebx + 2]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 0x11
jne 0x43953b
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x220]
lea ecx, [ecx]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
lea ebx, [ebx]
lea ecx, [eax + 1]
lea edi, [edx + 1]
mov eax, ebx
cdq
idiv ecx
mov eax, ebx
mov ecx, ebx
sub ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, edx
cdq
imul esi, ecx
idiv edi
add esi, eax
sub esi, dword [esp + 0x10]
push esi
push 0x51a064
call fcn.004b9559
mov eax, dword [esp + 0x1c]
mov edx, edi
add ebx, 4
add esp, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
cmp edx, 0x19
jge 0x439521
mov ebx, dword [0x537408]
jmp 0x4394d0
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x13
jge 0x439537
mov ebx, dword [0x537408]
mov ecx, dword [esp + 0x18]
jmp 0x4394c0
mov esi, dword [esp + 0x1c]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x994]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004b8181
mov esp, ebp
pop ebp
ret
Function at 0x43ada0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x532d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x43af99
mov eax, dword [esi + 0xa8]
cmp eax, 1
jne 0x43ae3c
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0043afc0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43af99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43af99
cmp eax, 2
jne 0x43af99
mov ecx, dword [0x537408]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xa
idiv ecx
cmp edx, 5
jne 0x43ae6e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
lea eax, [ebp - 0x4c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
cmp dword [ebp - 0x44], 0
je 0x43af99
mov ecx, dword [0x537408]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 1
jne 0x43aea6
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edi, dword [esi + 0xac]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
xorps xmm0, xmm0
or edi, 0x50000
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
push dword [esi + 0x90]
push dword [esi + 0x94]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0xffffffffffffffff
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push 0xff
push 0
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, dword [0x537408]
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 0xe
jne 0x43af49
call fcn.004b8a2c
mov ecx, dword [0x537408]
cmp ecx, eax
jne 0x43af49
dec ecx
mov dword [0x537408], ecx
push edi
push 0x1f4
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_AnimateWindow]
test eax, eax
jne 0x43af99
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x50]
push str.closeDlg_AnimateWindow__d
push eax
call fcn.00404fe0
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00403c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8181
mov esp, ebp
pop ebp
ret
Function at 0x448380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de33a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x532d60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004b7988
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x448426
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.004bb8ea
push 0x522cf0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.004bf857
push edi
push esi
call fcn.004b7c1f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8181
mov esp, ebp
pop ebp
ret 4
Function at 0x452ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df028
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x532d60]
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.00453620
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00453620
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.00453120
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.00453120
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 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 0x45ae90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x45aea5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x45aeb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45aeb0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
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 0x45b080
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x537408]
push ebx
lea edx, [eax + 1]
lea ecx, [eax + 2]
imul ecx, edx
imul ecx, eax
mov bl, 1
and ecx, 0x80000003
jns 0x45b0a1
dec ecx
or ecx, 0xfffffffc
inc ecx
cmp ecx, 3
jne 0x45b14d
imul edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x45b0ba
dec edx
or edx, 0xfffffff8
inc edx
cmp edx, 7
jne 0x45b149
push esi
xor esi, esi
mov edx, esi
and edx, 1
dec edx
not edx
and edx, eax
mov ecx, esi
sar ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, eax
sar edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
sar ecx, 1
not edx
and edx, eax
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, eax
sar edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
sar ecx, 1
not edx
and edx, eax
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, eax
sar edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
sar ecx, 1
not edx
and edx, eax
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, eax
sar edx, 1
xor ecx, edx
inc esi
add eax, ecx
cmp esi, 0x100
jl 0x45b0c6
mov dword [0x537408], eax
pop esi
xor al, al
pop ebx
ret
mov al, bl
pop ebx
ret
Function at 0x45d6d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0018
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x532d60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
movzx eax, bl
mov dword [ebp - 0x10], eax
mov eax, dword [0x537408]
lea edx, [eax + 1]
imul edx, eax
and edx, 0x80000001
jns 0x45d729
dec edx
or edx, 0xfffffffe
inc edx
cmp edx, 1
jne 0x45d738
call fcn.004b8a2c
mov dword [0x537408], eax
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x14], ecx
cmp ebx, 0x80000000
jae 0x45d750
mov edi, ebx
shr edi, 0x10
mov ebx, dword [ebp - 0x10]
cmp ebx, 6
jb 0x45d79e
cmp ecx, 2
jb 0x45d79e
imul eax, eax
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 5
jne 0x45d783
call fcn.004b8a2c
mov ecx, dword [0x537408]
cmp ecx, eax
jne 0x45d783
dec ecx
mov dword [0x537408], ecx
mov ecx, esi
call fcn.0045dac0
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
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push ebx
push 0x520afc
push eax
mov dword [ebp - 4], 0
call fcn.00404fe0
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
add esp, 0x14
mov ecx, edi
call fcn.00404b50
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45d7fe
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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
Function at 0x461960
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 0x461979
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 0x461985
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x461980
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 0x462920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e01e6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x532d60]
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 - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x420], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x4629c6
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x4629c6
call fcn.0040c890
mov esi, eax
jmp 0x462ab3
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4629e9
call fcn.0040c890
jmp 0x462aa6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x462a07
call fcn.0040c890
jmp 0x462aa6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x462a28
mov esi, 0x8007000e
jmp 0x462aa8
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.00461300
jmp 0x462a52
mov dword [ebp - 4], 1
cmp dword [ebp - 0x420], 0
jne 0x462a69
mov esi, 0x8007000e
jmp 0x462aa8
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x462a89
call fcn.0040c890
jmp 0x462aa6
mov eax, dword [ebp - 0x420]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.004627c0
mov esi, eax
test edi, edi
je 0x462ab3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x462ad0
lea ecx, [ebp - 0x420]
call fcn.004612b0
lea esp, [esp]
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.004b8181
mov esp, ebp
pop ebp
ret 0x10