joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4befc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ead8
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 edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0xc8
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004a2900
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x4bf07d
nop dword [eax + eax]
add dword [ebp - 0x10], 2
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.004a2900
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4bf040
test eax, eax
jne 0x4bf0af
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x4bf0b6
cmp eax, 2
je 0x4bf0b6
cmp eax, 7
je 0x4bf0b6
cmp eax, 4
jne 0x4bf0af
push dword [esi]
push 0x58d758
push dword [ebp + 8]
call fcn.00417cc0
add esp, 0xc
jmp 0x4bf163
xor bl, bl
jmp 0x4bf165
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp word [esi + eax*2], cx
jne 0x4bf0da
nop dword [eax]
dec eax
mov dword [ebp - 0x10], eax
cmp word [esi + eax*2], cx
je 0x4bf0d0
inc eax
lea ecx, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x10], eax
call fcn.004a28a0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x4bf147
cmp dword [edi + 0xc], 0
jl 0x4bf13e
mov eax, dword [edx - 0x10]
cmp eax, dword [edi]
jne 0x4bf13e
mov ecx, dword [ebp - 0x1c]
call fcn.0040a1d0
mov dword [ebp - 0x1c], eax
lea edx, [edi + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bf134
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
jmp 0x4bf147
push dword [edx - 0xc]
push edx
call fcn.004126c0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4bf163
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x14], 0
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
Function at 0x4bf370
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eb80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 ecx, dword [edx]
sub ecx, 0x10
call fcn.0040a1d0
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
xor ebx, ebx
push 0x5c
push esi
call fcn.00522f4c
mov edi, eax
add esp, 8
test edi, edi
je 0x4bf4e0
sub edi, esi
sar edi, 1
js 0x4bf4e0
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409f20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
mov eax, dword [esi - 0xc]
sub eax, edi
push eax
push edi
call fcn.00490d20
mov dword [ebp - 0x20], 0x58b4bc
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x20]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bf4a1
push dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4bf47f
inc ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x58b4bc
test eax, eax
je 0x4bf457
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bf3b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4bf3b1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x58b4bc
test eax, eax
je 0x4bf49f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
jmp 0x4bf4c1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x58b4bc
test eax, eax
je 0x4bf4c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bf4e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bf4ff
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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 0x4bf6a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ebf8
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], 0x57dd34
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x4bf6ff
xor edi, edi
or esi, eax
jmp 0x4bf70a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x57dd34
test esi, esi
je 0x4bf72a
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 0x4bf740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ec28
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 0x4bf7d1
call fcn.004cc820
mov eax, dword [0x5d638c]
test eax, eax
je 0x4bf7d1
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 0x4bf819
test esi, esi
je 0x4bf815
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x4bf83d
test esi, esi
je 0x4bf832
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 0x4bf868
call fcn.004cc820
mov eax, dword [0x5d6390]
test eax, eax
je 0x4bf865
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 0x4bff60
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55edf0
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], 0x57dd34
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4bffcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x4c008a
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 0x4c001b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c006e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.004b32b0
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 0x4c006e
cmp dword [ebp - 0x1c], 0
je 0x4c006e
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 0x4c0074
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 0x4c0076
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.00521c5a
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x57dd34
test eax, eax
je 0x4c00ad
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.005214e1
mov esp, ebp
pop ebp
ret
Function at 0x4c05e0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x55eed8
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], 0x57dd34
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 0x4c068b
cmp eax, 0x400
jae 0x4c075c
mov byte [ebp + eax], 0
mov ecx, esi
lea eax, [ebp]
push eax
call fcn.004954a0
jmp 0x4c0655
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4c0719
add eax, 0xfffffffe
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409d90
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ebx, dword [esi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4c06fa
cmp dword [ebx + 0xc], 0
jl 0x4c06ef
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4c06ef
call fcn.0040a1d0
mov dword [ebp - 0x14], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c06e8
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 0x4c06fa
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004126c0
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 0x4c0719
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x57dd34
test edi, edi
je 0x4c0739
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.005214e1
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.00521d89
int3
Function at 0x4c11c0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x55f0f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp + 0x9c], str.http:__www.google.com
mov dword [ebp + 0xa0], str.http:__www.yahoo.com
mov dword [ebp + 0xa4], str.http:__www.example.com
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c13b5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c13bf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, str.tin9999.tmp
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x4c1274
movzx eax, ax
push eax
call fcn.00412350
jmp 0x4c1280
push 0xb
push str.tin9999.tmp
call fcn.004126c0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.004942d0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c12b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
push edi
lea ecx, [ebp]
call fcn.004c1550
mov byte [ebp - 4], 5
lea esi, [ebp + 0x9c]
mov dword [ebp + 0x78], 0
mov byte [ebp - 0xd], 0
nop
push dword [esi]
lea ecx, [ebp - 0x14]
call fcn.004127e0
mov byte [ebp - 4], 6
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.0048f3e0
mov eax, dword [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp]
call dword [eax + 0x4c]
mov edi, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call fcn.0047dd80
mov byte [ebp - 4], 5
mov ecx, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4c1340
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x4c1357
add esi, 4
lea eax, [ebp + 0xa8]
cmp esi, eax
jne 0x4c12d0
jmp 0x4c135b
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp]
call fcn.004a4fe0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4c138f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0xac]
pop ebp
ret
push 0x80004005
call fcn.004126a0
push 0x80004005
call fcn.004126a0
int3
Function at 0x4c3430
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f568
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.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c3541
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.004c3370
mov esi, eax
mov byte [edi + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c34e4
cmp dword [ebp + 0x10], eax
je 0x4c34e4
mov esi, 0x2ee2
jmp 0x4c34fc
test esi, esi
jne 0x4c34fc
mov esi, dword [edi + 4]
cmp esi, dword [ebx + 4]
je 0x4c34fa
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 0x4c352b
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.004126a0
int3
Function at 0x4c59f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fad8
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.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c5c01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4c5c0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, 0x58f344
lea ecx, [ebp - 0x14]
test eax, 0xffff0000
jne 0x4c5a73
movzx eax, ax
push eax
call fcn.00412350
jmp 0x4c5a7f
push 3
push 0x58f344
call fcn.004126c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push 0x58f344
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004c6040
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 0x4c5aba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4c5ae5
push 0x18
push str.Unable_to_get_temp_file
lea ecx, [ebx + 4]
call fcn.004126c0
mov esi, dword [ebp - 0x18]
lea ecx, [ebx + 4]
push dword [esi - 0xc]
push esi
call fcn.00416df0
xor bl, bl
jmp 0x4c5bcc
mov esi, dword [ebp - 0x18]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x57dd34
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 6
cmp edi, 0xffffffff
jne 0x4c5b24
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57dd34
push eax
jmp 0x4c5b76
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 0x4c5b66
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 0x4c5ba2
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57dd34
test edi, edi
je 0x4c5b83
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.004126c0
push dword [esi - 0xc]
lea ecx, [ebx + 4]
push esi
call fcn.00416df0
xor bl, bl
jmp 0x4c5bcc
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0x57dd34
test edi, edi
je 0x4c5bbf
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.004c5c20
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 0x4c5beb
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.004126a0
push 0x80004005
call fcn.004126a0
int3
Function at 0x4c6040
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x55fb90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x21c]
mov esi, dword [ebp + 0x214]
mov edi, dword [ebp + 0x218]
mov dword [ebp - 0x18], eax
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4c60c8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x20c]
pop ebp
ret 0xc
mov edx, dword [edi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4c60ec
push 0x104
mov ecx, edi
call fcn.00412580
mov edx, dword [edi]
push edx
push 0
push dword [esi]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4c60a1
mov eax, dword [edi]
test eax, eax
jne 0x4c6109
xor ecx, ecx
jmp 0x4c611f
push dword [eax - 8]
push eax
call fcn.005295a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4c6224
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4c6224
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2e
push dword [edi]
call fcn.00522f4c
add esp, 8
test eax, eax
je 0x4c61e7
sub eax, dword [edi]
sar eax, 1
js 0x4c61e7
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00409d90
mov dword [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4c61c8
cmp dword [ebx + 0xc], 0
jl 0x4c61bd
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4c61bd
mov ecx, edx
call fcn.0040a1d0
mov dword [ebp - 0x10], eax
lea edx, [ebx + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c61b6
mov esi, dword [ebx]
push ebx
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
add eax, 0x10
mov dword [edi], eax
jmp 0x4c61c8
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.004126c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4c61e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x4c6200
xor ecx, ecx
push ecx
push edx
mov ecx, edi
call fcn.00416df0
mov al, 1
jmp 0x4c60a3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c6205
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00416df0
mov al, 1
jmp 0x4c60a3
push 0x80070057
call fcn.004126a0
int3