joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4380c0], 0x24e1
mov eax, dword [0x4380c0]
sub eax, 0x24e1
mov dword [0x4380c0], eax
mov ecx, 1
test ecx, ecx
je 0x401bdb
mov edx, dword [0x4380c0]
cmp edx, dword [ebp + 0xc]
jb 0x401b67
jmp 0x401bdb
cmp dword [0x4380c0], 0
jne 0x401b85
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401b85
xor eax, eax
jmp 0x401bdb
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
mov ecx, dword [eax]
add ecx, dword [0x4380c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4380c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x85
mov eax, dword [0x4380c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
push eax
call fcn.004011f0
add esp, 8
mov ecx, dword [0x4380c0]
add ecx, 4
mov dword [0x4380c0], ecx
jmp 0x401b4d
mov esp, ebp
pop ebp
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x448802
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x45ba77
sub esp, 0x24
mov eax, dword [0x503038]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x45bae5
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.00448e6a
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.0044aadf
pop ecx
pop ecx
test al, al
jne 0x45bafc
lea ecx, [esp + 0x18]
add edi, 4
call fcn.0044aa76
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x45bab0
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044a06c
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.0044aa76
jmp 0x45bae7

Function at 0x44a60c
Capabilities:
Terminate process

Disassembly:
jmp 0x4919ae
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4919bf
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0044c97a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x44a73d
Capabilities:
Query environment variable

Disassembly:
jmp 0x4d0225
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d0239
xor edi, edi
jmp 0x4d0270
push ebx
push esi
call fcn.004d012f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044b00c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d0260
push ebx
push esi
push edi
call fcn.0044c736
add esp, 0xc
push 0
call fcn.0044d2fd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x44ac3d
Capabilities:
Encode data using xor

Disassembly:
jmp 0x45c19d
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x45c291
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0x505728
mov bl, byte [esi + edi]
push str.ugAyuisyx
push ebp
call fcn.00449d88
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x44d1a9
push str.Bicycle_water
mov bh, byte [edx + section..REMO]
push 0x505810
xor bh, bl
call fcn.00449d88
pop ecx
pop ecx
mov ecx, eax
call fcn.0044c727
mov bl, byte [esi + edi]
push 0x44d1a9
push str.dijovhyuGSYYSyus
push ebp
call fcn.00449d88
pop ecx
pop ecx
mov ecx, eax
call fcn.0044c727
add byte [esi + edi], bh
push 0x44d1a9
push str.fdiogiuAsdoiHYUAUAY87234
push ebp
call fcn.00449d88
pop ecx
pop ecx
mov ecx, eax
call fcn.0044c727
dec byte [esi + edi]
push str.suih89Ah3
push ebp
call fcn.00449d88
add byte [esi + edi], 0xfe
push str.XScdyhjkujktyyt
push ebp
call fcn.00449d88
sub byte [esi + edi], bl
push str.sJBCsKJ2BJN
push ebp
call fcn.00449d88
inc byte [esi + edi]
push str.sDGTFsE
push ebp
call fcn.00449d88
inc byte [esi + edi]
push str.ZASwe23
push ebp
call fcn.00449d88
inc byte [esi + edi]
push str.uhgiyGAuyisua
push ebp
call fcn.00449d88
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0x45c1b6
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x44c812
Capabilities:
Parse pe header

Disassembly:
jmp 0x480af1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x480b30
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x480b30
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x480b30
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x480b30
cmp dword [ecx + 0x74], 0xe
jbe 0x480b30
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
jmp 0x45bb42
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x55fb98], eax
pop edi
pop esi
ret
Function at 0x408660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x408682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408678
mov eax, 1
add ebx, ebx
jne 0x40869b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408690
jne 0x4086ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408690
xor ecx, ecx
sub eax, 3
jb 0x4086c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408732
mov ebp, eax
add ebx, ebx
jne 0x4086cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4086d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4086fc
inc ecx
add ebx, ebx
jne 0x4086e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4086dd
jne 0x4086f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4086dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40871c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40870d
jmp 0x40867e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40871c
add edi, ecx
jmp 0x40867e
pop esi
mov edi, esi
mov ecx, 0x20
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40873a
cmp byte [edi], 4
jne 0x40873a
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 0x40873f
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x4087b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9df4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40876c
mov ecx, edi
jns 0x40879b
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 + 0x9e54]
or eax, eax
je 0x4087b1
mov dword [ebx], eax
add ebx, 4
jmp 0x408789
call dword [esi + 0x9e50]
mov ebp, dword [esi + 0x9e58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4087eb
sub esp, 0xffffff80
jmp 0x401b39
Function at 0x401225
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004052e5
test eax, eax
jne 0x40132e
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x40129a
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40130a
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4012d5
test edi, edi
jne 0x40130a
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.00401225
test eax, eax
jne 0x4012df
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4012ad
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00405767
test eax, eax
jne 0x40131b
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40132e
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40132e
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x402ee2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x402f0b
mov eax, dword [0x478258]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41d16c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00402d63
test eax, eax
js 0x402fe1
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call fcn.004057c9
test eax, eax
je 0x402fdc
push dword [ebp + 8]
add dword [0x41d16c], 4
call fcn.00402d63
mov esi, eax
test esi, esi
js 0x402fd8
cmp dword [ebp + 0x10], edi
jne 0x402fac
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x402fd8
mov ebx, 0x4000
mov edi, 0x42ed48
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x409014]
mov dword [ebp - 4], eax
call fcn.004057c9
test eax, eax
je 0x402fdc
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.0040588c
test eax, eax
je 0x402fa8
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x41d16c], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x402f64
jmp 0x402fd8
push 0xfffffffffffffffe
jmp 0x402fde
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402fdc
mov esi, dword [ebp - 4]
add dword [0x41d16c], esi
mov eax, esi
jmp 0x402fdf
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x403004
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x40302c
mov eax, dword [0x41d180]
test eax, eax
je 0x403023
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x41d180], 0
leave
ret
cmp dword [0x41d180], 0
je 0x40303e
push 0
call fcn.00405248
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x478200]
jbe 0x4030a8
cmp dword [0x4701f8], 0
je 0x403083
test byte [0x4782f4], 1
je 0x4030a8
call fcn.00402fe6
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.00404d73
leave
ret
push 0
push 0x4032d2
push 0
push 0x6f
push dword [0x4701f4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x41d180], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x4030aa
Capabilities:
Get file size

Disassembly:
sub esp, 0x224
push ebx
push esi
push edi
push 0x2000
mov edi, 0x4e5000
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push edi
call fcn.0040579c
mov esi, eax
mov dword [0x409010], esi
cmp esi, 0xffffffff
jne 0x4030eb
mov eax, str.Error_launching_installer
jmp 0x4032c6
push ebp
push edi
mov edi, 0x4d5000
push edi
call fcn.0040599b
push edi
call fcn.00405b2a
push eax
push 0x4e9000
call fcn.0040599b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [0x41d178], esi
test esi, esi
je 0x4031c6
mov ebp, 0x426d48
cmp dword [0x478208], ebx
mov eax, 0x8000
mov edi, 0x200
cmovne edi, eax
cmp esi, edi
cmovb edi, esi
push edi
push ebp
call fcn.00402d36
test eax, eax
je 0x4032c0
cmp dword [0x478208], ebx
jne 0x403196
push 0x1c
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040555e
mov ecx, dword [esp + 0x10]
test ecx, 0xfffffff0
jne 0x403196
cmp dword [esp + 0x14], 0xdeadbeef
jne 0x403196
cmp dword [esp + 0x20], 0x74736e49
jne 0x403196
cmp dword [esp + 0x1c], 0x74666f73
jne 0x403196
cmp dword [esp + 0x18], 0x6c6c754e
je 0x4031a2
add dword [0x41d17c], edi
sub esi, edi
jne 0x403126
jmp 0x4031c6
or ecx, dword [esp + 0x238]
mov eax, dword [0x41d17c]
and ecx, 2
or dword [0x4782e0], ecx
mov dword [0x478208], eax
cmp dword [esp + 0x28], esi
ja 0x4032c0
cmp dword [0x478208], ebx
je 0x4032c0
push dword [esp + 0x24]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 8
mov esi, eax
mov dword [0x41d6b4], ebx
pop edi
mov eax, 0x41ed38
mov dword [0x41d198], edi
mov dword [0x426d40], eax
mov dword [0x426d3c], eax
lea eax, [esp + 0x2c]
push 0x4dd000
push eax
mov dword [0x41d6b0], ebx
mov dword [0x426d38], 0x426d38
call fcn.004058d7
push ebx
push 0x4000100
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x409014], eax
cmp eax, 0xffffffff
jne 0x403248
mov eax, str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
jmp 0x4032c5
mov eax, dword [0x478208]
add eax, 0x1c
push eax
call fcn.00402d4c
push dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push esi
add ecx, 0xffffffe4
mov dword [0x41d170], eax
push ebx
add eax, ecx
push 0xffffffffffffffff
mov dword [0x41d174], eax
call fcn.00402ee2
cmp eax, dword [esp + 0x24]
jne 0x4032c0
test byte [esp + 0x10], 1
mov dword [0x478210], esi
mov eax, dword [esi]
mov dword [0x47820c], eax
je 0x403296
inc dword [0x478204]
mov ecx, edi
lea eax, [esi + 0x44]
sub eax, edi
add dword [eax], esi
sub ecx, 1
jne 0x40329b
mov eax, dword [0x41d16c]
mov dword [esi + 0x3c], eax
lea eax, [esi + 4]
push 0x40
push eax
push 0x478220
call fcn.0040555e
xor eax, eax
jmp 0x4032c5
mov eax, str.Installer_integrity_check_has_failed._Common_causes_include_nincomplete_download_and_damaged_media._Contact_the_ninstallers_author_to_obtain_a_new_copy._n_nMore_information_at:_nhttp:__nsis.sf.net_NSIS_Error
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x224
ret 4
Function at 0x404e57
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404e71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x404e77
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x4076f8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x4076e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404eef
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x404ee9
xor eax, eax
jmp 0x404eef
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x4051d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x405211
test eax, eax
je 0x405211
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x405213
mov ecx, 0x407270
jmp 0x405218
xor eax, eax
mov ecx, 0x407272
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40542f
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004059b7
mov edi, eax
cmp edi, 0xffffffff
je 0x405472
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x405453
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405459
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405462
xor eax, eax
inc eax
jmp 0x405474
test byte [ebp + 0xc], 4
jne 0x405472
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x462db8
push ebx
call fcn.0040599b
push ebx
call fcn.004059df
mov esi, eax
test esi, esi
je 0x405557
push esi
call fcn.00405b57
test byte [0x47820c], 0x80
je 0x40551b
movzx eax, word [esi]
test ax, ax
je 0x405557
cmp eax, 0x5c
je 0x405557
sub esi, ebx
sar esi, 1
jmp 0x405535
call fcn.00405479
test eax, eax
je 0x40552f
test byte [eax], 0x10
je 0x405557
push ebx
call fcn.00405b2a
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x405521
call fcn.00405400
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405557
xor eax, eax
inc eax
jmp 0x405559
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x405580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x45ed70], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x45ed70
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4055bf
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4055c3
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x260
push ebx
mov ebx, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004054e2
mov dword [esp + 0x18], eax
test bl, 8
je 0x405605
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4782c8], eax
jmp 0x40575b
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x405622
test eax, eax
je 0x40574a
test bl, 2
je 0x40572c
push esi
push 0x45edb8
call fcn.0040599b
test ebp, ebp
je 0x405643
push str..
push 0x45edb8
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x405649
push esi
call fcn.00405b2a
cmp word [esi], 0
jne 0x405659
cmp word [0x45edb8], 0x5c
jne 0x405665
push 0x407270
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
push 0x45edb8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x405718
mov ebp, dword [esp + 0x10]
push 0x2e
pop eax
cmp word [esp + 0x4c], ax
jne 0x4056b5
cmp word [esp + 0x4e], 0
je 0x4056f7
cmp word [esp + 0x4e], ax
jne 0x4056b5
cmp word [esp + 0x50], 0
je 0x4056f7
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x18]
call fcn.0040599b
test byte [esp + 0x20], 0x10
je 0x4056dc
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4056f7
push ebx
push esi
call fcn.004055c3
jmp 0x4056f7
push edi
push esi
call fcn.0040542f
test eax, eax
jne 0x4056ef
inc dword [0x4782c8]
jmp 0x4056f7
push esi
push 0xfffffffffffffff2
call fcn.00404d73
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x405697
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x40575a
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x1c], ecx
je 0x40574a
push esi
call fcn.00405479
test eax, eax
je 0x40575a
push esi
call fcn.00405400
or edi, 1
push edi
push esi
call fcn.0040542f
test eax, eax
jne 0x405752
inc dword [0x4782c8]
jmp 0x40575a
push esi
push 0xffffffffffffffe5
call fcn.00404d73
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x260
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc