joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10164288
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
test edx, edx
je 0x1016433a
test ecx, ecx
je 0x1016433a
mov esi, dword [ebp + 8]
test esi, esi
je 0x1016433a
cmp edx, 3
ja 0x1016433a
mov word [esi + 2], 0x3d3d
mov al, byte [ecx]
shr al, 2
push ebx
mov byte [esi], al
mov bl, byte [ecx]
and bl, 3
shl bl, 4
mov byte [esi + 1], bl
cmp edx, 1
je 0x101642ff
mov al, byte [ecx + 1]
shr al, 4
or al, bl
mov byte [esi + 1], al
mov bl, byte [ecx + 1]
and bl, 0xf
shl bl, 2
mov byte [esi + 2], bl
cmp edx, 2
je 0x101642ff
mov al, byte [ecx + 2]
shr al, 6
or al, bl
mov byte [esi + 2], al
mov al, byte [ecx + 2]
and al, 0x3f
mov byte [esi + 3], al
xor ecx, ecx
pop ebx
mov al, byte [ecx + esi]
cmp al, 0x1a
jae 0x1016430d
add al, 0x41
jmp 0x1016432e
cmp al, 0x34
jae 0x10164315
add al, 0x47
jmp 0x1016432e
cmp al, 0x3e
jae 0x1016431d
sub al, 4
jmp 0x1016432e
jne 0x10164323
mov al, 0x2b
jmp 0x1016432e
cmp al, 0x3f
setne al
dec al
and al, 0xf0
add al, 0x3f
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jbe 0x10164302
mov eax, edx
jmp 0x1016433c
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x1017d4bf
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
mov ecx, eax
mov edx, dword [edi + 0x354]
call fcn.10044c0e
test eax, eax
js 0x1017d5e2
mov esi, dword [ebp - 4]
lea ebx, [edi + 0x350]
cmp esi, dword [ebx]
jbe 0x1017d5e2
cmp dword [edi + 0x348], 0
jne 0x1017d576
lea eax, [ebp - 0x28]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov ecx, 0x400
mov dword [edi + 0x34c], eax
mul ecx
test edx, edx
ja 0x1017d541
jb 0x1017d52b
cmp eax, 0xffffffff
ja 0x1017d541
push 4
push 0x2000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1017d552
push 0
push 0
push 0
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_RaiseException]
lea eax, [esi + 0x34]
mov dword [edi + 0x348], esi
mov dword [edi + 0x35c], eax
lea eax, [esi + 0x174]
mov dword [edi + 0x358], esi
mov esi, dword [ebp - 4]
mov dword [edi + 0x360], eax
mov ecx, dword [edi + 0x34c]
mov eax, ecx
shl eax, 0xa
cmp esi, eax
jbe 0x1017d59c
push 0
push 0
push 0
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, ecx
xor edx, edx
sub eax, dword [ebx]
dec eax
add esi, eax
mov eax, esi
div ecx
mov ecx, dword [ebx]
sub esi, edx
push ebx
mov edx, esi
call fcn.10044c0e
test eax, eax
js 0x1017d5d2
push 4
push 0x1000
push dword [ebx]
push dword [edi + 0x348]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1017d5e2
xor eax, eax
push eax
push eax
push eax
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_RaiseException]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1017ff29
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
mov ecx, edx
push esi
xor esi, esi
call fcn.1017c769
mov dword [ebp - 8], eax
test eax, eax
je 0x1017ff9b
push edi
push esi
push 0x8100080
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1017ff91
push esi
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x354]
push dword [ebx + 0x348]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1017ff8a
mov eax, dword [ebx + 0x354]
cmp eax, dword [ebp - 4]
jne 0x1017ff8a
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10180387
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.101800f1
test eax, eax
je 0x10180436
mov ecx, esi
call fcn.10182f6c
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x10180436
movzx edx, word [ebx + 0x170]
mov dword [ebx + 8], esi
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 8]
test edi, edi
je 0x101803ef
mov esi, eax
movzx eax, byte [esi]
movzx ecx, dx
shr ecx, 8
xor ecx, eax
shl edx, 8
xor dx, word [ecx*2 + 0x1003ee38]
inc esi
movzx edx, dx
sub edi, 1
jne 0x101803cd
mov esi, dword [ebp - 0xc]
mov word [ebx + 0x170], dx
jmp 0x10180405
cmp edi, eax
jne 0x10180401
inc dword [ebp - 4]
jmp 0x10180405
test edi, edi
jne 0x10180427
mov ecx, ebx
call fcn.101830d7
mov edi, eax
push 0xfffffffffffffffd
pop eax
cmp edi, 0xfffffffc
jne 0x101803f8
mov ecx, esi
call fcn.10182fef
cmp dword [ebp - 4], 0
jle 0x10180432
push 0xfffffffffffffffd
jmp 0x10180438
mov ecx, esi
call fcn.10182fef
mov eax, edi
jmp 0x10180439
xor eax, eax
jmp 0x10180439
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10182e4d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, edx
push ebx
push esi
mov dword [ebp - 0xc], eax
mov esi, eax
mov al, byte [eax]
xor ebx, ebx
mov dword [ebp - 8], ebx
push edi
mov edi, ecx
test al, al
je 0x10182e7d
add ebx, ebx
movzx eax, al
xor ebx, eax
inc esi
mov al, byte [esi]
test al, al
jne 0x10182e6c
mov dword [ebp - 8], ebx
mov edi, dword [edi + 0xc]
xor ecx, ecx
xor edx, edx
cmp dword [edi], ebx
jne 0x10182eca
mov esi, dword [ebp - 0xc]
mov eax, dword [edx + 0x10006ae8]
mov bl, byte [eax]
cmp bl, byte [esi]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
jne 0x10182ec1
cmp byte [ebp - 1], 0
je 0x10182ebd
mov bl, byte [eax + 1]
cmp bl, byte [esi + 1]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 8]
jne 0x10182ec1
add eax, 2
add esi, 2
cmp byte [ebp - 1], 0
jne 0x10182e91
xor eax, eax
jmp 0x10182ec6
sbb eax, eax
or eax, 1
test eax, eax
je 0x10182ee2
add edx, 0xc
inc ecx
add edi, 4
cmp edx, 0x4a4
jb 0x10182e84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], ecx
imul eax, ecx, 0xc
add eax, 0x10006ae8
jmp 0x10182edb
Function at 0x10189080
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x101890be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x101890b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x101890c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x101890a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x101891a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x101891d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101891d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x101891d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406627
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40664b
xor eax, eax
test eax, eax
je 0x40665d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40665d
xor ecx, ecx
jmp 0x406660
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40674c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca1c], 0
push esi
jne 0x406783
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40675d
mov dword [ecx*4 + 0x42ca18], eax
inc ecx
cmp ecx, 0x100
jl 0x406758
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca18]
xor eax, esi
inc ecx
dec edx
jne 0x406796
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407592
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x40fb1c
call fcn.0040df87
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40760f
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40760f
call fcn.004015ef
mov esi, eax
jmp 0x4076e6
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x407632
call fcn.004015ef
jmp 0x4076d9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x407628
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 0x407662
mov esi, 0x8007000e
jmp 0x4076db
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040474a
jmp 0x407688
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x40765b
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x407628
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.00407458
mov esi, eax
test edi, edi
je 0x4076e6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4076ff
lea ecx, [ebp - 0x418]
call fcn.0040543c
lea ecx, [ebp - 0x428]
call fcn.00401263
mov eax, esi
call fcn.0040ded8
ret 0x10
Function at 0x408cc7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x408cda
push 0xd
pop eax
jmp 0x408d1e
push esi
xor eax, eax
push edi
mov dword [ebp + 0xc], eax
mov esi, eax
mov edi, edx
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp + 0xc]
jne 0x408ced
sub ecx, dword [ebp - 4]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x408ce5
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x408d25
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x408d37
push 0xd
pop eax
jmp 0x408d69
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408d40
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x409c7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4132a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push 0x4127c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409ce4
cmp dword [ebp - 0x210], 4
jb 0x409ce4
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00409d9e
jmp 0x409ce6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d750
mov esp, ebp
pop ebp
ret 8

Function at 0x409cf8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4132a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x409d8b
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x409d8b
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00409d9e
jmp 0x409d8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d750
mov esp, ebp
pop ebp
ret 4
Function at 0x40d1b5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x101
push ebx
mov edi, str.SoftwareMicrosoftClickToRunOverRide
mov dword [ebp - 4], ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d236
lea eax, [ebp - 8]
mov edi, str.AllowJitvInAppvVirtualizedProcess
push eax
push edi
push dword [ebp - 4]
call fcn.0040d717
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Registry_override
test al, al
je 0x40d21f
cmp dword [ebp - 8], ebx
setne bl
call esi
push edi
call esi
test bl, bl
je 0x40d218
push str._is_enabled.__C2R_JitV_will_run_in_AppV_virtualized_processes._n
jmp 0x40d229
push str._is_disabled.__C2R_JitV_will_NOT_run_in_AppV_virtualized_processes._n
jmp 0x40d229
call esi
push edi
call esi
push str._not_found_n
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d24d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Registry_override_key
call esi
push edi
call esi
push str._does_not_exist_n
call esi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d75d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x4132a4], eax
je 0x40d77f
cmp dword [0x4132a4], ebx
jne 0x40d813
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x4132a4
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x4132a4
push 4
push edi
mov dword [0x4132a4], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x4132a4]
not eax
mov dword [0x417220], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da4e
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x415438
call fcn.0040dfe4
push 1
call fcn.0040dad1
pop ecx
test al, al
jne 0x40d8f7
push 7
call fcn.0040e633
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0040da9c
mov byte [ebp - 0x24], al
mov eax, dword [0x4175dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40d8f0
test eax, eax
jne 0x40d961
mov dword [0x4175dc], ecx
push 0x4112c4
push 0x4112ac
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40d944
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40da48
push 0x4112a8
push 0x411274
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4175dc], 2
jmp 0x40d966
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040dc2e
pop ecx
call fcn.0040e627
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40d996
push esi
call fcn.0040dba1
pop ecx
test al, al
je 0x40d996
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.0040e862
call esi
call fcn.0040e62d
mov esi, eax
cmp dword [esi], edi
je 0x40d9b4
push esi
call fcn.0040dba1
pop ecx
test al, al
je 0x40d9b4
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0040e748
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0040e77b
test al, al
jne 0x40d9ed
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40d9f6
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.0040dc4b
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40da48
call fcn.0040e02a
ret
call fcn.0040d75d
jmp 0x40d8d8
Function at 0x509030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb2000]
push edi
jmp 0x50904a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x509051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x509040
mov eax, 1
add ebx, ebx
jne 0x509063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x509074
jne 0x509093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x509093
dec eax
add ebx, ebx
jne 0x509080
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x509058
add ebx, ebx
jne 0x50908f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5090e5
xor ecx, ecx
sub eax, 3
jb 0x5090ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50911a
sar eax, 1
mov ebp, eax
jmp 0x5090b6
add ebx, ebx
jne 0x5090b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x509084
inc ecx
add ebx, ebx
jne 0x5090c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x509084
add ebx, ebx
jne 0x5090d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5090c6
jne 0x5090e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5090c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x509104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5090f6
jmp 0x509046
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x509104
add edi, ecx
jmp 0x509046
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x509122
cmp byte [edi], 0x11
jne 0x509122
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x509127
lea edi, [esi + 0x102000]
mov eax, dword [edi]
or eax, eax
je 0x50919f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x138f8c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x139108]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x509154
mov ecx, edi
jns 0x509183
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13910c]
or eax, eax
je 0x509199
mov dword [ebx], eax
add ebx, 4
jmp 0x509171
call dword [esi + 0x13911c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5091d0
cmp al, 0xef
ja 0x5091c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5091a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5091b2
mov ebp, dword [esi + 0x139110]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x509204
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x20ca2c87
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x217f0a5d
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x415c59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415cb0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x494c40
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415ca7
mov byte [0x496c6c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret