joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415af0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [edi + 4]
push esi
mov dword [edi], eax
mov byte [eax], 0
push str.20010101
or eax, 0xffffffff
mov esi, edi
mov ebx, ecx
call fcn.00413e70
mov ebx, dword [ebx]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
push ebx
or eax, 0xffffffff
lea esi, [ebp - 0xac]
mov byte [ebp - 0xa8], 0
call fcn.00413e70
push str.Datauser2.ini
mov eax, esi
call fcn.00413d70
mov ecx, dword [ebp - 0xac]
push ecx
push 0x63
lea edx, [ebp - 0x68]
push edx
push str.20010101
push str.PUBLICDATE
push 0x44706c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x68]
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.00413e70
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
pop esi
pop ebx
cmp eax, ecx
je 0x415b99
push eax
call fcn.004244b1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.0042396b
mov esp, ebp
pop ebp
ret

Function at 0x415bb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xc
mov esi, ecx
mov dword [ebp - 0x1c], 0
call fcn.00422f2f
push 0xa
mov edi, eax
call fcn.00422f2f
add esp, 8
push 0xa
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0xc
push edi
push 0x4481ec
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push 0x4481f0
push ecx
call fcn.0042409f
lea eax, [esi + 4]
add esp, 0xc
lea edx, [ebp - 0x18]
mov dword [esi], eax
mov byte [eax], 0
push edx
or eax, 0xffffffff
call fcn.00413e70
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x415c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1e4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415cec
lea ecx, [ebp - 0x1ec]
push ecx
mov ecx, dword [ebp - 0x1e4]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x1e8]
push eax
push 0
push str.ProductName
push ecx
mov dword [ebp - 0x1ec], 0xff
mov dword [ebp - 0x1e8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415cdf
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x4468c1
or eax, 0xffffffff
mov esi, edi
call fcn.00413e70
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1e4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1e0]
push eax
mov dword [ebp - 0x1e0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x415cb7
lea edx, [ebp - 0x108]
lea ecx, [ebp - 0x148]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x14c]
mov dword [ebp - 0x14c], ecx
mov byte [ebp - 0x148], 0
call fcn.00413e70
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
mov eax, dword [ebp - 0x14c]
push eax
or eax, 0xffffffff
mov esi, edi
call fcn.00413e70
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x148]
cmp eax, ecx
je 0x415d61
push eax
call fcn.004244b1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x415fa0
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19054
call fcn.004390f0
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x41600d
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x4468c1
or eax, 0xffffffff
mov esi, edi
call fcn.00413e70
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x416171
push eax
call fcn.004244b1
add esp, 4
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
push 0
push 0x102
push 0
push 0
push edx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
xor eax, eax
cmp ebx, eax
jne 0x416038
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x416146
push eax
lea edx, [ebp - 0x19054]
push edx
mov dword [ebp - 0x19050], eax
mov dword [ebp - 0x19054], eax
lea eax, [ebp - 0x19050]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x19050], 0x190
ja 0x41613a
push 0x19000
lea edx, [ebp - 0x19004]
push 0
push edx
mov dword [ebp - 0x1904c], 0
call fcn.0042cae0
add esp, 0xc
lea eax, [ebp - 0x1904c]
push eax
push 0x19000
lea ecx, [ebp - 0x19004]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41613a
mov eax, dword [ebp - 0x1904c]
test eax, eax
je 0x41613a
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp + eax - 0x19004], 0
call ebx
push esi
call ebx
lea eax, [ebp - 0x19004]
lea edx, [ebp - 0x19044]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x19048]
mov dword [ebp - 0x19048], edx
mov byte [ebp - 0x19044], 0
call fcn.00413e70
push 0x19000
lea ecx, [ebp - 0x19004]
push 0
push ecx
call fcn.0042cae0
add esp, 0xc
mov edx, esi
push edx
mov eax, edi
call fcn.00413d20
mov eax, dword [ebp - 0x19048]
lea ecx, [ebp - 0x19044]
cmp eax, ecx
je 0x416130
push eax
call fcn.004244b1
add esp, 4
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
cmp eax, edx
jmp 0x416165
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push esi
call ebx
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x4468c1
or eax, 0xffffffff
mov esi, edi
call fcn.00413e70
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x416170
push eax
call fcn.004244b1
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x4162a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 0x10], 0
ja 0x4162b4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4162fd
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4162de
mov esi, dword [esi]
mov ecx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4414bb
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.0042cae0
add esp, 0xc
lea ecx, [ebp - 0x134]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsTheWorld.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4163f1
mov ecx, dword [ebp - 0x134]
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push str.Path
push ecx
mov dword [ebp - 0x138], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4163d5
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.0040a090
cmp dword [ebp - 0x120], ebx
jbe 0x41645a
push 0xd
push str.TheWorld.ini
lea ecx, [ebp - 0x130]
call fcn.0040a090
cmp dword [ebp - 0x11c], 0x10
mov ecx, dword [ebp - 0x130]
jae 0x416420
lea ecx, [ebp - 0x130]
cmp dword [esi + 0x14], 0x10
jb 0x41642a
mov eax, dword [esi]
jmp 0x41642c
mov eax, esi
push ecx
push eax
push str.HomePage
push str.Option
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 0x11c], 0x10
jb 0x416456
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00423dcd
add esp, 4
mov al, 1
jmp 0x416474
cmp dword [ebp - 0x11c], 0x10
jb 0x416472
mov edx, dword [ebp - 0x130]
push edx
call fcn.00423dcd
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x417050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax + 0x10], 0
ja 0x417067
xor al, al
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push str.SoftwareTENCENTQQBrowserLaunch
push 0x80000001
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4170d5
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.LaunchOpenPageType
push eax
mov dword [ebp - 8], 1
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.MainPageType
push edx
mov dword [ebp - 8], 2
call esi
mov eax, dword [ebp - 4]
push eax
call ebx
lea ecx, [ebp - 4]
push ecx
push 0x20006
push 0
push str.SoftwareTENCENTQQBrowserCommon
push 0x80000001
call edi
test eax, eax
jne 0x417123
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
add eax, 0x54
cmp dword [eax + 0x14], 0x10
jb 0x417101
mov eax, dword [eax]
mov edx, dword [ebp - 4]
push ecx
push eax
push 1
push 0
push str.MainPageDIY
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call ebx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x417e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440858
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x417e7c
xor eax, eax
jmp 0x418000
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x417ea5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x417ea5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x418000
cmp dword [edi + 0x54], 0
je 0x417ffd
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x417ecd
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x417ef3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00425295
add esp, 8
cmp eax, 0xffffffff
je 0x417ffd
mov eax, ebx
jmp 0x418000
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.004186a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x417f10
mov edx, eax
cmp ebx, 0x10
jae 0x417f1c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x417ff5
cmp eax, 1
jg 0x417faf
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x417f5c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x417f85
cmp ebx, 0x10
jae 0x417f6b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00425e3e
add esp, 0x10
cmp esi, eax
jne 0x417ff5
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x417fe8
test esi, esi
jne 0x417f10
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x417ff8
push esi
push 8
call fcn.00407ff0
jmp 0x417f05
cmp eax, 3
jne 0x417ff5
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00425295
add esp, 8
cmp eax, 0xffffffff
je 0x417fd9
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00406ed0
mov eax, esi
jmp 0x418000
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.00406ed0
mov eax, esi
jmp 0x418000
lea ecx, [ebp - 0x2c]
call fcn.00406ed0
mov eax, dword [ebp + 8]
jmp 0x418000
lea ecx, [ebp - 0x2c]
call fcn.00406ed0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret 4
Function at 0x418c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x418d77
cmp byte [edi + 0x49], 0
je 0x418d77
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x418d6b
lea esi, [ebp - 0x2c]
call fcn.004186a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x418ce3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x418d0c
dec eax
je 0x418d10
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x418d66
jmp 0x418d72
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x418d20
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x418d49
cmp ebx, 0x10
jae 0x418d2f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00425e3e
add esp, 0x10
cmp esi, eax
jne 0x418d63
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x418d6f
test esi, esi
jne 0x418cd7
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00407ff0
jmp 0x418cd1
lea ecx, [ebp - 0x2c]
call fcn.00406ed0
xor al, al
jmp 0x418d79
lea ecx, [ebp - 0x2c]
call fcn.00406ed0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x41bc10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebx + 4]
push edi
mov dword [ebx], eax
mov byte [eax], 0
push 0x4468c1
or eax, 0xffffffff
mov esi, ebx
call fcn.00413e70
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
push str.Software_
or eax, 0xffffffff
lea esi, [ebp - 0x1a0]
mov byte [ebp - 0x19c], 0
call fcn.00413e70
push str.bianya2
mov eax, esi
call fcn.00413d70
mov eax, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x1a4]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41bd04
push 0x103
push eax
lea edx, [ebp - 0x107]
push edx
mov byte [ebp - 0x108], al
call fcn.0042cae0
mov edx, dword [ebp - 0x1a4]
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x44693c
push edx
mov dword [ebp - 0x1a8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41bcf7
lea eax, [ebp - 0x108]
push eax
push 0x446940
mov edi, ebx
call fcn.00414360
add esp, 8
mov ecx, dword [ebp - 0x1a4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bd10
sub eax, edx
test eax, eax
jg 0x41be28
lea edx, [ebp - 0x1a8]
push edx
lea eax, [ebp - 0x1a4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x1a4]
push ecx
push 0x20006
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41be28
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x10e]
movzx edx, word [ebp - 0x110]
push ecx
movzx ecx, word [ebp - 0x116]
lea eax, [ebp - 0x158]
push edx
movzx edx, word [ebp - 0x118]
mov dword [ebp - 0x15c], eax
movzx eax, word [ebp - 0x112]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
lea edi, [ebp - 0x15c]
mov byte [ebp - 0x158], 0
call fcn.00414360
mov edx, dword [ebp - 0x15c]
mov eax, edx
add esp, 0x18
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41bdd0
sub eax, esi
push eax
mov eax, dword [ebp - 0x1a4]
push edx
push 1
push 0
push 0x44693c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x1a4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x15c]
push edx
or eax, 0xffffffff
mov esi, ebx
call fcn.00413e70
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x41be28
push eax
call fcn.004244b1
add esp, 4
mov eax, dword [ebp - 0x1a0]
lea edx, [ebp - 0x19c]
pop edi
pop esi
cmp eax, edx
je 0x41be43
push eax
call fcn.004244b1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, ebx
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x41be60
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441898
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
push 0x44927c
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41bf9b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x41beda
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
jmp 0x41bfa3
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41bf9b
push edi
call fcn.00422f2f
add esp, 4
mov dword [0x4543f4], eax
test eax, eax
je 0x41bf16
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x4543f4]
push eax
push edx
call fcn.00426a40
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.0042cae0
push edi
call fcn.00422160
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41bf96
push 0xffffffffffffffff
lea edx, [ebp - 0x13c]
call fcn.004221d0
add esp, 4
test eax, eax
jne 0x41bf96
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41bf6e
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea ecx, [ebp + 0xc]
mov eax, esp
mov dword [ebp - 0x144], esp
push ecx
call fcn.00413d20
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
push edx
mov edx, edi
call fcn.0041bfd0
call fcn.00422210
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
je 0x41bfae
push eax
call fcn.004244b1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret 0x48
Function at 0x41bfd0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441860
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x45166c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x188], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x41c02e
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x41c1b7
jmp 0x41c046
mov esi, dword [ebp - 0x188]
push 0x12c
lea edx, [ebp - 0x180]
push 0
push edx
call fcn.0042cae0
add esp, 0xc
test esi, esi
jne 0x41c06c
mov dword [0x454424], 0x10000
jmp 0x41c091
cmp dword [esi], 1
je 0x41c07d
mov dword [0x454424], 0x80000
jmp 0x41c091
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x180]
call fcn.00421750
mov dword [0x454424], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
test edi, edi
jne 0x41c0a7
mov edi, 0x4468c1
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41c0b0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x41c0d8
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x54], 0
call fcn.00424f55
add esp, 8
mov dword [ebp - 0x54], eax
push esi
push edi
push eax
call fcn.00424ca5
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x4468f4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00413d70
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x54]
call fcn.00413d70
test byte [ebp - 0x78], 0x10
je 0x41c11c
mov eax, dword [ebp - 0x54]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x188]
test eax, eax
jne 0x41c132
mov dword [0x454424], 0x10000
jmp 0x41c155
cmp dword [eax], 1
je 0x41c143
mov dword [0x454424], 0x80000
jmp 0x41c155
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.00421e40
mov dword [0x454424], eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x41c171
mov ecx, dword [ebp - 0x54]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x41c190
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x41c1a7
push eax
call fcn.004244b1
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x41c040
mov edi, dword [ebp - 0x184]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x41c1d1
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x41c1e4
push eax
call fcn.004244b1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret 0x48