joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a6e5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x10084500]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, esi
mov dword [ebp + 0xa0], eax
call fcn.1004f201
cmp eax, 0x17
jbe 0x1000a71b
push 0x17
mov ecx, esi
call fcn.1000a395
mov ecx, esi
call fcn.1004f201
and dword [ebp - 0x68], 0
mov dword [ebp - 0x80], eax
push 0
lea eax, [ebp - 0x68]
push eax
mov ebx, 0x1006cb68
push ebx
call fcn.10056d60
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
push ebx
push dword [ebp + 0xac]
call esi
push 0
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xac]
call esi
push ebx
call fcn.10056d60
pop ecx
mov ecx, dword [ebp - 0x80]
add eax, 4
lea eax, [eax + ecx*8]
lea ecx, [edi + 0x44]
mov dword [ebp - 0x7c], eax
xor ebx, ebx
call fcn.1004f201
test eax, eax
jbe 0x1000a7cb
push 0
lea eax, [ebp - 0x68]
push eax
push 4
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xac]
call esi
mov eax, dword [edi + 0x48]
mov ecx, ebx
shl ecx, 3
push 0
add eax, ecx
lea ecx, [ebp - 0x68]
push ecx
push 4
push eax
push dword [ebp + 0xac]
call esi
mov eax, dword [edi + 0x48]
mov ecx, ebx
shl ecx, 3
add eax, ecx
mov eax, dword [eax]
add dword [ebp - 0x7c], eax
lea ecx, [edi + 0x44]
inc ebx
call fcn.1004f201
cmp ebx, eax
jb 0x1000a780
and dword [ebp - 0x70], 0
lea ecx, [edi + 0x44]
call fcn.1004f201
test eax, eax
jbe 0x1000a88b
mov ebx, dword [ebp - 0x70]
mov eax, dword [edi + 0x48]
shl ebx, 3
add eax, ebx
cmp dword [eax], 0
je 0x1000a877
push dword [eax]
call fcn.100565f2
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x64]
push eax
call fcn.10004425
mov eax, dword [edi + 0x48]
pop ecx
pop ecx
xor ecx, ecx
add eax, ebx
cmp dword [eax], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x74], ecx
jbe 0x1000a856
jmp 0x1000a81e
mov ecx, dword [ebp - 0x74]
mov eax, dword [eax + 4]
mov al, byte [eax + ecx]
mov edx, dword [ebp - 0x6c]
xor al, byte [ebp + edx - 0x64]
mov edx, dword [ebp - 0x78]
inc dword [ebp - 0x6c]
mov byte [ecx + edx], al
lea eax, [ebp - 0x64]
push eax
call fcn.10056d60
cmp dword [ebp - 0x6c], eax
pop ecx
jne 0x1000a847
and dword [ebp - 0x6c], 0
inc dword [ebp - 0x74]
mov eax, dword [edi + 0x48]
mov ecx, dword [ebp - 0x74]
add eax, ebx
cmp ecx, dword [eax]
jb 0x1000a81b
mov eax, dword [edi + 0x48]
push 0
lea ecx, [ebp - 0x68]
push ecx
add eax, ebx
push dword [eax]
push dword [ebp - 0x78]
push dword [ebp + 0xac]
call esi
push dword [ebp - 0x78]
call fcn.100564da
pop ecx
inc dword [ebp - 0x70]
lea ecx, [edi + 0x44]
call fcn.1004f201
cmp dword [ebp - 0x70], eax
jb 0x1000a7df
push dword [ebp + 0xac]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp + 0xa0]
pop edi
pop esi
pop ebx
call fcn.100568ae
add ebp, 0xa4
leave
ret 4
Function at 0x1000cea7
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
and dword [edi], 0
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp dword [esi + 4], 0
mov dword [esi], eax
je 0x1000cef2
cmp dword [esi + 8], 0
je 0x1000cef2
push dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x1000cef2
push edi
push 0x40
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1000fae3
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x10067b32
call fcn.100575f8
push ecx
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x20]
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
lea ecx, [esi + 0x50]
mov dword [ebp - 4], eax
call fcn.1000dde4
lea ecx, [esi + 0xbc]
call fcn.10002e22
mov ecx, dword [esi + 0x24]
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
or dword [esi + 0x10], 0xffffffff
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov byte [esi + 0x18], al
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x28]
push eax
push ecx
xor edi, edi
inc edi
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x30], edi
mov dword [esi + 8], edi
mov dword [esi + 0x1c], 0x64
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], edi
call fcn.1000e8af
or eax, 0xffffffff
push 0x10
push eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
xor ebx, ebx
lea eax, [esi + 0xa0]
push eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x98], ebx
call fcn.10056960
or dword [esi + 0xb8], 0xffffffff
add esp, 0xc
lea ecx, [esi + 0xbc]
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
call fcn.1000653a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100182c9
Capabilities:
Parse url

Disassembly:
mov eax, 0x100682c0
call fcn.100575f8
sub esp, 0x868
mov eax, dword [0x10084500]
push esi
xor edx, edx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x838], edx
push 0xe
mov esi, dword [ebp + 0xc]
pop ecx
xor eax, eax
mov dword [ebp - 0x874], 0x3c
lea edi, [ebp - 0x870]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x834], dl
mov ecx, 0x208
lea edi, [ebp - 0x833]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x834]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x874]
push eax
push 0x10000000
push edx
push esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x860], 0x824
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x1001835a
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.10013950
jmp 0x10018389
push 4
lea eax, [ebp - 0x834]
push str.www.
push eax
call fcn.1005b211
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x830]
je 0x10018383
lea eax, [ebp - 0x834]
push eax
call fcn.1000a345
lea ecx, [esi - 0x10]
call fcn.10004f32
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.100568ae
leave
ret
Function at 0x1001e37b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str._08x__
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret
Function at 0x1002314d
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10084500]
push esi
push edi
mov dword [ebp + 0x74], eax
mov esi, ecx
lea eax, [ebp - 0x14]
xor edi, edi
push eax
mov byte [esi + 0x6c], 1
mov dword [esi + 0x3c], edi
mov ecx, dword [0x10085fc8]
push edi
call fcn.1000e49c
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x70
jb 0x10023188
push 0x70
pop ecx
push ecx
push eax
push esi
call fcn.10056df0
mov eax, 0x498
add esp, 0xc
cmp dword [esi], eax
je 0x100232f7
push edi
push edi
mov dword [esi], eax
mov ecx, dword [0x10085fc8]
push 0xd
call fcn.1000acf9
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x1006c864
mov dword [ebp - 0x18], 0xfdec
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x100231d8
xor dword [ebp - 0x18], 0x1221
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push str._08x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x10]
push str.SoftwareMicrosoft_
push eax
call fcn.10057da0
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10057db0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x10]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x10023246
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x20], 3
lea eax, [ebp - 0x20]
jmp 0x10023274
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x10]
push eax
push 0x80000001
call ebx
test eax, eax
jne 0x10023297
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 3
lea eax, [ebp - 0x1c]
lea ebx, [esi + 8]
push ebx
push eax
push edi
lea eax, [ebp + 0x54]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10023297
push edi
call fcn.10057f09
pop ecx
mov dword [ebx], eax
mov dword [ebx + 4], edx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld1
fstp qword [esi + 0x48]
xor ebx, ebx
fldz
inc ebx
push edi
fstp qword [esi + 0x50]
mov ecx, esi
mov dword [esi + 0x24], 0xea60
mov dword [esi + 0x28], 0x36ee80
mov dword [esi + 0x34], 0x5265c00
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x38], edi
call fcn.10022e80
push edi
call fcn.10057f09
push edi
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], edx
call fcn.10057f09
pop ecx
pop ecx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
pop ebx
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
call fcn.100568ae
add ebp, 0x78
leave
ret
Function at 0x10023308
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor dword [ebp - 4], 0x3e80f31
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
push str._08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret

Function at 0x10023350
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str._08x___
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret

Function at 0x10023398
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str._08x___121
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret

Function at 0x100233e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1006c864
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor dword [ebp - 4], 0x3e80f31
push dword [ebp - 4]
push str._08x___122
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret

Function at 0x100235c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push str.SYSTEMCurrentControlSetServicesDnscacheParameters
push 0x80000002
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10023619
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.MaxNegativeCacheTtl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10023610
mov eax, dword [ebp - 0xc]
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x258
leave
ret
Function at 0x1002365e
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1fc
mov eax, dword [0x10084500]
push ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowExA]
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push ebp
push dword [esp + 0x21c]
mov dword [esp + 0x218], eax
call ebx
mov esi, eax
cmp esi, ebp
je 0x100236eb
mov edi, 0xfa
push edi
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
lea eax, [esp + 0x110]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
push dword [esp + 0x214]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x100236eb
push dword [esp + 0x214]
push esi
call fcn.1002365e
cmp eax, ebp
pop ecx
pop ecx
jne 0x100236ed
push ebp
push ebp
push esi
push dword [esp + 0x21c]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x10023693
mov eax, esi
mov ecx, dword [esp + 0x208]
pop edi
pop esi
pop ebp
pop ebx
call fcn.100568ae
add esp, 0x1fc
ret
Function at 0x10023960
Capabilities:
Delete registry value
Persist via run registry key
Terminate process
Terminate thread

Disassembly:
mov eax, 0x10068a1b
call fcn.100575f8
sub esp, 0xc
push ebx
push esi
push edi
push 0x10085cb0
call fcn.1002ce8b
mov dword [esp], str.cmds
push 0x1006eccc
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
push dword [0x1008599c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x100859a0]
call esi
push dword [0x100859a4]
call esi
push dword [0x100859a8]
call esi
push dword [0x100859ac]
call esi
push dword [0x100859b0]
call esi
push dword [0x100859b4]
call esi
push dword [0x100859b8]
call esi
push dword [0x100859bc]
call esi
push dword [0x10085c60]
call fcn.10057617
pop ecx
push dword [0x10085980]
call dword [0x10085dc4]
mov eax, dword [0x10085f84]
xor edi, edi
cmp eax, edi
je 0x10023a0b
push eax
call esi
mov dword [0x10085f84], edi
mov eax, dword [0x10085fbc]
cmp eax, edi
je 0x10023a47
push edi
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x10023a3f
push 0x420
push edi
push ebx
call fcn.10056960
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [0x10085fbc]
call esi
lea ecx, [ebp - 0x18]
call fcn.1002a4cf
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.1002b1fe
mov eax, dword [0x10085fb0]
cmp eax, edi
je 0x10023a6b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x10085990]
cmp eax, edi
je 0x10023a77
push eax
call esi
mov eax, dword [0x10085984]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
je 0x10023a8e
push 0x7d0
push eax
call ebx
cmp dword [0x1008598c], edi
je 0x10023ab3
push edi
push edi
push 0x12
push dword [0x1008597c]
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x7d0
push dword [0x1008598c]
call ebx
mov eax, dword [0x10085e70]
cmp eax, edi
je 0x10023ac4
push 0x7d0
push eax
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [0x10085984]
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x10023aea
cmp dword [ebp - 0x10], 0x103
jne 0x10023b01
push edi
push dword [0x10085984]
call ebx
push dword [0x10085984]
call esi
mov dword [0x10085984], edi
lea eax, [ebp - 0x10]
push eax
push dword [0x1008598c]
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10023b21
cmp dword [ebp - 0x10], 0x103
jne 0x10023b38
push edi
push dword [0x1008598c]
call ebx
push dword [0x1008598c]
call esi
mov dword [0x1008598c], edi
lea eax, [ebp - 0x10]
push eax
push dword [0x10085e70]
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10023b58
cmp dword [ebp - 0x10], 0x103
jne 0x10023b6f
push edi
push dword [0x10085e70]
call ebx
push dword [0x10085e70]
call esi
mov dword [0x10085e70], edi
call fcn.1001e3c3
test al, al
push edi
je 0x10023b85
push dword [0x10085db4]
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1002421b
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push esi
lea ecx, [ebp - 4]
call fcn.10004ef0
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi + 0x1c], 0
je 0x1002427f
cmp dword [esi + 0x3c], 0x10
jb 0x10024247
mov eax, dword [esi + 0x28]
jmp 0x1002424a
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1002427f
cmp dword [esi + 0x20], 0x10
jb 0x10024260
mov eax, dword [esi + 0xc]
jmp 0x10024263
lea eax, [esi + 0xc]
cmp dword [esi + 0x3c], 0x10
jb 0x1002426e
mov esi, dword [esi + 0x28]
jmp 0x10024271
add esi, 0x28
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov al, 1
jmp 0x10024281
xor al, al
pop esi
leave
ret

Function at 0x100248cc
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
mov eax, 0x10068a3f
call fcn.100575f8
sub esp, 0x17c
mov eax, dword [0x10084500]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
push 0x104
lea eax, [ebp - 0x130]
push eax
push 0x10085cb0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.1000125d
push str.rundll32.exe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.10003017
push 0x1006cff4
lea ecx, [ebp - 0x2c]
call fcn.10003017
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003017
push 0x1006ef0c
lea ecx, [ebp - 0x2c]
call fcn.10003017
xor eax, eax
cmp dword [ebp - 0x14], 0x10
push 0x10
pop ecx
lea edi, [ebp - 0x184]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x144], ebx
lea edi, [ebp - 0x140]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x188], 0x44
jae 0x1002497b
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x188]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x140]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x144]
call esi
mov dword [ebp - 0x134], ebx
push 0x10086080
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edi, eax
cmp edi, ebx
jne 0x100249f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100249f1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x134]
cmp dword [ebp - 0x134], 0xa
jl 0x100249b3
jmp 0x100249f4
push edi
call esi
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100568ae
leave
ret
Function at 0x10024a16
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x84
mov eax, dword [0x10084500]
push ebx
push ebp
push esi
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xc]
push edi
push eax
call fcn.100233e0
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
pop ecx
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push ebx
mov edi, 0x100000
push edi
call esi
mov ebp, eax
cmp ebp, ebx
jne 0x10024ac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10024ac1
push 0x10086188
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
push 0x7d0
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10086080
push ebx
push edi
call esi
mov esi, eax
cmp esi, ebx
jne 0x10024aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10024aa0
cmp byte [0x10085fc1], bl
jne 0x10024aa0
call fcn.100248cc
call fcn.10023fff
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
push ebp
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
xor eax, eax
jmp 0x10024b02
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push 0x68
push 5
push 3
call fcn.10004566
lea eax, [esp + 0x5c]
push eax
call fcn.10023398
add esp, 0x10
lea eax, [esp + 0x50]
push eax
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call esi
xor eax, eax
inc eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
call fcn.100568ae
add esp, 0x84
ret
Function at 0x1002531b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push esi
lea ecx, [ebp - 4]
call fcn.10004ef0
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
cmp dword [esi + 0x3c], 0x10
jb 0x10025345
mov eax, dword [esi + 0x28]
jmp 0x10025348
lea eax, [esi + 0x28]
push ebx
push 6
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002538d
push edi
mov ecx, esi
call fcn.1000a6e5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x3c], 0x10
jb 0x1002537d
mov esi, dword [esi + 0x28]
jmp 0x10025380
add esi, 0x28
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1002538d
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x10025394
Capabilities:
Check if file exists
Copy file

Disassembly:
push ecx
push esi
mov esi, ecx
push esi
lea ecx, [esp + 8]
call fcn.10004ef0
mov eax, dword [esp + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
lea ecx, [esi + 0x44]
call fcn.1000a395
cmp dword [esi + 0x1c], 0
je 0x10025503
cmp dword [esi + 0x20], 0x10
jb 0x100253cd
mov eax, dword [esi + 0xc]
jmp 0x100253d0
lea eax, [esi + 0xc]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call ebx
test eax, eax
jne 0x100253e5
mov ecx, esi
call fcn.1002421b
cmp dword [esi + 0x20], 0x10
jb 0x100253f0
mov eax, dword [esi + 0xc]
jmp 0x100253f3
lea eax, [esi + 0xc]
push ebp
push edi
mov ebp, 0x1006eb98
push ebp
push eax
call fcn.100594a0
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x10025446
cmp dword [esi + 0x20], 0x10
jb 0x10025414
mov eax, dword [esi + 0xc]
jmp 0x10025417
lea eax, [esi + 0xc]
push eax
call ebx
test eax, eax
jne 0x10025425
mov ecx, esi
call fcn.1002421b
cmp dword [esi + 0x20], 0x10
jb 0x10025430
mov eax, dword [esi + 0xc]
jmp 0x10025433
lea eax, [esi + 0xc]
push ebp
push eax
call fcn.100594a0
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x100254fc
push edi
mov ecx, esi
call fcn.10020908
push edi
mov bl, al
call fcn.10059c0c
test bl, bl
pop ecx
jne 0x100254f4
cmp dword [esi + 0x3c], 0x10
jb 0x1002546a
mov eax, dword [esi + 0x28]
jmp 0x1002546d
lea eax, [esi + 0x28]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call edi
test eax, eax
je 0x100254e1
cmp dword [esi + 0x20], 0x10
jb 0x10025485
mov eax, dword [esi + 0xc]
jmp 0x10025488
lea eax, [esi + 0xc]
push eax
call edi
test eax, eax
jne 0x100254e1
cmp dword [esi + 0x20], 0x10
jb 0x1002549a
mov ecx, dword [esi + 0xc]
jmp 0x1002549d
lea ecx, [esi + 0xc]
cmp dword [esi + 0x3c], 0x10
jb 0x100254a8
mov eax, dword [esi + 0x28]
jmp 0x100254ab
lea eax, [esi + 0x28]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [esi + 0x20], 0x10
jb 0x100254c0
mov eax, dword [esi + 0xc]
jmp 0x100254c3
lea eax, [esi + 0xc]
push ebp
push eax
call fcn.100594a0
pop ecx
pop ecx
mov edi, eax
push edi
mov ecx, esi
call fcn.10020908
push edi
mov bl, al
call fcn.10059c0c
pop ecx
jmp 0x100254f2
cmp dword [esi + 0x20], 0x10
jb 0x100254ec
mov eax, dword [esi + 0xc]
jmp 0x100254ef
lea eax, [esi + 0xc]
push eax
call edi
test bl, bl
sete al
mov byte [esi + 0x40], al
jmp 0x10025500
mov byte [esi + 0x40], 1
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret