joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf470
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e8e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x57dd44
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4bf4cf
xor edi, edi
or esi, eax
jmp 0x4bf4da
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x57dd44
test esi, esi
je 0x4bf4fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4bf510
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e918
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x44
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0
cmp byte [ebp + 0x10], 0
je 0x4bf5a1
call fcn.004cc300
mov eax, dword [0x5d63e4]
test eax, eax
je 0x4bf5a1
lea ecx, [ebp - 0x14]
push ecx
call eax
mov byte [ebp - 0x10], 1
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
mov edx, dword [edi]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ecx - 0xc], eax
push 0
push 0
cmovne eax, ecx
push 0
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4bf5e9
test esi, esi
je 0x4bf5e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4bf60d
test esi, esi
je 0x4bf602
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp + 0x13], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], 0
je 0x4bf638
call fcn.004cc300
mov eax, dword [0x5d63e8]
test eax, eax
je 0x4bf635
lea ecx, [ebp - 0x14]
push ecx
call eax
mov byte [ebp - 0x10], 0
mov al, byte [ebp + 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bfd30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eae0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x57dd44
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4bfd9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x4bfe5a
xor esi, esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push esi
push esi
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x4bfdeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4bfe3e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004b2f10
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x4bfe3e
cmp dword [ebp - 0x1c], 0
je 0x4bfe3e
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4bfe44
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
cmp eax, 1
sete bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x4bfe46
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.00521576
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x57dd44
test eax, eax
je 0x4bfe7d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret
Function at 0x4c03b0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x55ebc8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x57dd44
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x3ff
lea eax, [ebp]
push eax
push edi
call ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c045b
cmp eax, 0x400
jae 0x4c052c
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.00495480
jmp 0x4c0425
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4c04e9
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ba30
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4c04ca
cmp dword [ebx + 0xc], 0
jl 0x4c04bf
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4c04bf
call fcn.0040be70
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c04b8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi], eax
jmp 0x4c04ca
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004143c0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c04e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x57dd44
test edi, edi
je 0x4c0509
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00520c02
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.005212a0
int3
Function at 0x4c0f90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55edea
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5d0074]
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 esi, edx
mov edi, ecx
push str.TEST
push 0
mov edx, str.tin9999.tmp
mov dword [ebp - 0x1c], str.http:__www.google.com
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], str.http:__www.yahoo.com
mov dword [ebp - 0x14], str.http:__www.example.com
call fcn.00408440
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
push esi
push edi
call fcn.004c12d0
mov byte [ebp - 4], 1
xor bl, bl
mov dword [ebp - 0x58], 0
lea esi, [ebp - 0x1c]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0xd8]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.004144e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
push dword [esi]
call fcn.004144e0
mov byte [ebp - 4], 3
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0048e320
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0xd0]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
call fcn.0047e6b0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0xd4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c10c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4c10e4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x4c10f8
add esi, 4
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x4c1012
jmp 0x4c10fa
mov bl, 1
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.004a4bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00407c80
mov al, bl
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.00520c02
mov esp, ebp
pop ebp
ret
Function at 0x4c31f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f288
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
cmp byte [ecx + 0x40], 0
cmovne edi, eax
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov byte [edi + 0x10], 1
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c3301
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.004c3130
mov esi, eax
mov byte [edi + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c32a4
cmp dword [ebp + 0x10], eax
je 0x4c32a4
mov esi, 0x2ee2
jmp 0x4c32bc
test esi, esi
jne 0x4c32bc
mov esi, dword [edi + 4]
cmp esi, dword [ebx + 4]
je 0x4c32ba
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov dword [ebx + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4c32eb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004143a0
int3
Function at 0x4c5780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c5991
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c599b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, 0x58f660
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x4c5803
movzx eax, ax
push eax
call fcn.00414050
jmp 0x4c580f
push 3
push 0x58f660
call fcn.004143c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push 0x58f660
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c5dd0
test al, al
sete byte [ebp - 0xd]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c584a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4c5875
push 0x18
push 0x58f62c
lea ecx, [ebx + 4]
call fcn.004143c0
mov esi, dword [ebp - 0x18]
lea ecx, [ebx + 4]
push dword [esi - 0xc]
push esi
call fcn.00418250
xor bl, bl
jmp 0x4c595c
mov esi, dword [ebp - 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x57dd44
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 6
cmp edi, 0xffffffff
jne 0x4c58b4
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57dd44
push eax
jmp 0x4c5906
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c58f6
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c5932
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57dd44
test edi, edi
je 0x4c5913
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
push 0x1b
push str.Unable_to_save_script_file
lea ecx, [ebx + 4]
call fcn.004143c0
push dword [esi - 0xc]
lea ecx, [ebx + 4]
push esi
call fcn.00418250
xor bl, bl
jmp 0x4c595c
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57dd44
test edi, edi
je 0x4c594f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004c59b0
mov bl, al
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c597b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004143a0
push 0x80004005
call fcn.004143a0
int3
Function at 0x4c5dd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f900
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
mov edx, dword [eax]
call fcn.00408440
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00485a90
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x4c5e33
mov edx, dword [edx]
test edx, edx
jne 0x4c5e3b
xor eax, eax
jmp 0x4c5e4f
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c5e40
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.004143c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407c80
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407c80
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00520c02
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c60c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f930
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x200
mov esi, 0x100
call fcn.0052157b
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push dword [ebx + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
cmp ebx, 0xfe
jne 0x4c6174
add esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521576
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052157b
mov edi, eax
add esp, 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea eax, [esi - 2]
cmp ebx, eax
je 0x4c6120
mov ecx, dword [ebp + 8]
call fcn.0047e6b0
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c6222
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor esi, esi
nop dword [eax]
movzx ecx, word [edi + esi*2]
test cx, cx
je 0x4c61b4
push ecx
lea ecx, [ebp - 0x10]
call fcn.00492e20
jmp 0x4c61ce
cmp dword [eax - 0xc], 0
je 0x4c61c6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0048e320
lea ecx, [ebp - 0x10]
call fcn.00414110
inc esi
cmp esi, ebx
ja 0x4c61d8
mov eax, dword [ebp - 0x10]
jmp 0x4c61a0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c61f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00521576
add esp, 4
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004143a0
int3
Function at 0x4c6470
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fa82
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x58fd38
mov dword [ebp - 4], 5
lea ebx, [esi + 0x20]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c64bc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 4
lea eax, [esi + 0x34]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c64e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [esi + 0x30]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c650d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
lea eax, [esi + 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c6534
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [esi + 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c655b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c657f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [eax]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4c65aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c6710
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fb7e
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x5d0074]
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 esi, ecx
push 0
push 0
mov edx, 0x58fa2c
lea ecx, [ebp - 0x28]
call fcn.00408440
add esp, 8
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x4c6765
mov edx, dword [edx]
lea ebx, [esi + 0x20]
test edx, edx
jne 0x4c6770
xor ecx, ecx
jmp 0x4c6784
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c6775
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.004143c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407c80
lea edx, [esi + 8]
lea ecx, [ebp - 0xcc]
call fcn.004b9d40
mov dword [ebp - 4], 3
or edi, 0xffffffff
mov eax, dword [ebp - 0xcc]
cmp dword [eax - 0xc], 0
je 0x4c67d6
push 0
push dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete bl
jmp 0x4c690a
push 0x5d0ec0
push esi
lea ecx, [ebp - 0xc4]
call fcn.004c12d0
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 6
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0048e320
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x1c]
push ebx
push ecx
lea ecx, [ebp - 0xc4]
call dword [eax + 0x4c]
mov ebx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.0047e6b0
mov ecx, dword [esi + 4]
mov cl, byte [ecx + 0x39]
test cl, cl
je 0x4c6843
xor bl, bl
jmp 0x4c68fb
test ebx, ebx
je 0x4c68f8
cmp byte [0x5d65b0], 0
je 0x4c68f6
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4c694a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc8]
push str.Downloading_of_updates_failed._Error:
call fcn.004b4d50
push ecx
mov edx, ebx
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.00492aa0
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, esi
push dword [eax]
call fcn.004b4d50
push eax
mov ecx, 0x5d657c
call fcn.004c8170
mov byte [ebp - 4], 0xa
mov eax, edi
mov edx, dword [ebp - 0xd0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c68d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0xc8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c68f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
sete bl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.004a4bb0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xcc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4c692c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.00520c02
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004143a0
int3