joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd31
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43efc0]
jne 0x41bd3b
repz ret
jmp fcn.0042104b

Function at 0x42b067
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43efc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0042116f
and dword [ebp - 0x14], 0
cmp dword [0x4415a8], 0
mov dword [ebp - 0x18], eax
jne 0x42b11a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42b1c2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x437bb4
push ebx
call edi
test eax, eax
je 0x42b1c2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4415a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4415ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4415b0], eax
call edi
push eax
call esi
mov dword [0x4415b8], eax
test eax, eax
je 0x42b11a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4415b4], eax
mov eax, dword [0x4415b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42b173
cmp dword [0x4415b8], ecx
je 0x42b173
push eax
call esi
push dword [0x4415b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42b173
test ebx, ebx
je 0x42b173
call edi
test eax, eax
je 0x42b16a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42b16a
test byte [ebp - 8], 1
jne 0x42b173
or dword [ebp + 0x10], 0x200000
jmp 0x42b1a6
mov eax, dword [0x4415ac]
cmp eax, dword [ebp - 0x18]
je 0x42b1a6
push eax
call esi
test eax, eax
je 0x42b1a6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42b1a6
mov eax, dword [0x4415b0]
cmp eax, dword [ebp - 0x18]
je 0x42b1a6
push eax
call esi
test eax, eax
je 0x42b1a6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4415a8]
call esi
test eax, eax
je 0x42b1c2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42b1c4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bd31
leave
ret
Function at 0x405f0f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d908]
jne 0x405f19
repz ret
jmp fcn.0040e408

Function at 0x4156e0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404fa7
and dword [ebp - 0x14], 0
cmp dword [0x44f648], 0
mov dword [ebp - 0x18], eax
jne 0x415793
push 0x403370
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41583b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403364
push ebx
call edi
test eax, eax
je 0x41583b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403354
push ebx
mov dword [0x44f648], eax
call edi
push eax
call esi
push 0x403340
push ebx
mov dword [0x44f64c], eax
call edi
push eax
call esi
push 0x403324
push ebx
mov dword [0x44f650], eax
call edi
push eax
call esi
mov dword [0x44f658], eax
test eax, eax
je 0x415793
push 0x40330c
push ebx
call edi
push eax
call esi
mov dword [0x44f654], eax
mov eax, dword [0x44f654]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4157ec
cmp dword [0x44f658], ecx
je 0x4157ec
push eax
call esi
push dword [0x44f658]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4157ec
test ebx, ebx
je 0x4157ec
call edi
test eax, eax
je 0x4157e3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4157e3
test byte [ebp - 8], 1
jne 0x4157ec
or dword [ebp + 0x10], 0x200000
jmp 0x41581f
mov eax, dword [0x44f64c]
cmp eax, dword [ebp - 0x18]
je 0x41581f
push eax
call esi
test eax, eax
je 0x41581f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41581f
mov eax, dword [0x44f650]
cmp eax, dword [ebp - 0x18]
je 0x41581f
push eax
call esi
test eax, eax
je 0x41581f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44f648]
call esi
test eax, eax
je 0x41583b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41583d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405f0f
leave
ret
Function at 0x41a6f0
Capabilities:
Access the windows event log
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1808
call fcn.00417ef0
cmp dword [0x7fedfc], 0x37
jne 0x41a7bc
push 0x4034b4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0xc14]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EraseTape]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push 0
lea edx, [esp + 0x100c]
push edx
push 0x4034c0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7ff210]
mov edx, dword [0x7fe8e0]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1808
ret
Function at 0x41ae60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x7fedfc]
sub esp, 0x484
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x41aee6
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403700
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x40372c
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x44e9d0]
mov dword [0x7fedfc], eax
jne 0x41ae85
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x44e9c4]
mov dword [0x7ff210], edx
call fcn.0041aa30
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401dd0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x402ad0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0x190
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
sub dl, 0x32
test esi, esi
jbe 0x402afd
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402af1
pop esi
ret

Function at 0x402b00
Capabilities:
Contain obfuscated stackstrings
Get common file path
Move file

Disassembly:
sub esp, 0x21c
mov al, 0x65
push esi
mov byte [esp + 5], al
mov byte [esp + 0xc], al
mov byte [esp + 0x10], al
mov byte [esp + 0x14], al
lea eax, [esp + 4]
push edi
mov cl, 0x6c
push eax
push str.kernel32.dll
mov byte [esp + 0x10], 0x47
mov byte [esp + 0x12], 0x74
mov byte [esp + 0x13], 0x4d
mov byte [esp + 0x14], 0x6f
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x75
mov byte [esp + 0x17], cl
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1d], 0x4e
mov byte [esp + 0x1e], 0x61
mov byte [esp + 0x1f], 0x6d
mov byte [esp + 0x21], 0x41
mov byte [esp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push ecx
push 0
stosb byte es:[edi], al
call edx
lea edx, [esp + 0x120]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x120]
push str.SOFTWARE.LOG
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x120]
push 3
lea edx, [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
je 0x402bf0
push 5
lea eax, [esp + 0x124]
push 0
push eax
call esi
pop edi
pop esi
add esp, 0x21c
ret
Function at 0x402cf0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.netscvre
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x40bfac]
test eax, eax
je 0x402d45
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x40bfb0]
test eax, eax
je 0x402d91
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x40bfc0]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x40bfc0]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402db8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402de5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402e09
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402e2b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402e5d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x402e8d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x402ec6
push str.netscvre
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.netscvre
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x402ee7
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403200
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
call fcn.00403270
test eax, eax
je 0x40323f
lea eax, [esp]
mov dword [esp], str.netscvre
push eax
mov dword [esp + 8], 0x402f60
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [0x40bfa0]
xor eax, eax
add esp, 0x10
ret 0x10
push str.NT_LM_Security_Support_Providers
push 0x40b06c
push str.netscvre
call fcn.004032e0
mov eax, dword [0x40c9dc]
add esp, 0xc
test eax, eax
je 0x403237
call fcn.00402b00
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
Function at 0x4049b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x43b63e
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
inc esi
add edi, 0x905e4bd9
add esi, 0x7e6342e
call fcn.0043b681
sub esp, 4
mov dword [esp], 0x54ace5b5
pop edi
and edi, edi
xor dword [eax], ecx
or edi, esi
or edi, esi
inc eax
inc esi
add edi, 0xb56dcfeb
cmp eax, ebx
jne fcn.0043b63e
sub esi, 0x839c2623
ret
Function at 0x407bb0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x444a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45682c]
push esi
mov esi, dword [0x456824]
mov eax, 0x606c8017
imul esi
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
mov eax, 0xc4570565
imul ecx
add edx, ecx
sar edx, 0x16
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x329dfa79
imul esi
sar edx, 0x14
sub edi, ecx
mov ecx, dword [0x456838]
mov eax, edx
imul ecx, ecx, 0x15bc8b
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
imul edx, edx, 0x53af19
sub edi, eax
mov eax, dword [0x56cb8c]
add edi, ecx
add edi, edx
mov ecx, 0x56cb8c
mov dword [str._r_____r____], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x45682c]
mov esi, dword [str._r_____r____]
mov eax, 0x329dfa79
imul esi, esi, 0x50ebd8
imul ecx
sar edx, 0x14
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub esi, ecx
mov ecx, dword [0x456820]
mov eax, 0x1eefbef3
imul ecx
mov ecx, dword [0x456818]
sar edx, 0x13
imul ecx, ecx, 0x779018
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x456830]
add esi, ecx
sub esi, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
sub esi, 0x45ab63
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [0x456820], esi
call fcn.00407920
mov ecx, dword [0x456820]
mov eax, 0x329dfa79
imul ecx
mov esi, ecx
imul esi, esi, 0x537276
sar edx, 0x14
mov edi, edx
shr edi, 0x1f
add esi, edx
add edi, esi
mov ecx, dword [0x456830]
mov edx, dword [0x456824]
imul ecx, ecx, 0x31e0ba
imul edx, edx, 0x45ab63
mov esi, dword [esp + 8]
add edi, ecx
mov ecx, dword [0x45681c]
add edi, edx
mov eax, 0x224214b1
imul ecx
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
push esi
mov dword [0x45682c], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x407d4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40d920
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov ecx, dword [0x45682c]
push ebp
push esi
mov esi, dword [0x456824]
mov eax, 0x606c8017
imul esi
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
mov eax, 0xc4570565
imul ecx
add edx, ecx
sar edx, 0x16
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x329dfa79
imul esi
sar edx, 0x14
sub edi, ecx
mov ecx, dword [0x456838]
mov eax, edx
imul ecx, ecx, 0x15bc8b
shr eax, 0x1f
add eax, edx
mov edx, dword [0x456830]
imul edx, edx, 0x53af19
sub edi, eax
add edi, ecx
add edi, edx
lea eax, [esp + 0x10]
mov dword [str._r_____r____], edi
mov edi, dword [esp + 0x1c]
push eax
xor ebp, ebp
push edi
mov dword [esp + 0x18], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebp
je 0x40db67
mov ecx, dword [0x456838]
mov eax, 0x606c8017
imul ecx
imul ecx, ecx, 0x15bc8b
sar edx, 0x15
push ebx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov edx, dword [0x45681c]
mov eax, 0x622f07f9
imul edx
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add ebx, edx
mov edx, dword [0x456824]
add eax, ebx
sub eax, ecx
mov ecx, dword [0x456830]
imul ecx, ecx, 0x53af19
add eax, ecx
sub eax, edx
add eax, 0x42333a
push esi
mov dword [0x45681c], eax
call fcn.0043be02
add esp, 4
mov ebx, eax
push ebx
push esi
xor esi, esi
push esi
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40db5d
mov ecx, dword [0x45682c]
mov edi, dword [str._r_____r____]
mov eax, 0x622f07f9
imul edi, edi, 0x54f550
imul ecx
mov ecx, dword [0x456818]
sar edx, 0x15
imul ecx, ecx, 0x53af19
mov eax, edx
shr eax, 0x1f
add eax, edx
add ecx, dword [0x456834]
mov edx, dword [0x456828]
imul edx, edx, 0x779018
sub edi, eax
add ecx, edi
lea eax, [edx + ecx - 0x45ab63]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x4471ec
push ebx
mov dword [0x456824], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
mov esi, dword [0x45681c]
je 0x40db08
mov ecx, dword [0x456828]
mov eax, 0x606c8017
imul esi
mov edi, ecx
sar edx, 0x15
imul edi, edi, 0x54f550
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0xc4570565
imul ecx
add edx, ecx
sar edx, 0x16
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x456818]
imul edx, edx, 0x536f78
sub edi, ecx
mov ecx, dword [0x456834]
add edi, edx
mov eax, 0x329dfa79
imul ecx
mov ecx, dword [esp + 0x10]
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov dword [0x456834], edi
mov bp, word [ecx + 0x14]
mov ecx, dword [0x456820]
mov edi, ecx
mov eax, 0x329dfa79
imul edi, edi, 0x537276
imul ecx
mov eax, dword [0x456824]
sar edx, 0x14
imul eax, eax, 0x45ab63
add edi, edx
mov ecx, edx
mov edx, dword [0x456830]
imul edx, edx, 0x31e0ba
shr ecx, 0x1f
add ecx, edi
add ecx, edx
add ecx, eax
mov eax, 0x224214b1
imul esi
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
sub ecx, eax
mov dword [0x45682c], ecx
push ebx
call fcn.0043be07
add esp, 4
pop ebx
pop edi
pop esi
mov ax, bp
pop ebp
add esp, 0xc
ret
Function at 0x417420
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x458190]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x417542
lea ecx, [esp + 8]
call fcn.00417300
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x417546
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4174f0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00417420
mov edi, eax
test edi, edi
jne 0x41756a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x4174b2
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x417509
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417528
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a161
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x417551
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042a161
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x417579
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042a161
add esp, 0x118
ret 4
Function at 0x417a50
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x417a62
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8