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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fa0b8
push eax
mov eax, dword [0x6cce44]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4874e3
mov eax, dword [0x6cd200]
test eax, eax
jne 0x4873d3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6cd1f4]
test eax, eax
jne 0x4873f0
call fcn.004868a0
mov dword [0x6cd1f0], eax
mov dword [0x6cd1f4], 1
mov eax, dword [0x6cd1f0]
test eax, eax
je 0x487400
mov edx, dword [esp + 0x18]
push edx
jmp 0x4873b2
mov esi, dword [esp + 0x18]
push esi
call fcn.00486960
add esp, 4
test eax, eax
jne 0x487442
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48745e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4874a6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6cd0e0]
test eax, eax
jne 0x487450
mov eax, 0x6cd0e4
push eax
push esi
call fcn.005c55fc
add esp, 8
test eax, eax
jne 0x487474
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6ccfd0]
test eax, eax
jne 0x487482
mov eax, 0x6ccfd4
push eax
push esi
call fcn.005c55fc
add esp, 8
test eax, eax
jne 0x4874a6
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4874c9
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00486740
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x487548
mov eax, dword [0x6a1f58]
test eax, eax
jne 0x487548
push edi
lea ecx, [esp + 0x1c]
call fcn.005df616
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.005c2f50
add esp, 8
test eax, eax
jne 0x487537
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.005df556
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x487560
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fa0d8
push eax
mov eax, dword [0x6cce44]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x487684
mov eax, dword [0x6cd200]
test eax, eax
jne 0x4875ab
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6cd1f4]
test eax, eax
jne 0x4875c8
call fcn.004868a0
mov dword [0x6cd1f0], eax
mov dword [0x6cd1f4], 1
mov eax, dword [0x6cd1f0]
test eax, eax
je 0x4875ef
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00486960
add esp, 4
test eax, eax
jne 0x487647
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x487631
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x487647
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x48766a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004867f0
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4876dc
mov eax, dword [0x6a1f58]
test eax, eax
jne 0x4876dc
push edi
lea ecx, [esp + 0x1c]
call fcn.005df616
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.005c2f50
add esp, 8
test eax, eax
jne 0x4876cb
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.005df556
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x4876f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x90
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x24], eax
push edi
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov ecx, 0x10
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebx
mov esi, str.S_1_16_8192
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x4c], ecx
push edx
mov dword [esp + 0x54], ecx
push 0x8b
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
xor ebp, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, ebx
je 0x487822
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
push 2
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
je 0x487822
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
je 0x487822
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x487822
lea edx, [esp + 0x14]
lea ecx, [esp + 0x34]
push edx
push ecx
call eax
mov esi, eax
cmp esi, ebx
je 0x487822
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0x20
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, ebx
je 0x487822
lea ecx, [esp + 0x24]
lea edx, [esp + 0x5c]
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x487833
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x48783e
push eax
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x487854
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x48785f
push eax
call edi
cmp ebp, ebx
je 0x48786a
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x4883b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x4883ed
push eax
call fcn.005db986
add esp, 4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005db95d
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x4884aa
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 1
push eax
mov edx, dword [ecx + 8]
mov eax, dword [0x6cce6c]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6cc7b8
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4884aa
lea edx, [ebp + 8]
push edx
call fcn.005c477b
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x6cc7b8
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x488610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.0043f560
mov ecx, dword [0x6cce6c]
cmp ecx, esi
je 0x4886b0
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x4886c1
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x48866f
push eax
call fcn.005db986
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x4886b0
inc eax
push eax
call fcn.005db95d
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x4886b0
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x6cce6c]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x4886b0
mov eax, dword [ebx + 4]
push eax
call fcn.005db986
add esp, 4
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push str.ExceptionServers
push eax
call fcn.005c46cc
add esp, 8
test eax, eax
jne 0x4886b0
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005db95d
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x4886b0
mov edi, str..update.microsoft.com_download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [0x6cce6c]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d490
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.005db95d
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x48d5d8
mov eax, dword [0x6a1f58]
test eax, eax
je 0x48d4d2
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
jmp 0x48d505
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call fcn.005df616
mov edx, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.005df556
cmp ebx, 0xffffffff
je 0x48d53a
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48d527
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48d533
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x48d533
test esi, esi
jne 0x48d54f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.005db986
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.005db95d
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x48d57d
push ebp
call fcn.005db986
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, esi
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebx
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x48d5c6
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x48d5c6
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.005db986
push ebp
call fcn.005db986
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x48d990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fa598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6c826c]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0xc]
push str._d__URL_s
push eax
mov dword [esp + 0x20], 0
call fcn.005d838b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0048d8e0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.005df556
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x48e380
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [0x6cce6c]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 8]
je 0x48e3b4
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x48e3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5fa658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x6cce6c]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x48e47c
mov edx, dword [0x6c826c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.005df923
mov edx, dword [0x6cce6c]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x48e46b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.005df2cb
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005df556
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005df556
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x48e489
mov eax, 0x6cc7b8
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.005df5c4
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x48f2a0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x6cd218]
test eax, eax
jne 0x48f2f6
lea eax, [esp]
push eax
push 0
push 0
push 0x48f300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x6cd218], eax
je 0x48f2ed
mov eax, dword [0x6cd21c]
test eax, eax
jne 0x48f2fb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x6cd21c]
test eax, eax
je 0x48f2db
pop esi
pop ecx
ret
xor eax, eax
mov dword [0x6cd21c], eax
pop ecx
ret
mov eax, dword [0x6cd21c]
pop ecx
ret
Function at 0x49a190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fb2cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6cc7b8
push 0
push str.SoftwareDownloadManagerGetAllDlgLS
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x49a230
lea ecx, [ebp - 0x23c]
call fcn.0049c670
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.0049c790
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.0049c780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x49a265
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push edi
call ebx
push 0x5a
push edi
mov dword [ebp - 0x24], eax
call ebx
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x24], 0x60
je 0x49a26f
mov byte [ebp - 0x11], 1
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi + 0x45c]
xor edi, edi
mov dword [ebp - 0x1c], eax
cmp edi, 6
jge 0x49a2c8
mov al, byte [ebp - 0x11]
mov edx, dword [esi + 0x42c]
push 0
push edi
test al, al
push 0x101d
push edx
je 0x49a2b8
call ebx
mov ecx, dword [ebp - 0x24]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x49a280
call ebx
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x49a280
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x45c]
push 4
push eax
mov eax, dword [ebp - 0x18]
push 4
push 0
push str.FileName
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x460]
push 4
push ecx
push 4
push 0
push str.FileType
push edx
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x464]
push 4
push eax
push 4
push 0
push str.Size
push ecx
call edi
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x468]
push 4
push edx
push 4
push 0
push 0x6a1744
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x46c]
push 4
push ecx
push 4
push 0
push str.SaveTo
push edx
call edi
mov eax, dword [ebp - 0x18]
add esi, 0x470
push 4
push esi
push 4
push 0
push 0x6a5c40
push eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49e180
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edx, dword [esi + 0x1c]
test edx, edx
jle 0x49e1f9
mov ebx, dword [esi + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x49e1ae
inc eax
add ecx, 4
cmp eax, edx
jl 0x49e198
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov dword [ebx + eax*4], 0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub ecx, eax
dec ecx
lea ebx, [edx + eax*4]
je 0x49e1d5
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.005c3fb0
add esp, 0xc
mov edx, dword [esi + 0x1c]
dec edx
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x49e1e6
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x49e1f9
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x49e200
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5fb830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov word [esp + 0x10], bx
mov esi, dword [ecx + 8]
mov dword [esp + 0x84], ebx
cmp esi, ebx
jne 0x49e23b
lea esi, [ecx + 0xc]
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x3c]
push 0xa
push eax
push ecx
call fcn.005c469a
mov edx, str._sproject_s.gsd
add esp, 0xc
test edx, edx
mov edi, eax
je 0x49e39b
cmp esi, ebx
je 0x49e39b
cmp edi, ebx
je 0x49e39b
push ebp
push ebx
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.00402880
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401f50
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
call fcn.00401f50
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 3
call fcn.00401070
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00401f40
push eax
call fcn.005c2f1a
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00401f40
push eax
call fcn.005c2f1a
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005db95d
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x49e368
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
call fcn.00401f40
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f40
push eax
lea ecx, [esp + 0x3c]
call fcn.00401f40
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c2eaa
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c2f1a
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 2
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 1
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], bl
call fcn.00401070
pop ebp
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x49e3aa
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
mov dword [esp + 0x78], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
Function at 0x49ec40
Capabilities:
Access peb ldr_data
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x5fb9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x6c826c]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push ecx
push str.._s:
push edx
mov dword [esp + 0x30], edi
call fcn.005d838b
mov eax, dword [esp + 0x18]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x49ecf0
push ebp
lea ecx, [esp + 0x30]
push edi
push ecx
lea edx, [esp + 0x1c]
push 0xc
push edx
push edi
push edi
push 0x2d1080
push esi
mov dword [esp + 0x50], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, edi
pop ebp
je 0x49ecf0
mov eax, dword [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0049ed20
test eax, eax
jne 0x49eceb
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0049eff0
test eax, eax
je 0x49ecf0
mov edi, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.005df556
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4