joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44747d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x447489
mov eax, 0x476650
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x447928
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x474417
call fcn.0045454c
sub esp, 0x138
and byte [ebp - 0x144], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
stosb byte es:[edi], al
push 1
lea eax, [ebp - 0x10]
pop ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x447a05
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x447992
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x144]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x477c94
mov esi, 0x477c8c
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00415b01
push 0x48c148
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043d006
lea ecx, [ebp - 0x40]
call fcn.0044756d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
jmp 0x447a54
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x144]
mov edi, 0x477c94
mov esi, 0x477c8c
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x20], esi
call fcn.00415b01
push 0x48c148
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0043d006
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00403c6a
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00402424
cmp dword [ebp - 0x10], 0
je 0x447a6d
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x447a6d
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x44859f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x4485b5
mov dword [ebp + 0xc], 4
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4485ea
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0043a007
lea eax, [ebp - 0x48]
push 0x483910
push eax
call fcn.00455746
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8
Function at 0x4485f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x448608
mov dword [ebp + 0xc], 1
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44863d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0043a007
lea eax, [ebp - 0x48]
push 0x483910
push eax
call fcn.00455746
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x448645
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x448659
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44868d
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044cee5
test al, al
jne 0x4486c0
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00439f3c
lea eax, [ebp - 0x4c]
push 0x483ad0
push eax
call fcn.00455746
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4486c0
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0043a007
lea eax, [ebp - 0x48]
push 0x483910
push eax
call fcn.00455746
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44a5e4
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x44a61e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x44a605
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x44a616
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x44a620
inc edi
add eax, 0x28
cmp edi, esi
jb 0x44a5fb
xor eax, eax
pop edi
pop esi
ret

Function at 0x44a7a0
Capabilities:
Enumerate pe sections

Disassembly:
js 0x44a7de
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0044a5a3
invalid
cmp eax, ebx
jbe 0x44a7fd
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x44a7f7
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x44a7e8
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
invalid
inc ebp

Function at 0x44a8d7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
rol esi, 0x45
ret 0x88ec
jo 0x44a89f
inc ebp
rcl byte [ebx]
call fcn.0044a5a3
loopne 0x44a91f
Function at 0x44a982
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0044a5b3
push eax
push esi
push dword [ebp + 8]
call fcn.0044a568
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44

Function at 0x44a9d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0044a5b3
push eax
push esi
push dword [ebp + 8]
call fcn.0044a568
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0044a5a3
sal dh, 0x9b
insb byte es:[edi], dx
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.0044a5a3
mov ch, 1
rcl byte [ebp + ecx*4 - 0x837b], cl
call dword [eax - 0x18]
sbb al, 0xfb
invalid

Function at 0x44ac76
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x44ac7a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax - 0x15], ah
push ds
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x44acf6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x44acdd
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x44ace6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x44acf0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x44acd2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x44ac5c
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x44ac8a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x44ac7a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
add byte [eax - 0x15], ah
push ds
add byte [eax - 0x15], ah
push ds
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x44acf6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x44acdd
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x44ace6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x44acf0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x44acd2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x44ac5c
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x44c99d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push edi
mov edi, ecx
call fcn.0040ddf1
xor ebx, ebx
cmp eax, 1
jne 0x44ca3a
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x44ca27
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ebx
push ebx
push str.ProxyEnable
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x44c9fe
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
push ebx
push str.AutoConfigURL
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x44ca27
mov byte [ebp - 0x830], bl
cmp dword [ebp - 4], ebx
je 0x44ca3a
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x44ca3a
push dword [ebp - 4]
call eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044c479
add esp, 0x14
xor ecx, ecx
cmp eax, ebx
mov dword [edi + 4], eax
setne cl
pop edi
mov al, cl
pop ebx
leave
ret 0x14
Function at 0x44d185
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x44d1bd
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x44d1c9
mov eax, dword [esi + 0x5c]
jmp 0x44d212
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x44d210
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x44d1ee
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x44d1d2
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x44d707
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
mov esi, ecx
push eax
push 0x20000013
push dword [esi + 4]
mov dword [ebp - 4], 4
call fcn.0044c655
add esp, 0x14
test eax, eax
je 0x44d745
mov eax, dword [ebp - 8]
cmp eax, 0xc8
jb 0x44d749
cmp eax, 0x12c
jae 0x44d749
mov al, 1
jmp 0x44d75f
add eax, 0xd3c0
or eax, 0x80040000
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
leave
ret

Function at 0x44e773
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 4], eax
je 0x44e7c5
push eax
call fcn.0045469e
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44e7c5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x48c148
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x44e7c9
xor al, al
jmp 0x44e82a
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x44e828
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0045469e
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x44e828
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x44e816
mov al, 1
pop ebx
leave
ret 4
Function at 0x44ef13
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44efe5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0045469e
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp + 8]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x44efe5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0x30]
lea ecx, [esi + 0x28]
push dword [ecx + 4]
call fcn.0044f748
push dword [esi + 0x20]
lea ecx, [esi + 0x18]
push dword [ecx + 4]
call fcn.0044f6f2
mov edi, 0x4947dc
push edi
call fcn.004548e0
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004394b7
mov edi, dword [ebp - 4]
mov ecx, esi
and byte [edi + ebx], 0
mov dword [esi + 0x38], edi
call fcn.0044ea37
push eax
push 0
mov ecx, esi
call fcn.0044ebac
test eax, eax
je 0x44efe5
mov ecx, esi
call fcn.0044ea37
push eax
push 9
mov ecx, esi
call fcn.0044ebac
test eax, eax
je 0x44efe5
push esi
mov ecx, esi
call fcn.0044ee87
test eax, eax
jne 0x44efe9
xor eax, eax
jmp 0x44eff3
push edi
call fcn.00439086
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44f118
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x474e60
call fcn.0045454c
sub esp, 0x5c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], ecx
mov esi, dword [eax + 0x2c]
mov eax, dword [eax + 0x30]
cmp esi, eax
je 0x44f209
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 4]
mov dword [ebp - 4], edi
cmp eax, edi
jne 0x44f150
mov eax, 0x477c4c
lea ecx, [ebp - 0xd]
push 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401889
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, edi
jne 0x44f16f
mov eax, 0x4765fc
mov ecx, dword [ebp + 0xc]
push 0xf003f
push eax
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00416de8
test eax, eax
setne bl
and byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00401093
test bl, bl
jne 0x44f1e6
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0044f118
cmp dword [esi + 0x14], edi
jne 0x44f1e6
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x44f1b6
mov eax, 0x477c4c
lea ecx, [ebp - 0xe]
push 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.00401889
mov eax, dword [eax + 8]
cmp eax, edi
jne 0x44f1d1
mov eax, 0x4765fc
mov ecx, dword [ebp + 0xc]
push eax
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x68]
call fcn.00401093
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], edi
je 0x44f1f8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add esi, 0x38
cmp esi, dword [eax + 0x30]
jne 0x44f13c
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4513b6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x4513d9
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x74]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00450687
add esp, 0x18
test eax, eax
je 0x45147e
push dword [edi]
call fcn.0045469e
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], cl
push eax
lea ecx, [esi + 0x6c]
call fcn.00443f6e
cmp byte [ebp - 0xc], bl
je 0x451422
push dword [ebp - 8]
call fcn.00439086
pop ecx
mov eax, dword [esi + 0x70]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00450687
add esp, 0x18
test eax, eax
je 0x45147e
lea eax, [ebp - 4]
push ebx
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x70]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x45148b
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.004508d7
add esp, 0x18
test eax, eax
jne 0x45148b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x7c], eax
xor al, al
jmp 0x4514a5
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4514a3
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x453d90
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x475368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x453dfe
lea ecx, [esp + 0x14]
call fcn.00405c03
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x453e31
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00410f31
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00410997
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.00405c03
xor al, al
jmp 0x453f44
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x453e5f
cmp eax, ebx
je 0x453e59
cmp edi, ebx
je 0x453e59
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x453e96
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x453e8e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x453e8e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x453e8e
cmp edi, ebx
je 0x453e8e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x453ee1
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x453ec3
cmp eax, ebx
je 0x453ebd
cmp ebp, ebx
je 0x453ebd
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x453eee
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x453eda
cmp edi, ebx
je 0x453eda
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x453eea
cmp edi, ebx
je 0x453eea
push eax
call edi
xor al, al
jmp 0x453f44
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.00453b20
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x453f1f
cmp ebp, ebx
je 0x453f1f
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x453f32
cmp edi, ebx
je 0x453f32
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x453f42
cmp edi, ebx
je 0x453f42
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x464a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield16.0Professional
push SysReAllocStringLen
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x464aea
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x464adf
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x464ad7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x464aea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret