joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
jne 0x401d5a
xor eax, eax
jmp 0x401de7
mov eax, dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
ja 0x401d73
xor eax, eax
jmp 0x401de7
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004047b4
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0x10]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401db0
xor eax, eax
jmp 0x401de7
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4310ec]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401dce
xor eax, eax
jmp 0x401de7
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00401d00
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4026f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x40
mov eax, dword [ebp + 0xc]
push eax
push 0x431828
call fcn.00402b00
add esp, 0xc
push 0x40
push 0x425798
push 0x431828
push 0x431828
call fcn.00402a00
add esp, 0x10
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x4027a1
mov dword [ebp - 4], 0
jmp 0x40273c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jge 0x40279f
push 0x20
mov eax, dword [0x42f0e8]
push eax
push 0x431808
call fcn.00412ad0
add esp, 0xc
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x30
add ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x42f0e8]
push edx
call fcn.00402900
add esp, 8
push 0x20
mov eax, dword [0x42f0e4]
push eax
mov ecx, dword [0x42f0e8]
push ecx
call fcn.00402a60
add esp, 0xc
push 0x20
push 0x431808
mov edx, dword [0x42f0e4]
push edx
call fcn.00412ad0
add esp, 0xc
jmp 0x402733
jmp 0x402816
mov dword [ebp - 8], 0xf
jmp 0x4027b3
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x402816
push 0x20
mov ecx, dword [0x42f0e4]
push ecx
push 0x431808
call fcn.00412ad0
add esp, 0xc
mov edx, dword [ebp - 8]
imul edx, edx, 0x30
add edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x42f0e4]
push eax
call fcn.00402900
add esp, 8
push 0x20
mov ecx, dword [0x42f0e8]
push ecx
mov edx, dword [0x42f0e4]
push edx
call fcn.00402a60
add esp, 0xc
push 0x20
push 0x431808
mov eax, dword [0x42f0e8]
push eax
call fcn.00412ad0
add esp, 0xc
jmp 0x4027aa
push 0x40
push 0x4257d8
push 0x431828
push 0x431828
call fcn.00402a00
add esp, 0x10
push 0x40
push 0x431828
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402b50
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x402850
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x40
mov eax, dword [ebp + 0xc]
push eax
push 0x431868
call fcn.00402b00
add esp, 0xc
push 0x38
push str.91__
push 0x431868
push 0x431868
call fcn.00402a00
add esp, 0x10
mov dword [ebp - 4], 0
jmp 0x402892
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jge 0x4028f0
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4258d0]
push eax
push 0x1c
mov ecx, dword [0x42f0f0]
push ecx
call fcn.00402ab0
add esp, 0xc
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x4258d0]
push eax
push 0x1c
mov ecx, dword [0x42f0ec]
push ecx
call fcn.00402ab0
add esp, 0xc
push 0x30
push 0x4258a0
push 0x431868
mov edx, dword [ebp - 4]
imul edx, edx, 0x30
add edx, dword [ebp + 8]
push edx
call fcn.00402a00
add esp, 0x10
jmp 0x402889
mov esp, ebp
pop ebp
ret

Function at 0x402900
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push 0x30
push 0x425818
mov eax, dword [ebp + 8]
push eax
push 0x4318a8
call fcn.00402a00
add esp, 0x10
push 0x30
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4318a8
call fcn.00402a60
add esp, 0xc
push 0x4318a8
mov edx, dword [ebp + 8]
push edx
call fcn.00402960
add esp, 8
push 0x20
push 0x425848
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402a00
add esp, 0x10
pop ebp
ret

Function at 0x4030e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42fc30]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x20], 0x6b
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x6e
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x10], 0x6e
mov byte [ebp - 0xf], 0x74
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x6c
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 9], 0x6c
mov byte [ebp - 8], 0x6c
mov byte [ebp - 7], 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411ff2
mov esp, ebp
pop ebp
ret
Function at 0x405127
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x405147
cmp dword [edi + 0x54], 0
jne 0x405147
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040d9a0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004050ee
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40a3cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a40f
call fcn.0040d9a0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a40f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a42a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409f83
test ebx, ebx
mov esi, eax
je 0x40a428
test edi, edi
je 0x40a428
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f064
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40f092
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f0b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040efce
jmp 0x40f0b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f0b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040efce
test edi, edi
mov eax, edi
jne 0x40f09a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x433468]
test ecx, ecx
je 0x40f173
jmp 0x40f063
ret 8

Function at 0x411ff2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fc30]
jne 0x411ffc
repz ret
jmp fcn.0041707c
Function at 0x41d843
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416abe
xor ebx, ebx
cmp dword [0x434194], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41d918
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41d883
xor eax, eax
jmp 0x41d9dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x428aa0
push edi
call esi
cmp eax, ebx
je 0x41d87c
push eax
call fcn.00416a5b
mov dword [esp], 0x428a90
push edi
mov dword [0x434194], eax
call esi
push eax
call fcn.00416a5b
mov dword [esp], 0x428a7c
push edi
mov dword [0x434198], eax
call esi
push eax
call fcn.00416a5b
mov dword [0x43419c], eax
lea eax, [ebp - 8]
push eax
call fcn.004154d4
test eax, eax
pop ecx
pop ecx
je 0x41d8e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417282
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41d918
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00416a5b
cmp eax, ebx
pop ecx
mov dword [0x4341a4], eax
je 0x41d918
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00416a5b
pop ecx
mov dword [0x4341a0], eax
mov eax, dword [0x4341a0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41d991
cmp dword [0x4341a4], esi
je 0x41d991
push eax
call fcn.00416ac7
pop ecx
call eax
cmp eax, ebx
je 0x41d95e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4341a4]
call fcn.00416ac7
pop ecx
call eax
test eax, eax
je 0x41d95e
test byte [ebp - 0x18], 1
jne 0x41d991
lea eax, [ebp - 0xc]
push eax
call fcn.0041550b
test eax, eax
pop ecx
je 0x41d979
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417282
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41d988
or dword [ebp + 0x10], 0x200000
jmp 0x41d9c2
or dword [ebp + 0x10], 0x40000
jmp 0x41d9c2
mov eax, dword [0x434198]
cmp eax, esi
je 0x41d9c2
push eax
call fcn.00416ac7
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d9c2
mov eax, dword [0x43419c]
cmp eax, esi
je 0x41d9c2
push dword [ebp - 4]
push eax
call fcn.00416ac7
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434194]
call fcn.00416ac7
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42300a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42fc30]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00422f9f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00412490
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x423059
cmp dword [ebp - 0x1c], 5
jb 0x423071
jmp 0x42306d
cmp dword [ebp - 0x10], 1
jne 0x423071
cmp dword [ebp - 0x1c], 4
ja 0x42306d
jne 0x423071
cmp dword [ebp - 0x18], 0
jbe 0x423071
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42a1dc
call fcn.00422e73
test eax, eax
jge 0x423092
mov byte [0x4318e8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411ff2
add ebp, 0x78
leave
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100030f0
push 0x100027f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x10004398]
cmp eax, esi
je 0x100019ca
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x1000439c]
cmp eax, esi
je 0x100019d9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov edi, 0x6c
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x1c], 0x200
push esi
push 0x1000439c
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [0x10004390]
push ecx
call dword [0x10004358]
mov dword [ebp - 0x88], eax
cmp eax, esi
je 0x10001a33
push 0x10
push esi
push str.CreateSurface_Error
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x10004388], esi
jne 0x10001a85
mov eax, dword [0x10004390]
mov edx, dword [eax]
push esi
lea ecx, [ebp - 0x8c]
push ecx
push esi
push eax
call dword [edx + 0x10]
test eax, eax
jne 0x10001a85
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [0x100043bc]
push ecx
push esi
push eax
call dword [edx + 0x20]
mov eax, dword [0x1000439c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
push ecx
push eax
call dword [edx + 0x70]
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], 0x1007
mov eax, dword [0x10004370]
mov dword [ebp - 0x78], eax
mov ecx, dword [0x10004374]
mov dword [ebp - 0x7c], ecx
mov eax, 0x40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], 0x20
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x2c], 0xf800
mov dword [ebp - 0x28], 0x7e0
mov dword [ebp - 0x24], 0x1f
mov dword [ebp - 0x20], esi
push esi
push 0x10004398
lea edx, [ebp - 0x84]
push edx
mov eax, dword [0x10004390]
push eax
call dword [0x10004358]
mov dword [ebp - 0x88], eax
cmp eax, esi
je 0x10001b14
push 0x10
push esi
push str.CreateSurface_Error
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100043d4], esi
jmp 0x10001b44
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100024d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
lea eax, [ebp - 0x404]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100024fe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x404]
lea edx, [ebp - 0x404]
push ecx
push 0x400
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x10002526
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push 0
push eax
lea ecx, [ebp - 0x404]
push 0x10004190
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1000254b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
shr eax, 0x10
lea edx, [eax + eax*4]
xor eax, eax
mov ax, word [ecx + 8]
lea eax, [eax + edx*2]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
shr eax, 0x10
lea eax, [eax + edx*2]
cmp eax, 0x30a
mov dword [0x100043d0], eax
jbe 0x10002582
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.1000bf0c

Function at 0x100025e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [str.ddraw.dll]
lea ecx, [ebp + eax - 0x404]
mov eax, dword [0x1000432c]
mov dword [ecx], edx
mov edx, dword [0x10004330]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x404]
push eax
mov dword [ecx + 8], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x10002646
push 0x10
push eax
push str.DDRAW.DLL_not_found_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AcquireDDThreadLock
push esi
call edi
push str.ReleaseDDThreadLock
push esi
mov dword [0x1000434c], eax
call edi
push str.DirectDrawCreate
push esi
mov dword [0x10004350], eax
call edi
mov dword [0x10004354], eax
jmp fcn.1000bf16
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x451c10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
jmp loc.00756da5
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x402c22
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, 0x488000
push 0x2000
add eax, 0x3e8
push esi
push ebx
mov dword [0x451b6c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.004056e3
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x409014], edi
jne 0x402c7c
mov eax, str.Error_launching_installer
jmp 0x402e54
push esi
mov esi, 0x480000
push esi
call fcn.00405a0c
push esi
call fcn.00405546
push eax
push 0x48a000
call fcn.00405a0c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x431790], eax
mov esi, eax
jle 0x402d97
mov ebx, 0x429790
mov eax, dword [0x451b74]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402cd0
mov edi, eax
push edi
push ebx
call fcn.0040307d
jmp 0x75526b
push 1
call fcn.00402bbe
cmp dword [0x451b74], ebx
pop ecx
je 0x402dfa
cmp dword [ebp - 4], ebx
je 0x402dce
push dword [0x41d780]
call fcn.004030af
lea eax, [ebp + 8]
push 4
push eax
call fcn.0040307d
test eax, eax
je 0x402dfa
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x402dfa
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x451b74]
add eax, 0x1c
push eax
call fcn.004030af
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402e5b
cmp eax, dword [ebp - 0x14]
je 0x402e0b
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 0x402e54
test byte [ebp - 0x28], 1
mov dword [0x451b70], esi
mov eax, dword [esi]
mov dword [0x451b78], eax
je 0x402e24
inc dword [0x451b7c]
push 8
lea eax, [esi + 0x44]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x402e2a
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 0x451b80
call fcn.004056a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4