joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df90
Capabilities:
Get common file path

Disassembly:
mov al, byte [ecx + 0x1a8]
sub esp, 0x104
test al, al
push esi
lea esi, [ecx + 0x1a8]
jne 0x40dfca
lea eax, [esp + 4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
push 0
lea ecx, [esp + 0xc]
push 0x433978
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x40dff0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push 1
push 0
push 0
mov esi, ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x9c], eax
lea eax, [esp + 0xc]
push 0
lea edi, [esi + 4]
push eax
push 0x98
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0x98
je 0x40e057
mov ecx, dword [esi + 0x1a4]
add ecx, 8
push ecx
push str.Bundle_item_read_error_on__s
push esi
call fcn.0040db40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
cmp dword [edi], 0x87654321
je 0x40e080
mov edx, dword [esi + 0x1a4]
add edx, 8
push edx
push str.Bad_item_ID_in__s
push esi
call fcn.0040db40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x40e110
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
call fcn.0040db30
push 0x4000
or ebx, 0xffffffff
mov dword [esp + 0x10], 0xffffffff
call fcn.0041eb40
mov esi, eax
add esp, 4
test esi, esi
je 0x40e288
mov ecx, dword [edi + 0x1a4]
push ebp
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0040dd40
test eax, eax
je 0x40e272
mov ebp, dword [edi + 0x9c]
mov ecx, dword [esp + 0x10]
push 0
push 0
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebp
je 0x40e19d
lea edx, [edi + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__lu_in_moving_to_item_header_in__s
push edi
call fcn.0040db40
add esp, 0x10
jmp 0x40e272
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.0040dff0
test eax, eax
je 0x40e272
mov ecx, edi
call fcn.0040df90
push 0
push 0x80
push 2
push 0
mov ebp, eax
push 0
push 0x40000000
push ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e1f6
push ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__lu_in_creating__s
push edi
call fcn.0040db40
add esp, 0x10
jmp 0x40e272
mov eax, dword [edi + 0x8c]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebp
jbe 0x40e26a
jmp 0x40e210
mov eax, dword [esp + 0x20]
sub eax, ebp
cmp eax, 0x4000
jbe 0x40e21e
mov eax, 0x4000
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40e2a3
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
add edx, eax
push esi
push ebx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x40e2c1
add ebp, eax
mov eax, dword [esp + 0x20]
cmp ebp, eax
jb 0x40e20c
mov dword [esp + 0x14], 1
push esi
call fcn.0041e9c0
add esp, 4
cmp ebx, 0xffffffff
pop ebp
je 0x40e288
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, 0xffffffff
pop ebx
je 0x40e29b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
add esp, 0x1c
ret
lea edx, [edi + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__lu_reading__s
push edi
call fcn.0040db40
add esp, 0x10
jmp 0x40e272
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__lu_writing__s
push edi
call fcn.0040db40
add esp, 0x10
jmp 0x40e272
Function at 0x40e2e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0040df90
mov ecx, ebp
mov esi, eax
call fcn.0040dfe0
mov dword [esp + 0x14], eax
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, ebp
mov dword [esp + 0x18], 0
call fcn.0040db30
lea eax, [esp + 0x28]
push 0
push eax
push esi
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
test ebx, ebx
jl 0x40e470
push 2
push 0
push ebx
call sub.LZ32.dll_LZSeek
push 0
push 0
push ebx
mov dword [esp + 0x2c], eax
call sub.LZ32.dll_LZSeek
mov esi, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40e45f
push 0x4000
call fcn.0041eb40
mov edi, eax
add esp, 4
test edi, edi
je 0x40e458
mov dword [esp + 0x10], 0
push 0x4000
push edi
push ebx
call sub.LZ32.dll_LZRead
mov esi, eax
test esi, esi
jl 0x40e3cc
je 0x40e407
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push 0
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e3dd
mov eax, dword [esp + 0x24]
cmp esi, eax
jne 0x40e3f2
add dword [esp + 0x10], eax
jmp 0x40e392
push esi
push str.Decompress:_LZRead_returned__d
push ebp
call fcn.0040db40
add esp, 0xc
jmp 0x40e434
mov eax, dword [esp + 0x14]
push eax
push str.Decompress_failed_to_write_to__s
push ebp
call fcn.0040db40
add esp, 0xc
jmp 0x40e434
mov ecx, dword [esp + 0x14]
push ecx
push str.Decompress_failed_to_write_all_bytes_to__s
push ebp
call fcn.0040db40
add esp, 0xc
jmp 0x40e434
push edi
call fcn.0041e9c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, edx
jne 0x40e426
mov dword [esp + 0x18], 1
jmp 0x40e434
push str.Decompress_failed_to_copy_all_bytes
push ebp
call fcn.0040db40
add esp, 8
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jl 0x40e449
push ebx
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
push str.Decompress_failed_to_alloc_copy_buffer
jmp 0x40e42b
push esi
push str.Decompress_failed_to_create__s
push ebp
call fcn.0040db40
add esp, 0xc
jmp 0x40e43f
push esi
push str.Decompress_failed_to_open_compressed_file__s
push ebp
call fcn.0040db40
add esp, 0xc
jmp 0x40e43f
Function at 0x40e490
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040db30
lea edi, [esi + 0xa0]
push edi
call fcn.0040db10
add esp, 4
test eax, eax
je 0x40e548
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, eax
mov eax, dword [esi + 0x3b0]
add ebp, 0x3a98
cmp eax, 0xffffffff
jne 0x40e521
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebp
jae 0x40e520
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esi + 0x3b0], eax
jne 0x40e517
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x3b0], 0xffffffff
je 0x40e4e2
pop ebx
mov eax, dword [esi + 0x3b0]
pop ebp
cmp eax, 0xffffffff
jne 0x40e548
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__lu_locking__s
push esi
call fcn.0040db40
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret

Function at 0x40e5e0
Capabilities:
Copy file
Delete file

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebp, ebp
call fcn.0040db30
push 1
mov ecx, esi
call fcn.0040e550
test eax, eax
je 0x40e6e3
lea edi, [esi + 0xa0]
push edi
call fcn.0040db10
add esp, 4
test eax, eax
je 0x40e620
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40e6cd
lea ebx, [esi + 0x2ac]
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40e6ae
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e698
lea eax, [esi + 0x94]
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x40e67b
push ebx
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
push edi
push str.Failed_to_SetFileTime___for__s.
push esi
call fcn.0040db40
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
push edi
push str.SetFileTime:_Failed_to_open__s.
push esi
call fcn.0040db40
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.0041fed4
mov eax, dword [eax]
push edi
push ebx
push eax
push str.Error__d_renaming__s_to__s
push esi
call fcn.0040db40
add esp, 0x14
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_deleting__s
push esi
call fcn.0040db40
add esp, 0x10
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x40e750
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
mov dword [esp + 0x14], ebp
or ebx, 0xffffffff
call fcn.0040dc80
mov eax, dword [esp + 0x1c]
lea edi, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0040e870
test eax, eax
je 0x40e851
push ebp
push 0x80
push 3
push ebp
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e7b7
push edi
push str.Failed_to_open__s
push esi
call fcn.0040dca0
add esp, 0xc
jmp 0x40e851
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [esi + 0x10c]
push 0x410
push edx
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0x410
je 0x40e7ef
push edi
push str.File_hdr_read_error_on__s
push esi
call fcn.0040dca0
add esp, 0xc
jmp 0x40e851
mov eax, dword [esi + 0x518]
test eax, eax
jle 0x40e849
push 0x3b4
call fcn.0041eb40
add esp, 4
test eax, eax
je 0x40e851
push esi
mov ecx, eax
call fcn.0040de90
mov edi, eax
test edi, edi
je 0x40e851
push edi
mov ecx, esi
call fcn.0040dde0
push ebx
mov ecx, edi
call fcn.0040dff0
test eax, eax
je 0x40e851
mov eax, dword [edi + 0x8c]
push 1
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x518]
inc ebp
cmp ebp, eax
jl 0x40e7f9
mov dword [esp + 0x14], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x40e870
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x429bbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebp
call fcn.0040de90
mov ecx, edi
mov dword [esp + 0x3d8], ebp
call fcn.0040dc80
push ebp
push 0x80
push 3
push ebp
lea ebx, [edi + 8]
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e8e4
push ebx
push str.Failed_to_open__s
push edi
call fcn.0040dca0
add esp, 0xc
jmp 0x40e9b9
lea eax, [esp + 0x14]
push ebp
push eax
lea ecx, [edi + 0x10c]
push 0x410
push ecx
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 0x410
je 0x40e91f
push ebx
push str.File_hdr_read_error_on__s
push edi
call fcn.0040dca0
add esp, 0xc
jmp 0x40e9b9
cmp dword [edi + 0x510], 0x12345678
je 0x40e93c
push ebx
push str.Bad_hdr_ID_in__s
push edi
call fcn.0040dca0
add esp, 0xc
jmp 0x40e9b9
cmp dword [edi + 0x514], 2
je 0x40e956
push ebx
push str.Bad_hdr_ver_in__s
push edi
call fcn.0040dca0
add esp, 0xc
jmp 0x40e9b9
mov eax, dword [edi + 0x518]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x40e9b1
jmp 0x40e968
xor ebp, ebp
push esi
lea ecx, [esp + 0x20]
call fcn.0040dff0
test eax, eax
je 0x40e9b9
push 1
push ebp
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
mov eax, dword [esp + 0xa8]
push 1
push 0
push eax
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add ebx, ebp
cmp eax, ebx
jne 0x40e9f1
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x518]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40e966
mov dword [esp + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3d8], 0xffffffff
call fcn.0040df10
mov ecx, dword [esp + 0x3d0]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3cc
ret
mov edx, dword [esp + 0x10]
push edx
push str.Truncated_file_on_item__d
push edi
call fcn.0040dca0
add esp, 0xc
jmp 0x40e9b9

Function at 0x40eaa0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
test esi, esi
je 0x40eafa
push ebx
push edi
mov edi, dword [esp + 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push esi
call fcn.00411200
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
push esi
call ebx
mov edx, eax
push str.GatorSetup.inf
mov dword [esp + 0x18], edx
call ebx
mov ecx, dword [esp + 0x14]
add ecx, eax
cmp ecx, edi
pop edi
pop ebx
jge 0x40eafa
push str.GatorSetup.inf
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop esi
mov eax, 1
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x40eb60
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
push 0x437958
push str.bundle
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret
Function at 0x40eb90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
push 0x437958
push str.version
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret

Function at 0x40ec60
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor eax, eax
push esi
push edi
test ebp, ebp
je 0x40ece0
cmp byte [ebp], 0
je 0x40ece0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40ece0
cmp byte [ebx], 0
je 0x40ece0
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x40ec8e
mov edi, 0x437958
push ebx
lea eax, [esp + 0x18]
push 1
push eax
push edi
push ebp
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x101
call fcn.0041eb40
mov esi, eax
add esp, 4
test esi, esi
je 0x40ecde
push ebx
push 0x100
push esi
push edi
push ebp
push str.setup
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40ecde
push 0x100
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40f0b0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x40f13a
cmp byte [edi], 0
je 0x40f13a
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x1060]
test ecx, ecx
mov byte [eax], 0
je 0x40f0df
push 0x400
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esi + 0xc60]
lea ecx, [esi + 0x860]
push eax
push ecx
push edi
call fcn.0041b430
add esp, 0xc
test eax, eax
je 0x40f13a
push 2
mov ecx, esi
call fcn.0040f080
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0
push esi
push 0x40f1a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret 8
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x40ffa0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x124
push ebx
push ebp
xor ebp, ebp
push esi
lea eax, [esp + 0xc]
push ebp
push eax
push str.AppPath
push str.softwareGator.comGatordyn
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x20], ebp
call fcn.004102c0
mov eax, dword [esp + 0x20]
add esp, 0x14
cmp eax, ebp
jne 0x40ffd9
mov eax, 0x433498
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0xc]
push edx
call fcn.0041e9c0
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.00411200
mov eax, dword [esp + 0x140]
add esp, 0xc
cmp eax, ebp
mov eax, 0x431254
jne 0x410016
mov eax, str.Offers
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x2c]
push eax
push ecx
call esi
lea edx, [esp + 0x2c]
push str..exe
push edx
call esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x41012d
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
cmp ebx, ebp
je 0x41012d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x410119
mov edx, dword [esp + 0x24]
push edi
push esi
lea eax, [esp + 0x38]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x410112
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x42f444
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x410112
mov eax, dword [esp + 0x1c]
push 0x80
mov ecx, dword [eax + 8]
mov dl, byte [eax + 8]
shr ecx, 0x10
mov byte [esp + 0x24], cl
mov ecx, dword [eax + 0xc]
mov byte [esp + 0x1c], dl
mov dl, byte [eax + 0xc]
shr ecx, 0x10
mov byte [esp + 0x18], cl
mov byte [esp + 0x2c], dl
call fcn.0041eb40
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x410112
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
and eax, 0xff
push eax
mov eax, dword [esp + 0x24]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
push str._d._d._d._d
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x124
ret

Function at 0x410140
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 3]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x41017d
lea edx, [esp + 4]
push 0x42f444
push edx
call esi
mov eax, dword [esp + 0x10c]
lea ecx, [esp + 4]
push eax
push ecx
call esi
lea edx, [esp + 4]
push 0x43412c
push edx
call fcn.0042015d
mov dword [0x4389a0], eax
mov eax, dword [esp + 0x118]
push eax
push str._s_starts
call fcn.00410220
call fcn.00410290
push 0x433498
call fcn.00410250
add esp, 0x14
pop esi
add esp, 0x104
ret
Function at 0x4102c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov dword [esp + 0x10], ebx
je 0x4102d6
mov dword [ebp], ebx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4103e1
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4103e1
cmp byte [eax], 0
je 0x4103e1
cmp ebp, ebx
je 0x4103e1
lea edx, [esp + 0x1c]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4103e1
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push eax
push ebx
push ecx
push ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
push edx
call ebx
test eax, eax
jne 0x4103cc
mov eax, dword [esp + 0x24]
push eax
call fcn.0041eb40
mov esi, eax
add esp, 4
test esi, esi
je 0x4103cc
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
jne 0x4103c3
mov eax, dword [esp + 0x18]
mov ebx, 1
cmp eax, ebx
jne 0x4103c3
mov ecx, dword [esp + 0x24]
inc ecx
push ecx
call fcn.0041eb40
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
je 0x4103c3
mov edx, dword [esp + 0x24]
xor eax, eax
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [esp + 0x10], ebx
push esi
call fcn.0041e9c0
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41042d
mov ebx, eax
mov esi, dword [esp + 0x28]
test esi, esi
je 0x410425
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0041eb40
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp], edx
je 0x410425
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x410440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
cmp ecx, esi
mov dword [edi], eax
je 0x4104bd
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4104bd
cmp byte [eax], 0
je 0x4104bd
lea edx, [esp + 0x1c]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4104bd
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push edi
push ecx
push esi
push edx
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4104b2
cmp dword [esp + 0x18], 4
jne 0x4104b2
mov esi, 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x4104d0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x41053e
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41053e
cmp byte [eax], 0
je 0x41053e
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xc]
push edx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41053e
push esi
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x410533
mov edi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
ret

Function at 0x410550
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x4105b5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4105b5
cmp byte [eax], 0
je 0x4105b5
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xc]
push edx
push esi
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4105b5
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4105aa
mov esi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret