joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d0ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46d0e1
push 0x80004005
call fcn.00405bcb
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x46d0e8
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46d18d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x46d254
xor eax, eax
cmp dword [ebp - 8], esi
je 0x46d1d6
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x46d254
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x46d22a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0046d18d
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x46d267
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], pe_nt_image_headers32
call edi
test eax, eax
je 0x46d1fe
cmp dword [ebp - 8], esi
je 0x46d244
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x46d25e
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x46d271
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x46d260
Function at 0x46df82
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a8b14
call fcn.004a7044
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov ebx, ecx
call fcn.00405e5d
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00405e5d
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00405e5d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0046e0b5
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x46e01f
add eax, 0xfffffff0
call fcn.00405cd9
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov eax, dword [0x4d92a0]
push edi
mov ecx, 0x4d92a0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x10], edi
mov eax, ebx
mov byte [ebp - 4], 7
call fcn.0044ff24
test eax, eax
jbe 0x46e094
lea eax, [ebp - 0x10]
lea edi, [ebp + 0x10]
call fcn.00405daf
mov eax, edi
push eax
call fcn.0040a672
pop ecx
mov eax, ebx
call fcn.0044ff24
cmp esi, eax
jb 0x46e066
call fcn.00478ccb
mov eax, dword [ebx + 4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x10]
call fcn.00406d24
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e098
mov eax, ebx
inc esi
call fcn.0044ff24
cmp esi, eax
jb 0x46e042
mov bl, 1
jmp 0x46e09a
xor bl, bl
lea eax, [edi - 0x10]
call fcn.00405cd9
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd9
mov al, bl
pop edi
jmp 0x46e00f

Function at 0x4720fa
Capabilities:
Delete file

Disassembly:
mov eax, 0x4a9d98
call fcn.004a7044
sub esp, 0x10
mov eax, dword [0x4d92a0]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x4d92a0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.004721b7
mov ebx, eax
test ebx, ebx
jne 0x47214b
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x47219b
push 0x28
call fcn.00440a56
test eax, eax
pop ecx
je 0x47215f
push eax
call fcn.00450827
jmp 0x472161
xor eax, eax
test eax, eax
mov esi, eax
je 0x47219b
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x472194
xor esi, esi
lea eax, [edi - 0x10]
call fcn.00405cd9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x14], 1
cmp dword [edi - 0xc], 0
je 0x4721a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4721b2
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x472179
Function at 0x472298
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x20c], di
call fcn.00477100
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472340
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
je 0x472339
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x472339
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x472f6f
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x4a8a31
call fcn.004a7044
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x98], edi
je 0x473156
cmp dword [ebx + 0xb4], edi
je 0x473156
cmp dword [ebx + 0xf8], edi
je 0x473156
mov dword [ebp - 0x10], edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], edi
call fcn.00405e5d
push 0x4b9d50
lea esi, [ebx + 0xc0]
mov byte [ebp - 4], 1
call fcn.0046f11a
test eax, eax
push edi
push dword [ebp - 0x14]
lea esi, [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
jne 0x472fe6
call fcn.0046d782
jmp 0x472feb
call fcn.004060f9
cmp eax, edi
jne 0x47300f
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
cmp dword [ebp - 0x10], edi
je 0x473008
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x473159
call dword [0x4d408c]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x84]
cmp dword [eax + 0x18], 0x10
jb 0x473029
mov esi, dword [eax + 4]
jmp 0x47302c
lea esi, [eax + 4]
cmp esi, edi
je 0x473042
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x473046
xor eax, eax
jmp 0x47305c
lea eax, [edi + edi]
call fcn.004880b0
mov eax, esp
push dword [ebp - 0x18]
push edi
push esi
mov esi, eax
call fcn.00408dee
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405e5d
mov byte [ebp - 4], 2
mov eax, dword [0x4d92a0]
mov ecx, 0x4d92a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0xa0]
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x473092
mov esi, dword [eax + 4]
jmp 0x473095
lea esi, [eax + 4]
test esi, esi
je 0x4730ab
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x4730b1
and dword [ebp - 0x1c], 0
jmp 0x4730ca
lea eax, [edi + edi]
call fcn.004880b0
mov eax, esp
push dword [ebp - 0x18]
push edi
push esi
mov esi, eax
call fcn.00408dee
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x1c], 0x10
jb 0x4730d5
mov ebx, dword [ebx + 8]
jmp 0x4730d8
add ebx, 8
test ebx, ebx
je 0x4730ee
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x4730f2
xor eax, eax
jmp 0x473106
lea eax, [edi + edi]
call fcn.004880b0
mov esi, esp
push dword [ebp - 0x18]
push edi
push ebx
call fcn.00408dee
push dword [ebp - 0x1c]
push eax
push 0x4bd950
lea eax, [ebp - 0x20]
call fcn.004070b5
mov edi, dword [ebp - 0x20]
add esp, 0xc
push edi
push dword [ebp - 0x24]
lea esi, [ebp - 0x10]
call fcn.0040941b
lea eax, [edi - 0x10]
call fcn.00405cd9
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405cd9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
cmp dword [ebp - 0x10], 0
je 0x473156
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474a8b
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x474aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
leave
ret
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x474b2e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x431
je 0x474af4
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
jmp 0x474aaa
push 2
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x474b10
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x474ae4
push dword [ebp + 0x14]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x474b08
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x474ae6

Function at 0x474b4a
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x474b64
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x474b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x474bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x474b8f
push esi
call ebx
xor esi, esi
jmp 0x474b8a
Function at 0x474bbd
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 8], eax
jne 0x474be2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x474c0b
push ebx
push edi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x474c0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push ebx
call edi
test eax, eax
je 0x474c36
cmp dword [ebp - 0x20], 4
jne 0x474c36
xor eax, eax
jmp 0x474c09
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x474c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x474c09
mov dword [ebp - 4], esi
cmp esi, 0xbb8
jge 0x474c9e
lea eax, [ebp - 0x24]
push eax
push ebx
call edi
test eax, eax
je 0x474c8c
cmp dword [ebp - 0x20], 1
je 0x474c97
cmp dword [ebp - 0x20], 4
je 0x474c9e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x64
jmp 0x474c60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x474c9e
mov dword [ebp - 4], 0xe0000018
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 4]
jmp 0x474bfe
Function at 0x475795
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a89f5
call fcn.004a7044
sub esp, 0x214
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov ecx, 0x4d92a0
call fcn.00405ea0
xor esi, esi
mov dword [ebp - 4], ebx
inc esi
push ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea eax, [ebp - 0x21e]
push ebx
push eax
mov word [ebp - 0x220], bx
call fcn.00477100
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x220]
push eax
call fcn.0047a28a
test eax, eax
pop ecx
je 0x475835
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call fcn.00406078
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x475855
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
pop ebx
je 0x47586d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret

Function at 0x47587c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a8c74
call fcn.004a7044
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4d92a0
mov dword [ebp - 0x10], edi
call fcn.00405ea0
push 0x208
lea eax, [ebp - 0x21a]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x21c], di
call fcn.00477100
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x47590a
lea eax, [ebp - 0x21c]
push eax
call fcn.0047a28a
test eax, eax
pop ecx
je 0x47590a
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00406078
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x47591a
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4a7707
call fcn.004a7044
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
xor edi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
push 0x4ad8cc
push 1
push ebx
push 0x4ad8ec
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4759ca
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
push dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4ad92c
push eax
call dword [ecx]
cmp eax, ebx
jl 0x4759ca
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push 1
push eax
push ecx
call dword [edx + 0x18]
cmp eax, ebx
jl 0x4759ca
inc edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4759e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4759f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4762f8
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4aad09
call fcn.004a7044
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.0040944f
cmp eax, 0xc
jne 0x4763dd
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00475795
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
mov dword [esp], 0x4bfed8
push eax
call fcn.00406d75
mov eax, dword [0x4d92a0]
mov ecx, 0x4d92a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push dword [esi]
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push str._s_s.lnk
call fcn.004070b5
add esp, 0xc
lea edi, [esi + 0x1c]
lea eax, [ebp - 0x18]
call fcn.00405daf
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x10]
push eax
call fcn.0047587c
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0047591a
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x4763be
push dword [esi]
lea ecx, [ebp - 0x10]
push str._s.lnk
call fcn.00406a54
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.004762be
add esp, 0x10
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd9
lea eax, [edi - 0x10]
call fcn.00405cd9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd9
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x476b7c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d4304]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00476abb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00477100
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x476bcb
cmp dword [ebp - 0x1c], 5
jb 0x476be3
jmp 0x476bdf
cmp dword [ebp - 0x10], 1
jne 0x476be3
cmp dword [ebp - 0x1c], 4
ja 0x476bdf
jne 0x476be3
cmp dword [ebp - 0x18], 0
jbe 0x476be3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4ada38
call fcn.00454a44
test eax, eax
jge 0x476c04
mov byte [0x4d9fd8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0047f08c
add ebp, 0x78
leave
ret
Function at 0x476e83
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4d9324], 0
push esi
jne 0x476df6
call fcn.00476d21
test eax, eax
je 0x476e39
mov eax, dword [0x4d9324]
cmp eax, 1
jne 0x476e17
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x476e39
pop esi
ret
push eax
call dword [0x4d932c]
test eax, eax
jne 0x476e81
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x476e3d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4d9324]
call dword [0x4d932c]
mov edi, eax
test edi, edi
je 0x476e64
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x476e80
lea edi, [esi + 0xff0]
push esi
push dword [0x4d9324]
call dword [0x4d9328]
add esi, 0x10
cmp esi, edi
jb 0x476e6a
mov eax, esi
pop edi
pop esi
ret
jmp 0x476de3
Function at 0x47900d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x47904a
cmp dword [ebp + 0x14], edi
je 0x47904a
cmp ecx, edi
jne 0x479051
call fcn.0047fa53
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00478ca7
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x479065
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x479086
cmp ebx, 0xffffffff
je 0x479075
push ebx
push edi
push ecx
call fcn.00477100
add esp, 0xc
cmp esi, edi
je 0x479032
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x479032
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4790a2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4790a9
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x47919a
test word [esi + 0xc], 0x10c
je 0x4790fd
mov eax, dword [esi + 4]
test eax, eax
je 0x4790fd
jl 0x4791fb
cmp ebx, eax
mov edi, ebx
jb 0x4790ce
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4791a2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047975b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x479192
cmp ebx, dword [ebp - 0xc]
jb 0x47916a
cmp dword [ebp - 0xc], 0
je 0x479127
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x47911c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x479123
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x479132
mov eax, SysReAllocString
cmp ebx, eax
ja 0x479132
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4791ce
push eax
push dword [ebp - 8]
push esi
call fcn.0047bf10
pop ecx
push eax
call fcn.00484483
add esp, 0xc
test eax, eax
je 0x47920d
cmp eax, 0xffffffff
je 0x4791fb
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x479192
push esi
call fcn.00483da2
cmp eax, 0xffffffff
pop ecx
je 0x4791ff
cmp dword [ebp - 4], 0
je 0x4791ce
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4790b1
mov eax, dword [ebp + 0x14]
jmp 0x47904c
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4791b9
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00477100
add esp, 0xc
call fcn.0047fa53
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x479042
cmp dword [ebp + 0xc], 0xffffffff
je 0x4791e4
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00477100
add esp, 0xc
call fcn.0047fa53
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x479042
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47904c
or dword [esi + 0xc], 0x10
jmp 0x4791ff