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

Disassembly:
xchg ecx, eax
dec byte [ecx + 0x1ddb3be7]
insd dword es:[edi], dx
invalid
pop esi
jmp 0x768cd7
push edx
pop esp
outsd dx, dword [esi]
adc edi, dword [0x77f5d975]
pop esi
invalid
add esi, 0xffffff98
jmp 0x768cf9
cmp dword [esi], 0
stc
jb 0x768d13
dec esp
push es
sub bh, byte [ecx]
dec ebx
inc edx
add al, 0x3c
into
push esi
lahf
clc
pop ds
pop ss
xor eax, 0xf86b9ba
test byte [eax - 0x7ffffff], ah
je 0x768eb9
clc
jae 0x768d22
jl 0x768cae
mov ch, byte [0xfe8b0efe]
mov edi, esi
jae 0x768d31
xchg dword [esi], ecx
mov cl, 0x50
dec ebp
jl 0x768d98
pop ebx
lds eax, [edi + 0x4c6832e]
add esi, 4
jmp 0x768d5f
mov eax, dword [esi]
jmp 0x768d84
add eax, esi
clc
jmp 0x768d9f
mov dword [0x4e230cb0], eax
test al, 0x78
mov edx, dword [esi + 4]
jmp 0x768dbd
sub dword [eax], 0x3c7c9d73
jmp 0x768dcc
add eax, 4
jmp 0x768df9
sub edx, 1
stc
jmp 0x768e03
jne 0x768da2
test dword [ecx + 0x72ffffff], ebx
adc dword [edi], esp
jb 0x768e1c
daa
dec edx
invalid
add esi, 8
jmp 0x768e2e
sub dword [edi], 1
clc
jae 0x768e5d
insd dword es:[edi], dx
mov ss, word [ebx - 2]
mov edi, 0xd2ee2924
js 0x768e04
xchg edi, eax
mov dword [0x1fd921e5], eax
int1
mov ebx, 0xec30da07
in al, dx
add esp, dword [esi + 0x75]
adc byte [eax - 0x29c8a414], bl
push ebp
imul byte [ebx]
hlt
jne 0x768d34
stc
jmp 0x768e89
mov ebx, esi
jb 0x768eb4
inc ecx
and al, 0x7b
popal
sbb ebx, dword [ebx]
inc ecx
push ecx
sbb eax, dword [ecx + 0x51]
invalid
call 0x768ecc
jmp 0x768ec0
popal
stc
jb 0x768ec7
je 0x768e92
cmpsd dword [esi], dword es:[edi]
jmp 0x7232db
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x805df8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805dfe
pop ebp
sub ebp, 6
sub ebp, 0x405df8
jmp 0x805e5c
jmp 0x805e65
add byte [eax], al
add byte [ecx - 0x73], dh
add ebx, dword [esi]
mov eax, 0x405df8
add eax, ebp
add eax, 0x93
mov ecx, 0x636
mov edx, 0xba752427
xor byte [eax], dl
inc eax
dec ecx
jne 0x805e7c
jmp 0x805e8f
dec ebp
dec edi
daa
aaa
daa
daa
dec edi
daa
jmp 0x805ea5
jae 0x805ebc
out 0x77, eax
fdiv dword [edx + 0x2711f627]
ja 0x805e5e
ljmp 0x2727:0x271baeac
daa
daa
daa
and al, 0xea
lahf
and dword [edi], esp
daa
daa
popfd
invalid
Function at 0x4025e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, 0x3ee
push 0
push eax
call fcn.00408610
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402732
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.BINARY
mov edi, eax
push 0x81
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402728
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402728
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x402728
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebp + 0x1c], 8
mov ebx, eax
push 0
push 0x80
push 2
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x210], ebx
cmovae eax, dword [ebp + 8]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x402728
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x40271c
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x402719
mov edx, dword [ebp - 0x210]
mov ecx, eax
push edx
push dword [ebp - 0x214]
call fcn.00406660
add esp, 8
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call ebx
push dword [ebp - 0x21c]
call ebx
test esi, esi
je 0x402730
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
pop ebx
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x402768
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40275e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402779
push edx
push ecx
call fcn.00406bda
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406958
mov esp, ebp
pop ebp
ret
call fcn.00409e97
int3
Function at 0x403a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, edx
mov dword [ebp - 8], eax
push edi
mov edi, 0xf003f
cmp ebx, 0x80000002
jne 0x403ac4
cmp dword [ebp + 0x18], esi
mov edi, 0xf013f
mov ecx, 0xf023f
cmovne edi, ecx
jmp 0x403ac8
test ebx, ebx
je 0x403b2e
lea ecx, [ebp - 4]
push ecx
push edi
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403aff
push 0
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0
push 0
push 0
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x403aff
mov esi, 0x80004005
jmp 0x403b20
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 0x80004005
cmovne esi, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x403b2e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov al, cl
mov bl, 1
movzx esi, al
mov ecx, 0x20019
add esi, 0x80000001
mov byte [ebp - 1], al
push edi
cmp esi, 0x80000002
mov eax, 0x20219
cmovne eax, ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClients
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403f83
push dword [ebp - 0xc]
call edi
jmp 0x403f88
cmp eax, 2
je 0x403fe4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0
push 0x41e4c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403fa8
push dword [ebp - 0xc]
call edi
jmp 0x403fad
cmp eax, 2
je 0x403fe4
mov eax, 0xf003f
cmp esi, 0x80000002
jne 0x403fcb
cmp byte [ebp - 1], 0
mov eax, 0xf013f
mov ecx, 0xf023f
cmovne eax, ecx
push 0
push eax
push 0x41e4c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClientState
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404004
push dword [ebp - 0xc]
call edi
jmp 0x404009
cmp eax, 2
je 0x40406e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0
push 0x41e558
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404029
push dword [ebp - 0xc]
call edi
jmp 0x40402e
cmp eax, 2
je 0x40406e
mov eax, 0xf003f
cmp esi, 0x80000002
jne 0x40404c
cmp byte [ebp - 1], 0
mov eax, 0xf013f
mov ecx, 0xf023f
cmovne eax, ecx
push 0
push eax
push 0x41e558
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor edx, edx
movzx ecx, bl
test eax, eax
pop edi
cmovne ecx, edx
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404080
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov al, cl
mov bl, 1
movzx esi, al
mov ecx, 0x20019
add esi, 0x80000001
mov byte [ebp - 1], al
push edi
cmp esi, 0x80000002
mov eax, 0x20219
cmovne eax, ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClients
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4040d3
push dword [ebp - 0xc]
call edi
jmp 0x4040d8
cmp eax, 2
je 0x404134
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClients1FAB8CFE_9860_415C_A6CA_AA7D12021940
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4040f8
push dword [ebp - 0xc]
call edi
jmp 0x4040fd
cmp eax, 2
je 0x404134
mov eax, 0xf003f
cmp esi, 0x80000002
jne 0x40411b
cmp byte [ebp - 1], 0
mov eax, 0xf013f
mov ecx, 0xf023f
cmovne eax, ecx
push 0
push eax
push str.SOFTWAREMicrosoftEdgeUpdateClients1FAB8CFE_9860_415C_A6CA_AA7D12021940
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClientState
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404154
push dword [ebp - 0xc]
call edi
jmp 0x404159
cmp eax, 2
je 0x4041be
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0
push str.SOFTWAREMicrosoftEdgeUpdateClientState1FAB8CFE_9860_415C_A6CA_AA7D12021940
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404179
push dword [ebp - 0xc]
call edi
jmp 0x40417e
cmp eax, 2
je 0x4041be
mov eax, 0xf003f
cmp esi, 0x80000002
jne 0x40419c
cmp byte [ebp - 1], 0
mov eax, 0xf013f
mov ecx, 0xf023f
cmovne eax, ecx
push 0
push eax
push str.SOFTWAREMicrosoftEdgeUpdateClientState1FAB8CFE_9860_415C_A6CA_AA7D12021940
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor edx, edx
movzx ecx, bl
test eax, eax
pop edi
cmovne ecx, edx
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4057d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x421a28
push 0
call fcn.004068f1
mov edi, eax
mov dword [ebp - 8], 1
test edi, edi
je 0x405965
mov eax, dword [ebp + 8]
shr eax, 4
mov dword [ebp - 0x10], eax
lea ecx, [eax + 1]
movzx eax, cx
mov dword [ebp - 0xc], eax
nop dword [eax + eax]
push 0
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x40586c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40586c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40586c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405862
cmp esi, edx
jae 0x40586c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405850
cmp esi, edx
jae 0x40586c
cmp word [esi], 0
jne 0x40588d
mov ebx, dword [ebp - 8]
mov ecx, 0x421a28
push ebx
call fcn.004068f1
mov edi, eax
inc ebx
mov dword [ebp - 8], ebx
test edi, edi
je 0x405965
mov eax, dword [ebp - 0xc]
jmp 0x405810
test edi, edi
je 0x405965
mov eax, dword [ebp - 0x10]
inc eax
push 6
movzx eax, ax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x405965
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405965
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405965
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and ebx, 0xf
jbe 0x4058f6
cmp esi, ecx
jae 0x405965
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ebx, 1
jne 0x4058e4
cmp esi, ecx
jae 0x405965
movzx eax, word [esi]
test ax, ax
je 0x405965
mov edx, dword [ebp - 4]
mov edi, eax
mov ebx, eax
mov ecx, 1
mov edx, dword [edx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40592c
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call fcn.00405ad0
mov edx, dword [ebx]
movzx ebx, word [esi]
movzx ecx, bx
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00409f74
push eax
call fcn.00401190
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ecx]
cmp edi, dword [eax - 8]
jg 0x405970
mov dword [eax - 0xc], edi
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401170
int3
Function at 0x402b7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x434f70]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4553ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402d69
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x442800
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x434ecc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00405a70
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a018], edi
jne 0x402dc3
mov eax, str.Error_launching_installer
jmp 0x402f9b
push esi
mov esi, 0x440800
push esi
call fcn.00405e04
push esi
call fcn.0040589b
push eax
push 0x443000
call fcn.00405e04
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x42a9d0], eax
mov esi, eax
jle 0x402ede
mov ebx, 0x4229d0
mov eax, dword [0x434ed4]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402e17
mov edi, eax
push edi
push ebx
call fcn.004031cd
test eax, eax
je 0x402f48
cmp dword [0x434ed4], 0
jne 0x402ea9
push 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00405a2b
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x402eb7
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x402eb7
jmp 0x4588fd
test byte [ebp + 8], 2
jne 0x402eb7
push 0
call fcn.00402d05
pop ecx
cmp esi, dword [0x42a9d0]
jge 0x402ecc
push edi
push ebx
push dword [ebp - 8]
call fcn.0040621c
mov dword [ebp - 8], eax
add dword [0x4169c0], edi
sub esi, edi
test esi, esi
jg 0x402dfc
xor ebx, ebx
push 1
call fcn.00402d05
cmp dword [0x434ed4], ebx
pop ecx
je 0x402f41
cmp dword [ebp - 4], ebx
je 0x402f15
push dword [0x4169c0]
call fcn.004031e3
lea eax, [ebp + 8]
push 4
push eax
call fcn.004031cd
test eax, eax
je 0x402f41
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x402f41
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x434ed4]
add eax, 0x1c
push eax
call fcn.004031e3
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402fa2
cmp eax, dword [ebp - 0x14]
je 0x402f52
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
jmp 0x402f9b
push 1
call fcn.00402d05
pop ecx
jmp 0x402f41
test byte [ebp - 0x28], 1
mov dword [0x434ed0], esi
mov eax, dword [esi]
mov dword [0x434ed8], eax
je 0x402f6b
inc dword [0x434edc]
push 8
lea eax, [esi + 0x44]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x402f71
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
add esi, 4
push 0x40
push esi
push 0x434ee0
call fcn.00405a2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402fa2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402fc2
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402fd4
mov dword [ebp - 0xc], 0x41a9c8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fe9
mov ecx, dword [0x434f18]
add ecx, eax
push ecx
call fcn.004031e3
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004031cd
test eax, eax
je 0x403178
test byte [ebp + 0x17], 0x80
je 0x403161
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40d32c], 0
and dword [0x40d328], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40e9b0
mov dword [0x40ce10], 8
mov dword [0x4169b8], eax
mov dword [0x4169b4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4169b0], 0x4169b0
mov dword [ebp + 8], eax
jle 0x4031c3
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403062
mov esi, dword [ebp + 0x14]
mov edi, 0x4169c8
push esi
push edi
call fcn.004031cd
test eax, eax
je 0x403178
sub dword [ebp + 0x14], esi
jmp 0x45c232
push 0xfffffffffffffffe
jmp 0x40317a
test edi, edi
je 0x4031b8
cmp dword [ebp + 0x14], esi
jge 0x40316d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004031cd
test eax, eax
jne 0x4031c0
push 0xfffffffffffffffd
pop eax
jmp 0x4031c6
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403188
mov esi, dword [ebp + 0x14]
mov edi, 0x4169c8
push esi
push edi
call fcn.004031cd
test eax, eax
je 0x403178
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40315d
cmp esi, dword [ebp + 0x10]
jne 0x40315d
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40317d
jmp 0x4031c3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40557f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430220], 0x44
push eax
xor eax, eax
push 0x430220
push eax
jmp loc.0045773c

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a4b
mov edi, eax
cmp edi, 0xffffffff
je 0x405685
test byte [esp + 0x10], 1
push esi
je 0x405667
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40566d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405676
jmp 0x458312
test byte [esp + 0x10], 4
jne 0x405685
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40568c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405957
test bl, 8
mov dword [ebp - 8], eax
je 0x4056cb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp loc.00456d5f
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4056e5
test eax, eax
je 0x4057f6
test bl, 2
je 0x4057f6
mov esi, 0x42f220
push edi
push esi
call fcn.00405e04
cmp dword [ebp + 8], 0
je 0x405704
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x40570a
push edi
call fcn.0040589b
cmp word [edi], 0
jne 0x40571a
cmp word [0x42f220], 0x5c
jne 0x405725
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057eb
cmp word [ebp - 0x22c], 0x2e
jne 0x40576f
cmp word [ebp - 0x22a], 0
je 0x4057ce
cmp word [ebp - 0x22a], 0x2e
jne 0x40576f
cmp word [ebp - 0x228], 0
je 0x4057ce
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405e04
test byte [ebp - 0x258], 0x10
je 0x40579a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4057ce
push dword [ebp + 0xc]
push edi
call fcn.0040568c
jmp 0x4057ce
push dword [ebp - 4]
push edi
call fcn.00405644
test eax, eax
jne 0x4057c6
cmp dword [ebp - 4], eax
je 0x4057be
push edi
push 0xfffffffffffffff1
call fcn.004050ae
push 0
push edi
call fcn.00405c9e
jmp 0x4057ce
inc dword [0x434f48]
jmp 0x4057ce
push edi
push 0xfffffffffffffff2
call fcn.004050ae
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405747
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057f6
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405848
cmp dword [ebp - 8], esi
jne 0x40580a
inc dword [0x434f48]
jmp 0x405848
push edi
call fcn.00406147
test eax, eax
je 0x405848
push edi
call fcn.0040584f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405644
test eax, eax
jne 0x405840
cmp dword [ebp - 4], esi
je 0x405802
push edi
push 0xfffffffffffffff1
call fcn.004050ae
push esi
push edi
call fcn.00405c9e
jmp 0x405848
push edi
push 0xffffffffffffffe5
call fcn.004050ae
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa20
push esi
call fcn.00405e04
jmp loc.004598c5

Function at 0x405a4b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a6a
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp loc.004541f9