joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a71b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4a71f6
cmp dword [ebp + 0x14], edi
je 0x4a71f6
cmp ecx, edi
jne 0x4a71fd
call fcn.004ac2cb
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004ad398
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a7211
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a7232
cmp ebx, 0xffffffff
je 0x4a7221
push ebx
push edi
push ecx
call fcn.004a7110
add esp, 0xc
cmp esi, edi
je 0x4a71de
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a71de
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a724e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a7255
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a7346
test word [esi + 0xc], 0x10c
je 0x4a72a9
mov eax, dword [esi + 4]
test eax, eax
je 0x4a72a9
jl 0x4a73a7
cmp ebx, eax
mov edi, ebx
jb 0x4a727a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a734e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b0661
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a733e
cmp ebx, dword [ebp - 0xc]
jb 0x4a7316
cmp dword [ebp - 0xc], 0
je 0x4a72d3
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4a72c8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a72cf
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a72de
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4a72de
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a737a
push eax
push dword [ebp - 8]
push esi
call fcn.004adc1a
pop ecx
push eax
call fcn.004b0564
add esp, 0xc
test eax, eax
je 0x4a73b9
cmp eax, 0xffffffff
je 0x4a73a7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a733e
push esi
call fcn.004ae0ca
cmp eax, 0xffffffff
pop ecx
je 0x4a73ab
cmp dword [ebp - 4], 0
je 0x4a737a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a725d
mov eax, dword [ebp + 0x14]
jmp 0x4a71f8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a7365
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004a7110
add esp, 0xc
call fcn.004ac2cb
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a71ee
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a7390
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004a7110
add esp, 0xc
call fcn.004ac2cb
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a71ee
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a71f8
or dword [esi + 0xc], 0x10
jmp 0x4a73ab
Function at 0x4b07a1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x500d00]
je 0x4b07bc
inc edi
cmp edi, 0x17
jb 0x4b07ad
cmp edi, 0x17
jae 0x4b093c
push ebp
push 3
call fcn.004b823d
cmp eax, 1
pop ecx
je 0x4b0908
push 3
call fcn.004b823d
test eax, eax
pop ecx
jne 0x4b07f0
cmp dword [0x5002f0], 1
je 0x4b0908
cmp ebx, 0xfc
je 0x4b093b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x50f540
push ebp
call fcn.004b7e49
add esp, 0xc
test eax, eax
je 0x4b0826
push esi
push esi
push esi
push esi
push esi
call fcn.004ad29c
add esp, 0x14
push 0x104
mov esi, 0x50f559
push esi
push 0
mov byte [0x50f65d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b086a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b7e49
add esp, 0xc
test eax, eax
je 0x4b086a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ad29c
add esp, 0x14
push esi
call fcn.004a63c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b08af
push esi
call fcn.004a63c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x50f854
push 0x4dc4c4
sub ecx, eax
push ecx
push eax
call fcn.004b7d96
add esp, 0x14
test eax, eax
je 0x4b08af
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ad29c
add esp, 0x14
jmp 0x4b08b1
xor esi, esi
push 0x4ce46c
push ebx
push ebp
call fcn.004b7cd9
add esp, 0xc
test eax, eax
je 0x4b08d1
push esi
push esi
push esi
push esi
push esi
call fcn.004ad29c
add esp, 0x14
push dword [edi*8 + 0x500d04]
push ebx
push ebp
call fcn.004b7cd9
add esp, 0xc
test eax, eax
je 0x4b08f3
push esi
push esi
push esi
push esi
push esi
call fcn.004ad29c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b8080
add esp, 0xc
jmp 0x4b093b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b093b
cmp ebp, 0xffffffff
je 0x4b093b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x500d04]
push dword [esi]
call fcn.004a63c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4b1a36
call fcn.004ac2de
mov dword [eax], esi
call fcn.004ac2cb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ad398
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4b1a12
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b1a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ac2f1
pop ecx
call fcn.004ac2cb
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4b1a8c
test al, 1
je 0x4b1a8c
test byte [esp + 0xc], 2
je 0x4b1a8c
call fcn.004ac2de
mov dword [eax], 5
call fcn.004ac2cb
mov dword [eax], 0xd
jmp 0x4b1a5c
xor eax, eax
pop esi
ret
Function at 0x4b8080
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004aef09
xor ebx, ebx
cmp dword [0x50f9ac], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b8156
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b8236
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c5034
push edi
call esi
cmp eax, ebx
je 0x4b8236
push eax
call fcn.004aee9b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x50f9ac], eax
call esi
push eax
call fcn.004aee9b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x50f9b0], eax
call esi
push eax
call fcn.004aee9b
mov dword [0x50f9b4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a9904
test eax, eax
pop ecx
pop ecx
je 0x4b8124
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ad29c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b8156
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004aee9b
cmp eax, ebx
pop ecx
mov dword [0x50f9bc], eax
je 0x4b8156
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004aee9b
pop ecx
mov dword [0x50f9b8], eax
mov eax, dword [0x50f9b8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b81db
cmp dword [0x50f9bc], ecx
je 0x4b81db
push eax
call fcn.004aef12
push dword [0x50f9bc]
mov esi, eax
call fcn.004aef12
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b81db
cmp edi, ebx
je 0x4b81db
call esi
cmp eax, ebx
je 0x4b81a8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b81a8
test byte [ebp - 0x18], 1
jne 0x4b81db
lea eax, [ebp - 0x10]
push eax
call fcn.004a9977
test eax, eax
pop ecx
je 0x4b81c3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ad29c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b81d2
or dword [ebp + 0x10], 0x200000
jmp 0x4b8216
or dword [ebp + 0x10], 0x40000
jmp 0x4b8216
mov eax, dword [0x50f9b0]
cmp eax, dword [ebp - 8]
je 0x4b8216
push eax
call fcn.004aef12
cmp eax, ebx
pop ecx
je 0x4b8216
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b8216
mov eax, dword [0x50f9b4]
cmp eax, dword [ebp - 8]
je 0x4b8216
push eax
call fcn.004aef12
cmp eax, ebx
pop ecx
je 0x4b8216
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x50f9ac]
call fcn.004aef12
cmp eax, ebx
pop ecx
je 0x4b8236
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b8238
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022a0
Capabilities:
Query or enumerate registry value
Set registry value
Terminate process

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push str.SoftwareStratopoint_SoftwarePrintFolders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402358
mov eax, dword [0x44d594]
mov ecx, dword [esp]
push esi
push edi
lea edx, [esp + 0xc]
push edx
push eax
push 0
push 0
push str.LicenseCode
push ecx
mov esi, eax
mov dword [esp + 0x24], 0xff
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40233c
mov eax, 0x433403
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4022f8
push 1
push 0x433403
push 1
push 0
push str.LicenseCode
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40233c
push 0x1010
push 0x43328c
push str.Cannot_set_the_registry_value__nProbably_the_registry_is_corrupt_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x44d594]
push ecx
call fcn.0042a541
add esp, 4
pop edi
pop esi
add esp, 8
ret

Function at 0x402360
Capabilities:
Set registry value
Terminate process

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SoftwareStratopoint_SoftwarePrintFolders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402398
push 0x1010
push 0x43328c
push str.Cannot_open_or_create_the_registry_key__nProbably_the_registry_is_corrupt_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [0x44d594]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023a4
mov ecx, dword [esp + 4]
sub eax, esi
inc eax
push eax
push edx
push 1
push 0
push str.LicenseCode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
test eax, eax
je 0x4023e8
push 0x1010
push 0x43328c
push str.Cannot_set_the_registry_value__nProbably_the_registry_is_corrupt_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x405520
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [esp + 0x1c], eax
mov dword [0x43c548], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [0x43c548]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x5c3a2a
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
shr eax, cl
test al, 1
je 0x405607
lea ebx, [ecx + 0x41]
lea ecx, [edx + edx*8]
add ecx, ecx
add ecx, ecx
lea eax, [esp + 0x10]
mov esi, eax
mov edx, ecx
sub edx, esi
mov byte [esp + 0x10], bl
lea esi, [edx + 0x43bea0]
nop
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x4055a0
mov eax, dword [str.:]
mov dl, byte [0x433820]
mov dword [ecx + 0x43bea4], eax
lea eax, [esp + 0x10]
mov byte [ecx + 0x43bea8], dl
push eax
mov byte [ecx + 0x43bea4], bl
call edi
cmp eax, 2
je 0x4055f6
mov eax, dword [0x43c548]
push 0
push 0
push 0
push 0
push 0
lea ecx, [eax + eax*8]
push 0x1c
lea edx, [ecx*4 + 0x43bea8]
push edx
lea eax, [esp + 0x2c]
push eax
call ebp
mov edx, dword [0x43c548]
mov ecx, dword [esp + 0x14]
inc edx
mov dword [0x43c548], edx
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, 0x20
jl 0x405573
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x406410
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x438e28]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
mov esi, ecx
mov eax, 0x43c320
push edi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
jmp 0x406440
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406440
sub eax, edx
js 0x40645b
mov cl, 0x5c
lea ecx, [ecx]
cmp byte [eax + 0x43c320], cl
je 0x40645b
dec eax
jns 0x406450
test eax, eax
je 0x406460
inc eax
lea eax, [eax + 0x43c320]
lea edx, [esp + 0x68]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406470
cmp byte [esp + 0x68], cl
jne 0x4064aa
push 0
push 0
push 0
push 0
push 0
push 0x20
lea eax, [esp + 0x80]
push eax
mov eax, dword [0x43c43c]
lea ecx, [eax + eax*8]
lea edx, [ecx*4 + 0x43bea0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x41b
push esi
call ebx
test eax, eax
mov eax, str..htm
jne 0x4064c6
mov eax, str..txt
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4064c8
lea edi, [esp + 0x68]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4064d6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x58
lea eax, [esp + 0x14]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041f9b0
push 0x100
call fcn.0041882e
mov ecx, dword [0x44d46c]
add esp, 0x10
push 0x100
mov esi, eax
push esi
push 0x6e
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
xor eax, eax
mov cl, byte [eax + esi]
test cl, cl
je 0x406538
cmp cl, 0x23
jne 0x406530
mov byte [eax + esi], 0
inc eax
cmp eax, 0x100
jl 0x406520
mov edi, dword [esp + 0xc]
mov edx, dword [0x44d474]
push 0x41b
push edi
mov dword [esp + 0x18], 0x58
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
call ebx
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x68]
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x48], 0
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
push esi
test eax, eax
je 0x4065d7
call fcn.0041855e
add esp, 4
xor eax, eax
jmp 0x4065a0
mov cl, byte [esp + eax + 0x68]
mov byte [eax + 0x43c440], cl
inc eax
test cl, cl
jne 0x4065a0
push 0x43c440
push 0x3eb
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004181f3
mov esp, ebp
pop ebp
ret
call fcn.0041855e
mov ecx, dword [esp + 0x178]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.004181f3
mov esp, ebp
pop ebp
ret
Function at 0x406e10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
mov ecx, dword [0x43a760]
cmp ecx, 0x270
jl 0x406ef0
cmp ecx, 0x271
jne 0x406e35
mov ecx, 0x1105
call fcn.00406d20
xor ecx, ecx
jmp 0x406e40
mov eax, dword [ecx*4 + 0x43c554]
xor eax, dword [ecx*4 + 0x43c550]
inc ecx
and eax, 0x7fffffff
xor eax, dword [ecx*4 + 0x43c54c]
mov edx, eax
shr eax, 1
and edx, 1
xor eax, dword [edx*4 + 0x43a848]
xor eax, dword [ecx*4 + 0x43cb80]
mov dword [ecx*4 + 0x43c54c], eax
cmp ecx, 0xe3
jl 0x406e40
cmp ecx, 0x26f
jge 0x406ec1
lea ecx, [ecx*4 + 0x43c550]
mov edi, edi
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
add ecx, 4
and eax, 0x7fffffff
xor eax, dword [ecx - 4]
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x43a848]
xor edx, dword [ecx - 0x390]
shr eax, 1
xor edx, eax
mov dword [ecx - 4], edx
cmp ecx, 0x43cf0c
jl 0x406e90
mov ecx, dword [0x43cf0c]
mov eax, dword [0x43c550]
xor eax, ecx
and eax, 0x7fffffff
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x43a848]
xor eax, dword [0x43cb80]
xor ecx, ecx
mov dword [0x43cf0c], eax
mov eax, dword [ecx*4 + 0x43c550]
inc ecx
mov edx, eax
shr edx, 0xb
xor eax, edx
mov dword [0x43a760], ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov edx, eax
and edx, 0xffffdf8c
shl edx, 0xf
xor eax, edx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
mov dword [esp], ecx
fild dword [esp]
jns 0x406f34
fadd qword [0x434928]
fmul qword [0x434920]
pop ecx
ret
Function at 0x40cf50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x438e28]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push esi
push edi
push eax
lea eax, [esp + 0x14]
push str._s_shellUsePrintFolders
push eax
call fcn.00418202
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x80000000
call edi
test eax, eax
jne 0x40d0a8
mov ecx, dword [0x44d46c]
push 0x104
lea eax, [esp + 0x14]
push eax
push 0x72
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cfc0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push eax
call esi
test eax, eax
je 0x40d007
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004181f3
add esp, 0x118
ret
mov edx, dword [str.command]
mov eax, dword [0x43477c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edx
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
push edx
push eax
call edi
test eax, eax
jne 0x40cfe5
push 0x104
call fcn.0041882e
mov edx, dword [0x44d474]
add esp, 4
push 0x104
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40d08b
push edi
lea eax, [esp + 0x14]
push str.__s_____1_
push eax
call fcn.00418202
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d070
sub eax, edx
mov edx, dword [esp + 0xc]
inc eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
call esi
push edi
call fcn.0041855e
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.004181f3
add esp, 0x118
ret
Function at 0x40dca0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov eax, dword [0x438e28]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.SoftwareStratopoint_SoftwarePrintFolders
push 0x80000001
call esi
push str.SoftwareRoman_PivovaroffPrintFolders1
push 0x80000002
call esi
push str.SoftwareRoman_PivovaroffPrintFolders
push 0x80000002
call esi
lea eax, [esp + 4]
push eax
push 8
push 0
push str.SoftwareRoman_Pivovaroff
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dd3a
mov ecx, dword [esp + 4]
push 0x100
push 0x44d5b0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40dd2f
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareRoman_Pivovaroff
push 0x80000002
call esi
jmp 0x40dd3a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.drive
lea ecx, [esp + 0xc]
push str._s_shellUsePrintFolderscommand
push ecx
call fcn.00418202
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x80000000
call esi
push str.drive
lea eax, [esp + 0xc]
push str._s_shellUsePrintFolders
push eax
call fcn.00418202
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x80000000
call esi
push str.directory
lea edx, [esp + 0xc]
push str._s_shellUsePrintFolderscommand
push edx
call fcn.00418202
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x80000000
call esi
push str.directory
lea ecx, [esp + 0xc]
push str._s_shellUsePrintFolders
push ecx
call fcn.00418202
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x80000000
call esi
mov ecx, dword [esp + 0x110]
pop esi
xor ecx, esp
call fcn.004181f3
add esp, 0x110
ret

Function at 0x40dea4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x438e28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40df79
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40df68
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x40df52
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x40df68
push eax
push edi
push dword [ebp - 0x110]
call fcn.0040de41
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40df7b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004181f3
leave
ret 4