joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c1a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1004c218
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret

Function at 0x1004c6f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10179f70
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x1004c7e7
test edi, edi
je 0x1004c7e7
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1004c7e7
cmp eax, 0x3fff
ja 0x1004c7e7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1004c7e7
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x101d3558
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1004c7e7
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.1018d4b0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
lea eax, [esi - 1]
push eax
push edi
call fcn.10051cb0
add esp, 0x2c
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.101799ce
mov esp, ebp
pop ebp
ret
Function at 0x1004c910
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10179f70
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1008], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x1004ca7f
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x1004ca7f
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1004c975
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1004ca7f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x804]
xor ebx, ebx
push 0x400
push eax
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1004ca37
push 0x800
lea eax, [ebp - 0x1004]
mov ebx, 1
push 0
push eax
call fcn.1018d4b0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.1018d6ac
add esp, 0x14
test eax, eax
je 0x1004c9fa
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x1004c9fa
mov ecx, ebx
jmp 0x1004c9fc
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
push edi
cmovne eax, edx
push eax
push dword [ebp - 0x1008]
call fcn.101971ec
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1004ca65
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.1004b8a0
mov ebx, eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101799ce
mov esp, ebp
pop ebp
ret
Function at 0x1004cef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c75f6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, 0x101d7910
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
nop
push ebx
push dword [esi + 4]
call fcn.1019694f
add esp, 8
test eax, eax
je 0x1004cf8b
add esi, 8
cmp esi, str.CSIDL_DESKTOP
jl 0x1004cf30
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1004d04c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x101d1840
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.1003e240
test al, al
jne 0x1004d02e
push 0
push 0x101d1840
jmp 0x1004d027
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1004cfd5
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1004d056
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.1003e240
test al, al
jne 0x1004d02e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d010
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.1000f6e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009b10
push 0x80004005
call fcn.10009b10
int3

Function at 0x1004d070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c4b0b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], esi
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1004d13e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.1003e240
test al, al
jne 0x1004d122
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d104
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.1000f6e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009b10
int3
Function at 0x1004d180
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10210090
push 0x1018d7c0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10179f70
mov eax, dword [0x1022b584]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x1004d32e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004d32e
mov eax, 1
cmp dword [ebp + 0xc], 0
je 0x1004d219
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d1f3
sub ecx, edx
sar ecx, 1
je 0x1004d210
push edi
push esi
call fcn.1015b0e0
add esp, 8
jmp 0x1004d219
push esi
call fcn.1015b3b0
add esp, 4
test eax, eax
je 0x1004d32e
mov dword [ebp - 4], 0
call fcn.1004c1a0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004d24c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.1018d4b0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.1018d4b0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1004d32e
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.1018d4b0
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.101971ec
lea eax, [ebp - 0x224]
push eax
call fcn.10197c3e
add esp, 0x1c
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x1004d32e
nop dword [eax]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.1004c910
add esp, 0xc
test eax, eax
je 0x1004d325
lea eax, [ebp - 0xa24]
push eax
call fcn.10197c3e
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.1019694f
add esp, 0xc
test eax, eax
je 0x1004d34c
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x1004d2e0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x1004d330
Function at 0x1004d360
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102100b0
push 0x1018d7c0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10179f70
mov eax, dword [0x1022b584]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a30], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2a2c], edi
test esi, esi
je 0x1004d50a
mov dword [ebp - 4], 0
call fcn.1004c1a0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004d3eb
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.1018d4b0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.1018d4b0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1004d50a
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.101971ec
lea eax, [ebp - 0x224]
push eax
call fcn.10197c3e
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x1004d50a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.1004c910
add esp, 0xc
test eax, eax
je 0x1004d4fd
lea eax, [ebp - 0xa24]
push eax
call fcn.10197c3e
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.1019694f
add esp, 8
test eax, eax
jne 0x1004d4fd
test edi, edi
je 0x1004d4ea
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004d4c7
sub eax, edx
sar eax, 1
je 0x1004d4ea
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1015b0e0
add esp, 8
jmp 0x1004d4f9
lea eax, [ebp - 0xa24]
push eax
call fcn.1015b3b0
add esp, 4
test eax, eax
jne 0x1004d528
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x1004d473
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x1004d50c
Function at 0x1004d530
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102100d0
push 0x1018d7c0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10179f70
mov eax, dword [0x1022b584]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a30], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2a2c], edi
test esi, esi
je 0x1004d6c9
mov dword [ebp - 4], 0
call fcn.1004c1a0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1004d5bb
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.1018d4b0
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.1018d4b0
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1004d6c9
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.101971ec
lea eax, [ebp - 0x224]
push eax
call fcn.10197c3e
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x1004d6c9
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.1004c910
add esp, 0xc
test eax, eax
je 0x1004d6bc
lea eax, [ebp - 0xa24]
push eax
call fcn.10197c3e
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.1019694f
add esp, 8
test eax, eax
jne 0x1004d6bc
test edi, edi
je 0x1004d6e7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1004d697
sub eax, edx
sar eax, 1
je 0x1004d6e7
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1015b0e0
add esp, 8
test eax, eax
jne 0x1004d6e7
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x1004d643
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x1004d6cb
Function at 0x1004d6f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
xor esi, esi
push edi
cmp dword [0x1022524c], esi
je 0x1004d7bc
push str.ntdll.dll
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], esi
call ecx
mov edi, eax
test edi, edi
je 0x1004d7b0
push str.RtlGetNtVersionNumbers
push edi
call ebx
test eax, eax
je 0x1004d77f
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x130]
push ecx
call eax
movzx eax, word [ebp - 0x128]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x12c], esi
je 0x1004d7b0
cmp dword [ebp - 0x130], 6
jne 0x1004d7b0
mov eax, dword [0x1022ea44]
mov ecx, 1
cmp dword [ebp - 0x124], 1
cmove eax, ecx
mov dword [0x1022ea44], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1022524c], esi
cmp dword [0x1022ea44], esi
je 0x1004d84e
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.GetProductInfo
push str.kernel32.dll
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call ebx
test eax, eax
je 0x1004d82b
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call eax
cmp dword [ebp - 0x124], 2
je 0x1004d8fc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
cmp dword [0x10225250], esi
je 0x1004d8ee
push str.ntdll.dll
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
call ecx
mov edi, eax
test edi, edi
je 0x1004d8e8
push str.RtlGetNtVersionNumbers
push edi
call ebx
test eax, eax
je 0x1004d8b9
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x130]
push ecx
call eax
movzx eax, word [ebp - 0x128]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x124], esi
je 0x1004d8e8
cmp dword [ebp - 0x130], 6
jne 0x1004d8dc
cmp dword [ebp - 0x12c], 2
jae 0x1004d8de
jmp 0x1004d8e8
jbe 0x1004d8e8
mov dword [0x1022ea48], 1
mov dword [0x10225250], esi
cmp dword [0x1022ea48], esi
mov eax, 1
cmovne esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101799ce
mov esp, ebp
pop ebp
ret
Function at 0x1004dbc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10210410
push 0x1018d7c0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x1022b584]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.1018d4b0
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004dcd9
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.1018d4b0
add esp, 0xc
mov dword [ebp - 0x434], 0x210
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004dcd9
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x1004dcd9
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.1004dd0b
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004de30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c7698
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1022b584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004de7b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x1004de99
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x10]
call fcn.10010980
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1002c330
mov eax, 0x614
mov dword [ebp - 0x30], 0
mov word [ebp - 0x20], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x24], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, dword [ebp - 0x10]
neg eax
mov dword [ebp - 4], 0xffffffff
sbb esi, esi
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1004df16
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004f440
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x1004f531
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004f531
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1004f493
push esi
call edi
test eax, eax
jne 0x1004f531
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1018d4b0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1018d4b0
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10190daa
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
push 0
push str.links
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1004f51f
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
jne 0x1004f531
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.101799ce
mov esp, ebp
pop ebp
ret
Function at 0x100501a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [ebp + 0x10]
mov ebx, eax
test esi, esi
je 0x100501bc
cmp dword [esi], 0
jne 0x100501d9
call edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x100501d9
push 0xa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100501e0
cmp eax, 0xffffffff
jne 0x100501b3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x1005aea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5008
call fcn.10179f70
mov eax, dword [0x1022b584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.10012290
push 0x5002
lea eax, [ebp - 0x5008]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x5008]
push esi
push 0x5001
push eax
push 0x101d1840
push 0x101d9028
push 0x101d9030
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x5008]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005af07
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
lea eax, [ebp - 0x5008]
push eax
call fcn.1000f6e0
mov ecx, dword [edi]
xor eax, eax
pop edi
pop esi
cmp dword [ecx - 0xc], eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret

Function at 0x1005b870
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x1005b8d9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1005b8f5
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x1005b8d9
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x1005b8f5
cmp dword [edi + 4], 0
je 0x1005b8f5
cmp dword [edi + 0xc], 0
je 0x1005b8f5
mov eax, 1
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4