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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x3c], ecx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4bf1ef
call fcn.004b34f0
test eax, eax
jns 0x4bf1f1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x2c]
push 0
push eax
push 0
xorps xmm0, xmm0
push ebx
movlpd qword [ebp - 0x30], xmm0
call edi
cmp eax, 0xffffffff
jne 0x4bf215
call fcn.004b34f0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push esi
lea eax, [ebp - 0x38]
movlpd qword [ebp - 0x20], xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x28], 0x51515346
mov dword [ebp - 0x24], 0xb069260e
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], 0x30
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bf27e
call fcn.004b34f0
mov esi, eax
test esi, esi
js 0x4bf2a5
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x2c]
push 0
push ecx
push eax
push ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
call edi
cmp eax, 0xffffffff
jne 0x4bf2c5
call fcn.004b34f0
mov esi, eax
test esi, esi
jns 0x4bf2c5
test ebx, ebx
je 0x4bf2b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x3c]
xor eax, eax
add edi, 0x458
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x457
test byte [esi + 0x600854], 2
jne 0x4bf318
mov ecx, dword [esi + 0x600850]
cmp ecx, 0xa
ja case.default.0x4bf2f9
jmp dword [ecx*4 + 0x4bf378]
movzx eax, word [esi + 0x600856]
lea ecx, [ebp - 0x1c]
push 0
push eax
push dword [edi]
call fcn.004bfa60
test eax, eax
js 0x4bf326
add esi, 0x18
add edi, 4
cmp esi, 0x1188
jb 0x4bf2e5
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push 0
push eax
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bf347
call fcn.004b34f0
mov edi, eax
jmp 0x4bf349
xor edi, edi
test esi, esi
je 0x4bf356
push esi
call fcn.005ad75d
add esp, 4
test ebx, ebx
je 0x4bf361
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 4
Function at 0x4c6b10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb608
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4c6cba
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004bc730
mov ecx, str.10000000_0000_0000_0000_000000000001
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c6b96
test dx, dx
je 0x4c6b92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c6b96
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c6b70
xor ebx, ebx
jmp 0x4c6b9b
sbb ebx, ebx
or ebx, 1
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c6bb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x4c6bcf
push ebx
push 0x62a144
lea ecx, [ebp - 0x10]
call fcn.004c0470
jmp 0x4c6c74
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.004c7da0
test eax, eax
je 0x4c6c86
mov ecx, dword [eax + 8]
cmp dword [ecx - 0xc], 0
je 0x4c6c86
lea ebx, [eax + 0xc]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4c6c86
lea eax, [ecx - 0x10]
push eax
call fcn.004bfdc0
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
call fcn.004ce260
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004bc8d0
add esp, 0x14
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004bfcd0
mov edx, dword [ebp - 0x18]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c6c56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c6c74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4c6c86
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
jmp 0x4c6c88
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4c6ca4
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 4
push 0x80004005
call fcn.004b3510
int3
Function at 0x4c70b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x5ff750
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
pop ebp
ret
Function at 0x4c8240
Capabilities:
Find taskbar

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movaps xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [ebp - 0x28]
xorps xmm0, xmm0
sub esi, dword [ebp - 0x30]
push 0
push str.Shell_TrayWnd
movaps xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4c82a4
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
cmp eax, esi
jge 0x4c82c9
xor eax, eax
test ecx, ecx
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], eax
pop esi
setne al
xor ecx, ebp
add eax, 2
call fcn.0050ed5c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4ddf90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4ddfed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ddfed
cmp dword [ebp + 8], 0
jne 0x4ddfd0
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push dword [esi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x20], 0
pop esi
pop ebp
ret 4
cmp dword [esi + 0x20], 0
jne 0x4ddfed
push 0
push dword [esi + 0xc]
push 2
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x20], 1
pop esi
pop ebp
ret 4

Function at 0x4df1a0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ecde8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x35], 0
je 0x4df2c7
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0
push 0
push 0x80
push 2
push 7
push 0xc0000000
push dword [edi]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.004b3660
mov ebx, dword [ebp - 0x24]
test eax, eax
js 0x4df2b5
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x4df236
call fcn.004b34f0
test eax, eax
js 0x4df23b
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x14]
jne 0x4df25e
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0xfeff
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4df25e
call fcn.004b34f0
push 2
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push ebx
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4df27f
call fcn.004b34f0
mov esi, dword [edi + 4]
test esi, esi
je 0x4df2b1
mov edx, dword [esi + 8]
mov eax, edx
mov esi, dword [esi]
lea ecx, [eax + 2]
mov dword [ebp - 0x10], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4df293
sub eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push edx
call fcn.004e50e0
test esi, esi
jne 0x4df286
mov byte [edi + 0x35], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4df2c7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x1c]
call fcn.004e37d0
lea ecx, [edi + 4]
call fcn.004e38d0
push 0
push 0x62a144
mov ecx, edi
call fcn.004c0470
mov word [edi + 0x34], 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
Function at 0x4e05f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ecx]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x402
or ecx, eax
jge 0x4e061e
push 0x402
mov ecx, esi
call fcn.004b4690
mov edx, dword [esi]
push edi
push 0x400
push edx
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp dword [eax - 8], 0x400
jl 0x4e0681
mov dword [eax - 0xc], 0x400
xor ecx, ecx
mov eax, dword [esi]
mov word [eax + 0x800], cx
mov eax, dword [esi]
test eax, eax
je 0x4e0667
push dword [eax - 8]
push eax
call fcn.005a976e
add esp, 8
test eax, eax
js 0x4e0681
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4e0681
mov dword [ecx - 0xc], eax
xor edx, edx
mov ecx, dword [esi]
pop edi
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
pop ebp
ret 0x10
push 0x80070057
call fcn.004b3510
int3

Function at 0x4e0a30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ecx]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
push 0xf
push ecx
push 0
push eax
push edx
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4e0a89
push 0xa
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005af8b0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e3070
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x4e30b3
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jle 0x4e3136
push 0
push 0
push 0x80
push 4
push 7
push SysReAllocString
push eax
lea ecx, [esi + 4]
call fcn.004b3660
mov eax, dword [esi + 4]
test eax, eax
je 0x4e3136
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x4e30d2
call fcn.004b34f0
test eax, eax
js 0x4e30d7
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 8]
jne 0x4e3136
push 0
push 0
push 0x80
push 4
push 7
push 0x40000000
push dword [esi]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004b3660
mov esi, dword [ebp - 0xc]
test eax, eax
js 0x4e312b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0xfeff
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e312b
call fcn.004b34f0
test esi, esi
je 0x4e3136
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e4150
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0
push eax
push 0
push 0
push 4
push ebx
push edi
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x12c], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov esi, eax
test esi, esi
jne 0x4e420f
push 3
push 2
push dword [ebp + 0x10]
xorps xmm0, xmm0
lea eax, [ebp - 0x14c]
push str.Everyone
push eax
movups xmmword [ebp - 0x14c], xmm0
movups xmmword [ebp - 0x13c], xmm0
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x128]
lea eax, [ebp - 0x14c]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, eax
test esi, esi
jne 0x4e420f
push eax
push dword [ebp - 0x124]
push eax
push eax
push 4
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
mov ecx, dword [ebp - 0x12c]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x4e4226
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x124]
test ecx, ecx
je 0x4e4233
push ecx
call eax
test esi, esi
jne 0x4e4241
push ebx
push edi
call fcn.004e40c0
add esp, 8
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0058c8f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4e4291
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4e437e
cmp dword [ebp - 0x11c], 6
jne 0x4e437e
cmp dword [ebp - 0x118], 2
jb 0x4e437e
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0
push eax
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x124], 0
push eax
push 0
push 0
push 4
push ebx
push edi
mov dword [ebp - 0x128], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
mov esi, eax
test esi, esi
jne 0x4e434e
push 3
push 2
push dword [ebp + 0x10]
xorps xmm0, xmm0
lea eax, [ebp - 0x14c]
push str.ALL_APPLICATION_PACKAGES
push eax
movups xmmword [ebp - 0x14c], xmm0
movups xmmword [ebp - 0x13c], xmm0
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x12c]
lea eax, [ebp - 0x14c]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, eax
test esi, esi
jne 0x4e434e
push eax
push dword [ebp - 0x124]
push eax
push eax
push 4
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x4e435f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4e4370
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x4e437e
push ebx
push edi
call fcn.004e40c0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret
Function at 0x4e50e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed2c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 8], 0
jne 0x4e5201
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push dword [ebp + 8]
call fcn.004de330
mov eax, dword [ebp + 0xc]
mov ecx, 0x5ffad8
sub ecx, eax
mov dword [ebp - 4], 0
push 2
push 0x5ffad8
mov ebx, dword [eax - 0xc]
mov dword [ebp + 8], ecx
call fcn.005a9647
mov ecx, SysReAllocString
mov dword [ebp - 0x10], eax
sub ecx, eax
add esp, 8
cmp ecx, ebx
jl 0x4e5264
lea esi, [ebx + eax]
test esi, esi
js 0x4e526e
mov eax, dword [ebp + 0xc]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4e5183
push esi
lea ecx, [ebp + 0xc]
call fcn.004cc200
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax]
cmp ecx, ebx
jbe 0x4e5192
mov edx, 0x5ffad8
mov ecx, dword [ebp - 0x10]
add eax, ebx
push ecx
push edx
push ecx
push eax
call fcn.004e64f0
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x4e5264
mov dword [eax - 0xc], esi
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
push ecx
mov byte [esi + eax], 0
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e51db
call fcn.004b34f0
mov esi, eax
jmp 0x4e51dd
xor esi, esi
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e5249
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4e5249
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x10]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp + 8]
push dword [edi]
call ebx
test eax, eax
jne 0x4e5229
call fcn.004b34f0
mov esi, eax
test esi, esi
js 0x4e5249
push 0
lea eax, [ebp + 8]
push eax
push 4
push 0x5ffadc
push dword [edi]
call ebx
test eax, eax
jne 0x4e5247
call fcn.004b34f0
mov esi, eax
jmp 0x4e5249
xor esi, esi
not esi
shr esi, 0x1f
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 8
push 0x80070057
call fcn.004b3510
push 0x80070057
call fcn.004b3510
int3
Function at 0x4e5340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed330
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4e5485
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.004df590
cmp dword [ebx + 8], 1
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
jne 0x4e5408
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.004de420
push 0x5ffadc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004defa0
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 8]
push 0
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e53e5
call fcn.004b34f0
mov edi, eax
jmp 0x4e53e7
xor edi, edi
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e544b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4e544b
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e5427
call fcn.004b34f0
mov edi, eax
test edi, edi
js 0x4e544b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
push 0x5ffad8
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e5449
call fcn.004b34f0
mov edi, eax
jmp 0x4e544b
xor edi, edi
not edi
mov dword [ebp - 4], 0xffffffff
shr edi, 0x1f
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4e546f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004b3510
int3
Function at 0x4e7aa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4e7ae7
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e7ae7
push dword [esi + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4e7ae7
push dword [esi + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call fcn.0051f770
add esp, 8
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e7af0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed568
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6670f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
add eax, 0xfffffff0
push ecx
mov esi, esp
mov dword [ebp - 4], 0
push eax
mov dword [edi + 4], ebx
mov dword [ebp + 0xc], esi
call fcn.004bfdc0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.004e67c0
mov edi, dword [edi + 8]
add esp, 4
mov esi, eax
mov dword [ebp + 0xc], esi
test edi, edi
jne 0x4e7beb
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x30
push eax
mov dword [ebp - 0x3c], 0x10000
mov dword [ebp - 0x38], 0x4e7ed0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 8
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x606024
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
je 0x4e7be5
push edi
push ebx
push edi
push dword [ebp + 0x10]
push 1
push 1
push edi
push edi
push 0x8c000000
push edi
push 0x606024
push 0x80088
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4e7be5
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 4
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push edi
call esi
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edi
test esi, esi
je 0x4e7bfa
test edi, edi
je 0x4e7bfa
mov esi, 1
jmp 0x4e7bfc
xor esi, esi
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4e7c1e
mov ecx, dword [eax]
push eax
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 0xc
Function at 0x4e7dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
push esi
push edi
lea edi, [ebx + 0xc]
test ecx, ecx
je 0x4e7de1
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], 0
push 1
push edi
mov ecx, ebx
call fcn.004e75b0
test eax, eax
je 0x4e7ebc
cmp dword [edi], 0
je 0x4e7ebc
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
test eax, eax
je 0x4e7ebc
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e7ebc
push dword [edi]
movups xmm0, xmmword [ebp + 0x18]
sub esp, 0x10
mov ecx, ebx
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp + 8]
movups xmmword [eax], xmm0
lea eax, [ebp - 8]
push eax
call fcn.004e7c60
test eax, eax
je 0x4e7ebc
push 0x213
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 8]
call fcn.0051fff0
add esp, 0x1c
push 4
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi]
xorps xmm0, xmm0
movlpd qword [ebp + 0x20], xmm0
movlpd qword [ebp + 0x10], xmm0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi]
mov esi, eax
mov edx, dword [ecx]
call dword [edx + 4]
push 2
push 0xff00ff
mov dword [ebp + 0x20], eax
lea ecx, [ebp + 0x10]
mov eax, dword [edi]
push 0xff
push ecx
mov dword [ebp + 0x24], esi
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebx + 8]
call fcn.0051f6c0
add esp, 0x28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20