joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f100
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x630
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
mov ebx, dword [esp + 0x638]
push ebp
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x434]
push esi
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], esi
call fcn.00476ef0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x22c]
push esi
push ecx
call fcn.00476ef0
add esp, 0xc
push 0x208
lea edx, [esp + 0x24]
push esi
push edx
call fcn.00476ef0
add esp, 0xc
test ebx, ebx
je 0x44f332
push 0x104
lea eax, [esp + 0x434]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.modules
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x230]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x228]
push ecx
call edi
test eax, eax
jne 0x44f1da
push str.sdsp
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x230]
push eax
call esi
lea ecx, [esp + 0x228]
push ecx
call edi
test eax, eax
jne 0x44f205
push 0x103
lea edx, [esp + 0x434]
push edx
lea eax, [esp + 0x230]
push eax
call fcn.004760bd
add esp, 0xc
push 0x4aa0ec
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x28]
push edx
call esi
lea eax, [esp + 0x20]
push eax
call fcn.00451920
add esp, 4
test eax, eax
je 0x44f247
push 0x103
lea ecx, [esp + 0x24]
push ecx
push ebx
call fcn.004760bd
add esp, 0xc
mov eax, 1
jmp 0x44f334
call fcn.00403a60
mov esi, eax
cmp dword [esi], 0
jne 0x44f2c9
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea edi, [esi + 4]
push str.ntdll.dll
mov dword [edi], 0x114
call ebp
test eax, eax
je 0x44f2c9
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlGetVersion
push eax
call ebx
test eax, eax
je 0x44f2c5
push edi
call eax
test eax, eax
jl 0x44f2c5
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x24], 0
call ebp
push eax
call ebx
mov edi, eax
test edi, edi
je 0x44f2b5
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x44f2b9
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x118], eax
mov dword [esi], 1
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 8]
cmp eax, 6
ja 0x44f2d9
jne 0x44f32c
cmp dword [esi + 0xc], 1
jb 0x44f32c
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xb
push str.dbgeng.dll
lea ecx, [esp + 0x28]
push 0x104
push ecx
call fcn.00476107
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44f32c
push 0x103
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.004760bd
add esp, 0xc
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
jmp 0x44f334
mov eax, esi
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x630
ret
Function at 0x451820
Capabilities:
Check if file exists
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push ebp
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
xor ebp, ebp
mov word [esp + 0x14], ax
call fcn.00476ef0
add esp, 0xc
test ebx, ebx
je 0x451903
lea edx, [esp + 8]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x451870
push esi
push edi
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x451890
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x451890
mov ecx, 7
mov esi, str.dbgfiles.cab
push str.http:__sdl.360safe.com_dbgfiles.cab
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push str.http:__sdl.360safe.com_dbgfiles.cab
push 0
call sub.urlmon.dll_URLDownloadToFileW
pop edi
pop esi
test eax, eax
jne 0x4518e9
push ebx
push 0x451750
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
test eax, eax
je 0x4518e9
mov ebp, 1
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451903
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x210]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x20c
ret

Function at 0x451f60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
push esi
call fcn.00451fe0
test eax, eax
je 0x451fba
cmp dword [esi + 0x10], 0
jne 0x451f88
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x451fba
cmp dword [esi + 0xc], 0
jne 0x451fbe
push 0
push 0
push esi
push 0x403a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x451fbe
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
xor eax, eax
pop esi
ret
push 1
add esi, 8
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
pop esi
ret
Function at 0x4532e0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 8], 0
je 0x453339
cmp dword [esi + 4], 0
je 0x453339
cmp dword [esi + 0xc], 0
jne 0x453339
cmp dword [esi + 0x10], 0
jne 0x453339
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x453339
push 0
push 0
push esi
push 0x403a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x453339
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
ret
Function at 0x454680
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
xor ebp, ebp
mov esi, ecx
push edi
mov dword [esp + 0xc], ebp
cmp esi, ebp
je 0x454796
cmp dword [esi + 8], ebp
je 0x454796
cmp dword [esi + 0x24], ebp
je 0x454796
push 0x206
lea ecx, [esp + 0x1e]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x24], ax
call fcn.00476ef0
add esp, 0xc
mov edi, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x206
cmp dword [esi + 0xc], ebp
je 0x4546fb
call fcn.00403a60
cmp dword [eax + 0x118], ebp
je 0x4546fb
mov edi, 0x101
cmp dword [esi + 0x28], 8
jb 0x454706
mov edx, dword [esi + 0x14]
jmp 0x454709
lea edx, [esi + 0x14]
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0040ee60
add esp, 8
test eax, eax
jne 0x454787
cmp dword [esi + 0x44], 8
jb 0x454729
mov eax, dword [esi + 0x30]
jmp 0x45472c
lea eax, [esi + 0x30]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454787
cmp dword [esi + 0x78], ebp
je 0x454773
cmp dword [esi + 0x7c], 8
jb 0x45475d
mov esi, dword [esi + 0x68]
jmp 0x454760
add esi, 0x68
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x454787
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x454787
mov ebp, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x454796
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00471eba
add esp, 0x220
ret
Function at 0x4547b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x638
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
test esi, esi
je 0x454963
mov edi, dword [esi + 8]
test edi, edi
je 0x454963
cmp dword [esi + 0x24], eax
je 0x454963
cmp dword [esi + 0x78], eax
je 0x454963
push 0x206
push eax
lea ecx, [esp + 0x232]
push ecx
mov word [esp + 0x234], ax
call fcn.00476ef0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2a]
push eax
mov word [esp + 0x2c], dx
call fcn.00476ef0
add esp, 0xc
cmp dword [esi + 0xc], 0
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0x206
mov dword [esp + 0x1c], 0x206
je 0x454854
mov eax, 0x101
mov ebx, 8
cmp dword [esi + 0x28], ebx
jb 0x454863
mov edx, dword [esi + 0x14]
jmp 0x454866
lea edx, [esi + 0x14]
lea ecx, [esp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.0040ee60
add esp, 8
test eax, eax
jne 0x454950
cmp dword [esi + 0x44], ebx
jb 0x454888
mov eax, dword [esi + 0x30]
jmp 0x45488b
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x454950
cmp dword [esi + 0x60], ebx
jb 0x4548bf
mov eax, dword [esi + 0x4c]
jmp 0x4548c2
lea eax, [esi + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push edx
call edi
test eax, eax
jne 0x454950
push 0x206
push eax
lea ecx, [esp + 0x43a]
push ecx
mov word [esp + 0x43c], ax
call fcn.00476ef0
add esp, 0xc
cmp dword [esi + 0x7c], ebx
jb 0x454907
mov esi, dword [esi + 0x68]
jmp 0x45490a
add esi, 0x68
push esi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x43c]
push 0x4a8740
push ecx
mov ecx, 0x104
call fcn.00404a10
add esp, 0x14
test eax, eax
jl 0x454950
lea edx, [esp + 0x430]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x454950
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45495f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x638
ret
Function at 0x4549e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
test esi, esi
je 0x454b19
cmp dword [esi + 0x24], ebx
je 0x454b19
cmp dword [esi + 0x78], ebx
je 0x454b19
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00476ef0
add esp, 0xc
cmp dword [esi + 4], 0xffffffff
je 0x454a91
xor edi, edi
push edi
call fcn.0040f530
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x454a5b
push ebx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x454a5b
mov edi, 1
mov edx, dword [esi + 4]
push 0
push edx
lea eax, [esp + 0x20]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebp, eax
test edi, edi
je 0x454a7a
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test ebx, ebx
je 0x454a85
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x454b34
mov ebx, dword [esp + 0x14]
mov edi, 8
cmp dword [esi + 0x28], edi
jb 0x454aa0
mov eax, dword [esi + 0x14]
jmp 0x454aa3
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x454b19
cmp dword [esi + 0x40], 0
jne 0x454aef
cmp dword [esi + 0x7c], edi
jb 0x454ac3
mov esi, dword [esi + 0x68]
jmp 0x454ac6
add esi, 0x68
push esi
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x454b19
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x454b19
mov eax, 1
jmp 0x454b1b
cmp dword [esi + 0x44], edi
jb 0x454af9
mov ecx, dword [esi + 0x30]
jmp 0x454afc
lea ecx, [esi + 0x30]
cmp dword [esi + 0x7c], edi
jb 0x454b06
mov esi, dword [esi + 0x68]
jmp 0x454b09
add esi, 0x68
push esi
lea edi, [esp + 0x1c]
call fcn.00454f70
mov dword [esp + 0x14], eax
mov ebx, eax
mov eax, ebx
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x21c
ret
mov eax, dword [esp + 0x14]
jmp 0x454b1b
Function at 0x454b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x454c58
cmp dword [esi + 8], ebx
je 0x454c58
cmp dword [esi + 0x24], ebx
je 0x454c58
cmp dword [esi + 0x5c], ebx
je 0x454c58
cmp dword [esi + 0x78], ebx
je 0x454c58
push 0x206
lea ecx, [esp + 0x26]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2c], ax
call fcn.00476ef0
add esp, 0xc
mov edi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x206
cmp dword [esi + 0xc], ebx
je 0x454bce
call fcn.00403a60
cmp dword [eax + 0x118], ebx
je 0x454bce
mov edi, 0x101
mov ebp, 8
cmp dword [esi + 0x28], ebp
jb 0x454bdd
mov edx, dword [esi + 0x14]
jmp 0x454be0
lea edx, [esi + 0x14]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0040ee60
add esp, 8
test eax, eax
jne 0x454c49
cmp dword [esi + 0x44], ebp
jb 0x454bff
mov eax, dword [esi + 0x30]
jmp 0x454c02
lea eax, [esi + 0x30]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454c49
cmp dword [esi + 0x60], ebp
jb 0x454c2d
mov ecx, dword [esi + 0x4c]
jmp 0x454c30
lea ecx, [esi + 0x4c]
cmp dword [esi + 0x7c], ebp
jb 0x454c3a
mov esi, dword [esi + 0x68]
jmp 0x454c3d
add esi, 0x68
push esi
lea edi, [esp + 0x24]
call fcn.00454f70
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x454c58
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00471eba
add esp, 0x224
ret
Function at 0x454c80
Capabilities:
Accept command line arguments
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x434
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x42c], eax
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
test esi, esi
je 0x454e4d
cmp dword [esi + 8], eax
je 0x454e4d
cmp dword [esi + 0x24], eax
je 0x454e4d
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.00476ef0
add esp, 0xc
cmp dword [esi + 0xc], 0
mov edi, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0x206
je 0x454cfe
call fcn.00403a60
cmp dword [eax + 0x118], 0
je 0x454cfe
mov edi, 0x101
cmp dword [esi + 0x28], 8
jb 0x454d09
mov edx, dword [esi + 0x14]
jmp 0x454d0c
lea edx, [esi + 0x14]
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0040ee60
add esp, 8
test eax, eax
jne 0x454e38
cmp dword [esi + 0x44], 8
jb 0x454d30
mov esi, dword [esi + 0x30]
jmp 0x454d33
add esi, 0x30
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x454e38
mov si, word [esp + 0x20]
xor edx, edx
cmp dx, si
je 0x454e38
push 0x206
push edx
lea ecx, [esp + 0x232]
push ecx
mov word [esp + 0x234], ax
call fcn.00476ef0
add esp, 0xc
lea eax, [esp + 0x228]
cmp si, 0x22
je 0x454daf
lea edx, [esp + 0x20]
push edx
push 0x4a6510
push eax
mov ecx, 0x104
call fcn.00404a10
add esp, 0xc
test eax, eax
jmp 0x454df6
lea esi, [esp + 0x20]
lea ecx, [esp + 0x228]
xor edi, edi
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x454de3
movzx ecx, word [esi + eax]
test cx, cx
je 0x454de3
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x454dc3
jmp 0x454de7
test edx, edx
jne 0x454def
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
jl 0x454e38
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x22c]
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x454e38
mov edx, dword [esi]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 1
test eax, eax
jne 0x454e2f
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x454e3c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x454e4b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x434]
pop edi
pop esi
xor ecx, esp
call fcn.00471eba
add esp, 0x434
ret
Function at 0x454ec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49843a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x454f4c
cmp dword [esi + 0x24], 0
je 0x454f4c
lea eax, [esp + 0xc]
push eax
call fcn.00407e10
mov dword [esp + 0x30], 0
add esi, 0x10
push esi
lea ecx, [esp + 0x10]
push ecx
call fcn.0042b390
mov edx, dword [ebp + 8]
push edx
lea esi, [esp + 0x10]
call fcn.00457ca0
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.004287f0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x454f70
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x670
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x66c], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 8], eax
test ebx, ebx
je 0x4550b8
test edi, edi
je 0x4550b8
test esi, esi
je 0x4550b8
push 0x206
push eax
lea ecx, [esp + 0x472]
push ecx
mov word [esp + 0x474], ax
call fcn.00476ef0
add esp, 0xc
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
lea edx, [esp + 0x470]
push edx
call esi
test eax, eax
je 0x4550b4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4550b4
test byte [esp + 0x10], 0x10
je 0x455087
cmp word [esp + 0x3c], 0x2e
jne 0x45502e
mov ax, word [esp + 0x3e]
test ax, ax
je 0x455087
cmp ax, 0x2e
jne 0x45502e
cmp word [esp + 0x40], 0
je 0x455087
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x26a]
push eax
mov word [esp + 0x26c], dx
call fcn.00476ef0
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push edi
lea edx, [esp + 0x268]
push edx
call esi
test eax, eax
je 0x455087
push ebx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x455087
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4550a1
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x455007
jmp 0x4550a9
mov dword [esp + 8], 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x674]
pop esi
pop ebx
xor ecx, esp
call fcn.00471eba
mov esp, ebp
pop ebp
ret 4
Function at 0x456340
Capabilities:
Accept command line arguments
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x495a32
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x644]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x64c], ebp
mov esi, ecx
mov dword [esp + 0x20], ebp
push ebp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push 0x4a5b20
mov dword [esp + 0x2c], esi
mov edi, edx
mov word [esi + 4], ax
call fcn.00402bd0
mov dword [esp + 0x64c], ebp
mov ebx, 1
mov dword [esp + 0x20], ebx
cmp edi, ebp
je 0x45655d
push 0x206
lea edx, [esp + 0x43e]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x444], cx
call fcn.00476ef0
push edi
lea eax, [esp + 0x448]
push str.SYSTEMCurrentControlSetServices_s
push eax
mov ecx, 0x104
call fcn.00404a10
add esp, 0x18
cmp eax, ebp
jl 0x45655d
push 0x206
lea edx, [esp + 0x236]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x23c], cx
call fcn.00476ef0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x20]
push edx
push str.ImagePath
lea eax, [esp + 0x448]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x45655d
mov di, word [esp + 0x230]
xor ecx, ecx
cmp cx, di
je 0x45655d
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x34], dx
call fcn.00476ef0
add esp, 0xc
cmp di, 0x22
je 0x4564b7
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x2c]
push 0x4a6510
push edx
mov ecx, 0x104
call fcn.00404a10
add esp, 0xc
test eax, eax
jmp 0x456503
lea eax, [esp + 0x28]
lea edi, [esp + 0x230]
mov ecx, eax
xor ebx, ebx
mov edx, 0x104
sub edi, ecx
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4564f0
movzx ecx, word [edi + eax]
cmp cx, bp
je 0x4564f0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4564d0
jmp 0x4564f4
cmp edx, ebp
jne 0x4564fc
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
cmp ebx, ebp
jl 0x45655d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp edi, ebp
je 0x45655d
mov edx, dword [edi]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456556
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov edx, dword [edi]
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x456540
sub eax, ebx
sar eax, 1
push eax
push edx
call fcn.00402bd0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [esp + 0x644]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.00471eba
add esp, 0x63c
ret