joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431420
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
jmp 0x43143a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431430
mov eax, 1
add ebx, ebx
jne 0x431453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431448
jne 0x431464
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431448
xor ecx, ecx
sub eax, 3
jb 0x431478
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4314ea
mov ebp, eax
add ebx, ebx
jne 0x431483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x431490
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4314b4
inc ecx
add ebx, ebx
jne 0x4314a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x431495
jne 0x4314b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431495
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4314d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4314c5
jmp 0x431436
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4314d4
add edi, ecx
jmp 0x431436
pop esi
mov edi, esi
mov ecx, 0xa88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4314f2
cmp byte [edi], 0x12
jne 0x4314f2
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 0x4314f7
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x43156f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39808]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x398e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431524
mov ecx, edi
jns 0x431553
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 + 0x398f0]
or eax, eax
je 0x431569
mov dword [ebx], eax
add ebx, 4
jmp 0x431541
call dword [esi + 0x398ec]
mov ebp, dword [esi + 0x398f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x4315a3
sub esp, 0xffffff80
jmp 0x41c35f
Function at 0x402e35
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x401420
call fcn.00403038
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402e72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402e72
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402e8a
cmp eax, 0x20b
je 0x402e77
mov dword [ebp - 0x1c], ebx
jmp 0x402e9e
cmp dword [ecx + 0x84], 0xe
jbe 0x402e72
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x402e98
cmp dword [ecx + 0x74], 0xe
jbe 0x402e72
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x404204], 0xffffffff
or dword [0x404208], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x404154]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x404150]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40420c], eax
call fcn.0040302e
cmp dword [0x4040b0], ebx
jne 0x402ef9
push fcn.0040302e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00403017
push 0x404010
push 0x40400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x40414c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x404148]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x404008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x402f8f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x402f63
cmp al, 0x22
jne 0x402f55
cmp byte [esi], 0x22
jne 0x402f6c
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x402f76
cmp al, 0x20
jbe 0x402f68
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x402f9a
movzx eax, word [ebp - 0x50]
jmp 0x402f9d
cmp byte [esi], 0x20
jbe 0x402f6c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402f8f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x402fba
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x402fef
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403073
ret

Function at 0x7bb06c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7bb076
pushal
call 0x7bb07c
pop ebp
sub ebp, 0x10
sub ebp, 0x3bb06c
jmp 0x7bb092
mov eax, 0x3bb06c
add eax, ebp
add eax, 0x4c
mov ecx, 0x608
mov edx, 0xd9b6b548
xor byte [eax], dl
inc eax
dec ecx
jne 0x7bb0a9
jmp 0x7bb0bc
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x406243
pop dword [ebp - 0xc]
mov eax, 0x406243
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xd225e9ce
sub dword [ebp - 0x1c], 0x83d3a483
mov dword [ebp - 0x18], 0xfb8f052e
add dword [ebp - 0x18], 0x36a44717
mov dword [ebp - 0x14], 0x9683efe1
add dword [ebp - 0x14], 0xb5c8544d
mov dword [ebp - 0x10], 0xf2bf9f91
add dword [ebp - 0x10], 0xd40606f
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc6930c89
sub dword [ebp - 0x1c], 0x5220a333
mov dword [ebp - 0x18], 0xeea2426d
sub dword [ebp - 0x18], 0xad35e0f8
mov dword [ebp - 0x14], 0xe8ab372
add dword [ebp - 0x14], 0x54e4b8fa
mov dword [ebp - 0x10], 0x5cb67615
add dword [ebp - 0x10], 0xa34989eb
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x5396da41
add eax, 0xaca9a6bf
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3809f
push 0
call eax
mov ecx, 0xa15790c
sub ecx, 0xa152cfc
xor edx, edx
add edx, eax
mov ebx, 0x7f1d9044
add ebx, 0x812953bc
add ebx, dword [ebp - 0xc]
mov esi, 0x5670c7c
add esi, 0x3179f4cd
xor dword [ebp - 8], 0xe52deabe
mov edi, dword [ebx]
xor dword [ebp - 8], 0x99c1d61
xor edi, esi
sub dword [ebp - 4], ecx
mov dword [edx], edi
add dword [ebp - 8], 0x26860a3a
add edx, 4
add ebx, 4
loop 0x40635d
add eax, 0x68f3116b
add eax, 0x970e11a8
mov ebx, eax
add eax, 0xf3bd749
sub eax, 0xf3bd744
mov ecx, 0x3a367b11
add ecx, 0xc60984ef
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x404105
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404168
cmp dword [ebp + 0xc], 1
je 0x404141
cmp dword [ebp + 0xc], 2
je 0x404141
push 0xd
pop eax
jmp 0x404168
test edi, edi
mov eax, dword [ebp - 4]
je 0x404162
test eax, eax
je 0x40415e
test al, 1
jne 0x40413c
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x404162
jmp 0x40413c
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x404486
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x448bce
call fcn.00432bc0
xor ecx, ecx
inc ecx
mov dword [0x464548], ecx
mov eax, dword [esi + 0xa0]
cmp eax, ecx
jge 0x4044c4
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.004072c7
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x4644a0
jmp fcn.004053b4
dec eax
lea ecx, [esi + 0x90]
cmp dword [ecx], eax
je 0x4044e4
mov dword [ecx], eax
lea ecx, [esi + 0x98]
call fcn.00404d22
push dword [eax]
push esi
call fcn.00404451
call fcn.00432c98
ret

Function at 0x4044ea
Capabilities:
Terminate process

Disassembly:
push 0x14
mov eax, 0x448ba9
call fcn.00432bc0
lea ecx, [ebp - 0x14]
call fcn.00408a81
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push 0x4509ac
mov ecx, 0x4645f8
call fcn.004226c2
test eax, eax
jne 0x404538
push 0xbd3
lea eax, [ebp - 0x20]
push eax
call fcn.004072c7
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ecx, 0x4644a0
jmp fcn.004053b4
lea ecx, [ebp - 0x10]
call fcn.00408a81
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
mov edi, esi
jmp 0x404582
cmp word [esi], 0x2c
jne 0x404580
mov eax, esi
sub eax, edi
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.0040164e
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x40457d
lea ecx, [ebx + 0x98]
mov eax, dword [ecx + 8]
lea edx, [ebp - 0x10]
push edx
push eax
call fcn.00424634
lea edi, [esi + 2]
inc esi
inc esi
cmp word [esi], 0
jne 0x40454b
push edi
call fcn.0042dc1f
test eax, eax
pop ecx
je 0x4045a3
lea ecx, [ebx + 0x98]
mov eax, dword [ecx + 8]
push edi
push eax
call fcn.00424684
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408aab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00408aab
call fcn.00432c98
ret

Function at 0x405195
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.004258ca
push dword [esp + 0xc]
mov esi, dword [eax + 0xc]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4051b5
xor eax, eax
jmp 0x4051c8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4051b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret 8
Function at 0x4053b4
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
je 0x4053ed
push ebx
mov ebx, ecx
add ebx, 0x190
push edi
mov edi, dword [ebx]
test edi, edi
je 0x4053e0
call fcn.004091cd
mov edx, dword [ebx]
push 0
push str.InstallBroken
call fcn.00408a2b
pop ecx
pop ecx
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop ebx
push 1
call fcn.0042ed6b
pop esi

Function at 0x40545d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448fe3
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45fd70]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x45fd70]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
lea eax, [esp + 0xec]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ebx, ebx
cmp eax, ebx
je 0x4054cb
push 0xffffffffffffffff
push 0x10
push 0xbd0
call fcn.00424311
jmp 0x40562f
push 0x404da7
call fcn.0042ea25
pop ecx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
lea eax, [esp + 0x30]
push eax
xor edi, edi
lea eax, [esp + 0x20]
inc edi
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call sub.gdiplus.dll_GdiplusStartup
call fcn.0042895b
mov ecx, esi
call fcn.00427bdf
push ebx
push str.042B0D65_EF5B_4E3F_ADFF_86C726E4F053
push ebx
lea ecx, [esp + 0x28]
call fcn.00428994
mov dword [esp + 0x290], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4055a0
lea ecx, [esp + 0x14]
call fcn.00408a81
mov byte [esp + 0x290], 1
mov esi, 0xbcb
push esi
lea ecx, [esp + 0x18]
call fcn.00401968
test eax, eax
jne 0x40556d
call fcn.00422bd4
call fcn.004258ca
push dword [eax + 0x10]
lea eax, [esp + 0x18]
push esi
push eax
call fcn.004013f9
add esp, 0xc
push ebx
push ebx
push dword [esp + 0x1c]
call fcn.004242c8
mov byte [esp + 0x290], bl
lea ecx, [esp + 0x14]
call fcn.00408aab
jmp 0x40561e
push esi
call fcn.004053f5
push str.SlimWare_Utilities_Inc
mov ecx, esi
call fcn.00428a1f
call fcn.004258ca
mov eax, dword [eax + 0x10]
lea ecx, [esi + 0xb8]
push eax
call fcn.00401629
or dword [esi + 0xac], 0xffffffff
lea eax, [esp + 0x3c]
push eax
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xc0], ebx
call fcn.0040429b
mov byte [esp + 0x290], 2
lea eax, [esp + 0x3c]
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0041c46b
push dword [esp + 0x18]
call sub.gdiplus.dll_GdiplusShutdown
mov byte [esp + 0x290], bl
lea ecx, [esp + 0x3c]
call fcn.00404371
or dword [esp + 0x290], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004289dc
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0042dc10
mov esp, ebp
pop ebp
ret
Function at 0x405a27
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x448719
call fcn.00432bc0
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CProgressPage.0
mov dword [ebp - 4], 3
xor edi, edi
cmp dword [esi + 0x118], edi
je 0x405a6f
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.00404d22
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x405a55
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.00428c5b
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.00428c5b
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.0042451d
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040ebf9
call fcn.00432c98
ret

Function at 0x4061a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448c38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x45fd70]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0xc], ecx
call fcn.0040f7c5
mov eax, dword [0x4644c0]
cmp dword [eax + 0x80], 0
je 0x4061fc
mov ecx, dword [esp + 0xc]
push 0x3e8
call fcn.0041c765
test eax, eax
je 0x4061fc
push eax
push 1
call fcn.0040eda7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, 0x407
jne 0x406276
push 0x20
mov esi, 0x411
push esi
call fcn.00405195
mov edi, eax
test edi, edi
je 0x406276
push 0x20
push esi
call fcn.004051cc
push 0
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.004266f3
and dword [esp + 0x50], 0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 2
push 0x449
push 0x3ee
mov dword [esp + 0x28], 0x406184
call fcn.0041c765
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00426a84
xor eax, eax
inc eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409265
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x409277
mov eax, 0x80070057
jmp 0x4092c0
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x4092a3
jle 0x4092c0
and eax, 0xffff
or eax, 0x80070000
jmp 0x4092c0
push dword [edi + 0xc]
push dword [edi + 8]
push 3
push esi
push str.InstallerOverlay
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
jne 0x409295
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4092c5
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10000
mov edi, 0x8007000e
call fcn.0042f484
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x409372
push 0x7fff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x409312
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x40930e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x409372
push esi
push esi
push 3
push esi
push 1
push Ordinal_4
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4092fa
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4092fa
cmp dword [ebp - 4], 0x7fffffff
jg 0x409372
push esi
push esi
push esi
push 2
push esi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
je 0x4092fa
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x4092fa
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409e1d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0042e720
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x1000000
push esi
push esi
push esi
call fcn.00403f0e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov ebx, eax
call fcn.004040bf
cmp edi, esi
jne 0x409e7c
xor eax, eax
jmp 0x409e8f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a5e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x45fd70]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x447579
call fcn.00432bc0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x452690
mov ecx, edi
call fcn.0040153f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x218]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40a666
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00401629
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.00408aab
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 + 0x208]
xor ecx, ebp
call fcn.0042dc10
add ebp, 0x20c
leave
ret
Function at 0x40a699
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x45fd70]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x34
mov eax, 0x447e57
call fcn.00432bc0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea edi, [ebp + 0x218]
call fcn.0040ab22
mov ecx, dword [ebp - 0x20]
push 0x4513ec
call fcn.0040153f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], esi
call fcn.0040153f
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push Ordinal_4
call esi
cmp eax, ebx
jne 0x40a864
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], ebx
je 0x40a864
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x40a851
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040153f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00408a81
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x40a839
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.DisplayName
call fcn.0040153f
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x40]
call fcn.0040a5e4
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.00401ac2
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00408aab
lea edi, [ebp - 0x14]
call fcn.0040ab22
push dword [ebp + 0x218]
mov ecx, edi
call fcn.004025e1
test eax, eax
jne 0x40a839
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.UninstallString
call fcn.0040153f
mov byte [ebp - 4], 7
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x34]
call fcn.0040a5e4
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00401ac2
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00408aab
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00408aab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00408aab
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 0x104
je 0x40a745
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00408aab
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.00408aab
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042dc10
add ebp, 0x20c
leave
ret