joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415420
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45066c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xc
mov esi, ecx
mov dword [ebp - 0x1c], 0
call fcn.00422bff
push 0xa
mov edi, eax
call fcn.00422bff
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 0x447060
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push 0x447064
push ecx
call fcn.004236c2
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.004137c0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042304b
mov esp, ebp
pop ebp
ret

Function at 0x4154b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
mov eax, dword [0x45066c]
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 0x41555c
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 0x41554f
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x4457f5
or eax, 0xffffffff
mov esi, edi
call fcn.004137c0
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042304b
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 0x415527
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.004137c0
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.004137c0
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x148]
cmp eax, ecx
je 0x4155d1
push eax
call fcn.00423ad1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0042304b
mov esp, ebp
pop ebp
ret
Function at 0x415810
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.00438620
mov eax, dword [0x45066c]
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 0x41587d
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x4457f5
or eax, 0xffffffff
mov esi, edi
call fcn.004137c0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x4159e1
push eax
call fcn.00423ad1
add esp, 4
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042304b
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 0x4158a8
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4159b6
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 0x4159aa
push 0x19000
lea edx, [ebp - 0x19004]
push 0
push edx
mov dword [ebp - 0x1904c], 0
call fcn.0042c010
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 0x4159aa
mov eax, dword [ebp - 0x1904c]
test eax, eax
je 0x4159aa
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.004137c0
push 0x19000
lea ecx, [ebp - 0x19004]
push 0
push ecx
call fcn.0042c010
add esp, 0xc
mov edx, esi
push edx
mov eax, edi
call fcn.00413670
mov eax, dword [ebp - 0x19048]
lea ecx, [ebp - 0x19044]
cmp eax, ecx
je 0x4159a0
push eax
call fcn.00423ad1
add esp, 4
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
cmp eax, edx
jmp 0x4159d5
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 0x4457f5
or eax, 0xffffffff
mov esi, edi
call fcn.004137c0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x4159e0
push eax
call fcn.00423ad1
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0042304b
mov esp, ebp
pop ebp
ret
Function at 0x415b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 0x10], 0
ja 0x415b74
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 0x415bbd
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x415b9e
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 0x415bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4408eb
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x45066c]
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.0042c010
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 0x415cb1
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 0x415c95
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.004099f0
cmp dword [ebp - 0x120], ebx
jbe 0x415d1a
push 0xd
push str.TheWorld.ini
lea ecx, [ebp - 0x130]
call fcn.004099f0
cmp dword [ebp - 0x11c], 0x10
mov ecx, dword [ebp - 0x130]
jae 0x415ce0
lea ecx, [ebp - 0x130]
cmp dword [esi + 0x14], 0x10
jb 0x415cea
mov eax, dword [esi]
jmp 0x415cec
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 0x415d16
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.004233f0
add esp, 4
mov al, 1
jmp 0x415d34
cmp dword [ebp - 0x11c], 0x10
jb 0x415d32
mov edx, dword [ebp - 0x130]
push edx
call fcn.004233f0
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.0042304b
mov esp, ebp
pop ebp
ret
Function at 0x416910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax + 0x10], 0
ja 0x416927
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 0x416995
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 0x4169e3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
add eax, 0x54
cmp dword [eax + 0x14], 0x10
jb 0x4169c1
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 0x417730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fcb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x45066c]
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 0x41776c
xor eax, eax
jmp 0x4178f0
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x417795
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x417795
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 0x4178f0
cmp dword [edi + 0x54], 0
je 0x4178ed
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x4177bd
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 0x4177e3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.004248b5
add esp, 8
cmp eax, 0xffffffff
je 0x4178ed
mov eax, ebx
jmp 0x4178f0
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00417f90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x417800
mov edx, eax
cmp ebx, 0x10
jae 0x41780c
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 0x4178e5
cmp eax, 1
jg 0x41789f
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x41784c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x417875
cmp ebx, 0x10
jae 0x41785b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042545e
add esp, 0x10
cmp esi, eax
jne 0x4178e5
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 0x4178d8
test esi, esi
jne 0x417800
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x4178e8
push esi
push 8
call fcn.00407970
jmp 0x4177f5
cmp eax, 3
jne 0x4178e5
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.004248b5
add esp, 8
cmp eax, 0xffffffff
je 0x4178c9
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00406830
mov eax, esi
jmp 0x4178f0
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.00406830
mov eax, esi
jmp 0x4178f0
lea ecx, [ebp - 0x2c]
call fcn.00406830
mov eax, dword [ebp + 8]
jmp 0x4178f0
lea ecx, [ebp - 0x2c]
call fcn.00406830
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.0042304b
mov esp, ebp
pop ebp
ret 4
Function at 0x418560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4401f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45066c]
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 0x418667
cmp byte [edi + 0x49], 0
je 0x418667
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x41865b
lea esi, [ebp - 0x2c]
call fcn.00417f90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x4185d3
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 0x4185fc
dec eax
je 0x418600
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x418656
jmp 0x418662
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x418610
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x418639
cmp ebx, 0x10
jae 0x41861f
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042545e
add esp, 0x10
cmp esi, eax
jne 0x418653
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x41865f
test esi, esi
jne 0x4185c7
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00407970
jmp 0x4185c1
lea ecx, [ebp - 0x2c]
call fcn.00406830
xor al, al
jmp 0x418669
lea ecx, [ebp - 0x2c]
call fcn.00406830
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.0042304b
mov esp, ebp
pop ebp
ret
Function at 0x41b4d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
mov eax, dword [0x45066c]
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 0x4457f5
or eax, 0xffffffff
mov esi, ebx
call fcn.004137c0
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.004137c0
push str.Bianya
mov eax, esi
call fcn.004136c0
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 0x41b5c4
push 0x103
push eax
lea edx, [ebp - 0x107]
push edx
mov byte [ebp - 0x108], al
call fcn.0042c010
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 0x44586c
push edx
mov dword [ebp - 0x1a8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b5b7
lea eax, [ebp - 0x108]
push eax
push 0x445870
mov edi, ebx
call fcn.00413cb0
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 0x41b5d0
sub eax, edx
test eax, eax
jg 0x41b6e8
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 0x41b6e8
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.00413cb0
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 0x41b690
sub eax, esi
push eax
mov eax, dword [ebp - 0x1a4]
push edx
push 1
push 0
push 0x44586c
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.004137c0
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x41b6e8
push eax
call fcn.00423ad1
add esp, 4
mov eax, dword [ebp - 0x1a0]
lea edx, [ebp - 0x19c]
pop edi
pop esi
cmp eax, edx
je 0x41b703
push eax
call fcn.00423ad1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, ebx
call fcn.0042304b
mov esp, ebp
pop ebp
ret
Function at 0x41b720
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x45066c]
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 0x4480f4
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41b85b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x41b79a
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
jmp 0x41b863
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41b85b
push edi
call fcn.00422bff
add esp, 4
mov dword [0x4533f4], eax
test eax, eax
je 0x41b7d6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x4533f4]
push eax
push edx
call fcn.00426040
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.0042c010
push edi
call fcn.00421840
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41b856
push 0xffffffffffffffff
lea edx, [ebp - 0x13c]
call fcn.004218b0
add esp, 4
test eax, eax
jne 0x41b856
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b82e
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.00413670
mov edx, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
push edx
mov edx, edi
call fcn.0041b890
call fcn.004218f0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
je 0x41b86e
push eax
call fcn.00423ad1
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.0042304b
mov esp, ebp
pop ebp
ret 0x48
Function at 0x41b890
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440c90
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x45066c]
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 0x41b8ee
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 0x41ba77
jmp 0x41b906
mov esi, dword [ebp - 0x188]
push 0x12c
lea edx, [ebp - 0x180]
push 0
push edx
call fcn.0042c010
add esp, 0xc
test esi, esi
jne 0x41b92c
mov dword [0x453424], 0x10000
jmp 0x41b951
cmp dword [esi], 1
je 0x41b93d
mov dword [0x453424], 0x80000
jmp 0x41b951
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x180]
call fcn.00420e30
mov dword [0x453424], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
test edi, edi
jne 0x41b967
mov edi, 0x4457f5
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x41b970
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x41b998
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x54], 0
call fcn.00424575
add esp, 8
mov dword [ebp - 0x54], eax
push esi
push edi
push eax
call fcn.004242c5
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x445828
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004136c0
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x54]
call fcn.004136c0
test byte [ebp - 0x78], 0x10
je 0x41b9dc
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 0x41b9f2
mov dword [0x453424], 0x10000
jmp 0x41ba15
cmp dword [eax], 1
je 0x41ba03
mov dword [0x453424], 0x80000
jmp 0x41ba15
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.00421520
mov dword [0x453424], eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x41ba31
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 0x41ba50
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 0x41ba67
push eax
call fcn.00423ad1
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x41b900
mov edi, dword [ebp - 0x184]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x41ba91
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 0x41baa4
push eax
call fcn.00423ad1
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.0042304b
mov esp, ebp
pop ebp
ret 0x48