joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e6a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5103b7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x550144]
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]
xor eax, eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e736
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0044a760
mov ecx, dword [esi + 0x10]
mov eax, esi
cmp ecx, 1
jb 0x48e791
cmp dword [esi + 0x14], 8
jb 0x48e766
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
xor ecx, ecx
nop dword [eax]
cmp ax, word [ecx + 0x534f54]
je 0x48e78f
add ecx, 2
cmp ecx, 4
jb 0x48e770
push 1
push 0x536ac0
mov ecx, esi
call fcn.0044aee0
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.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x48e7b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5103b7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x550144]
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]
xor eax, eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e846
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0044a760
mov ecx, dword [esi + 0x10]
mov eax, esi
cmp ecx, 1
jb 0x48e8a1
cmp dword [esi + 0x14], 8
jb 0x48e876
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
xor ecx, ecx
nop dword [eax]
cmp ax, word [ecx + 0x534f54]
je 0x48e89f
add ecx, 2
cmp ecx, 4
jb 0x48e880
push 1
push 0x536ac0
mov ecx, esi
call fcn.0044aee0
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.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x48e8c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5103b7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x550144]
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]
xor eax, eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48e956
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0044a760
mov ecx, dword [esi + 0x10]
mov eax, esi
cmp ecx, 1
jb 0x48e9b1
cmp dword [esi + 0x14], 8
jb 0x48e986
mov eax, dword [esi]
movzx eax, word [eax + ecx*2 - 2]
xor ecx, ecx
nop dword [eax]
cmp ax, word [ecx + 0x534f54]
je 0x48e9af
add ecx, 2
cmp ecx, 4
jb 0x48e990
push 1
push 0x536ac0
mov ecx, esi
call fcn.0044aee0
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.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x48e9d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510417
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x20a
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 1
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48ea70
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0044a760
mov ecx, dword [edi + 0x10]
mov eax, edi
cmp ecx, 1
jb 0x48eac8
cmp dword [edi + 0x14], 8
jb 0x48eaa0
mov eax, dword [edi]
movzx eax, word [eax + ecx*2 - 2]
xor ecx, ecx
cmp ax, word [ecx + 0x534f54]
je 0x48eac6
add ecx, 2
cmp ecx, 4
jb 0x48eaa7
push 1
push 0x536ac0
mov ecx, edi
call fcn.0044aee0
mov eax, edi
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.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x4906b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51068d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0x44
xor eax, eax
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x3a], xmm0
movlpd qword [ebp - 0x32], xmm0
mov word [ebp - 0x2a], ax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x40], 0x181
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x490852
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 8]
push esi
push edi
push str.__s___s
push eax
mov dword [ebp - 4], 0
call fcn.0048cfa0
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x49075e
mov eax, 0xa
jmp 0x490760
xor eax, eax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4907b1
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_s__cmd:_s
push 0x550bb8
call fcn.0048d880
add esp, 0x1c
mov dword [ebp - 0x14], 0
jmp 0x49081c
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 2
test eax, eax
je 0x4907fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4907ec
push dword [ebp - 0x10]
push str.CQMTProcess::RunApp_WAIT_TIMEOUT_path_s.
push 0x550bb8
call fcn.0048d880
add esp, 0xc
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4907fd
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 1
test edi, edi
je 0x490815
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x49081c
push esi
call eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49083e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
int3
Function at 0x490860
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x234], eax
mov dword [eax], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4908b7
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4908d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x228], ebx
jbe 0x4908ec
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e3a87
add esp, 8
test eax, eax
je 0x4908ff
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4908d0
jmp 0x490912
mov ecx, dword [ebp - 0x234]
mov ebx, 1
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x490930
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], 0
nop
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4909c5
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4909be
nop dword [eax + eax]
cmp dword [ebp - 0x228], 0
jbe 0x4909ad
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e3a87
add esp, 8
test eax, eax
je 0x4909d8
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x490990
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.004de46d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor ebx, ebx
push ebx
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x490a39
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1f4
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x490a39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x490a39
push edi
push str.QMTProcess::CloseProcessByID___d
push 0x550bb8
call fcn.0048d880
add esp, 0xc
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
test edi, edi
je 0x4909c5
mov edi, dword [ebp - 0x238]
cmp eax, 0xa
jl 0x490960
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x490f40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x228
mov dword [ebp - 0x234], eax
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004e0230
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x490ffc
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x490ff5
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0x228]
cmp ecx, edi
je 0x490fdc
test ecx, ecx
je 0x490fdc
cmp ecx, 4
je 0x490fdc
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004e3a87
add esp, 8
test eax, eax
je 0x490fef
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x490fb0
jmp 0x490ff4
mov ebx, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x491010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510710
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x550144]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x491184
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4910a3
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4910d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
push esi
call fcn.0048d290
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491166
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x491166
mov ebx, dword [ebp + 0xc]
nop dword [eax]
cmp dword [ebp - 0x234], ebx
je 0x4910fb
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4910e0
jmp 0x49112c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491104
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0044f580
mov esi, dword [ebp - 0x240]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
push esi
call fcn.0048d290
mov ebx, dword [ebp - 0x244]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491166
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
int3
Function at 0x491190
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510750
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x550144]
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 ebx, dword [ebp + 8]
push 0x18
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
call fcn.004de42a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x240], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x491238
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x491263
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x248]
call fcn.00491420
mov eax, esi
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.004de46d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x248]
call fcn.00491340
mov ecx, dword [ebp - 0x224]
mov dword [eax], ecx
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x491263
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xa
nop word [eax + eax]
mov esi, dword [ebp - 0x248]
mov ecx, esi
mov edx, dword [ebp - 0x240]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4912cb
cmp dword [eax + 0x10], edx
jae 0x4912c1
mov eax, dword [eax + 8]
jmp 0x4912c5
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4912b7
cmp byte [ecx + 0xd], 0
jne 0x49131c
cmp edx, dword [ecx + 0x10]
jb 0x49131c
cmp ecx, esi
je 0x49131c
mov eax, edi
dec edi
test eax, eax
je 0x49131c
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x248]
call fcn.00491340
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x240], ecx
cmp eax, dword [ebx + 8]
je 0x49130b
mov dword [eax], ecx
add dword [ebx + 4], 4
jmp 0x4912a0
lea ecx, [ebp - 0x240]
push ecx
push eax
mov ecx, ebx
call fcn.0047e250
jmp 0x4912a0
mov esi, 1
jmp 0x49123a
Function at 0x491bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5107bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x550144]
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 ebx, ecx
mov dword [ebp - 0x18], ebx
cmp dword [ebx + 8], 0
jne 0x491d44
mov edi, dword [ebp + 8]
test edi, edi
je 0x491c5d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491c16
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x491c5d
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.004de960
mov esi, esp
test esi, esi
je 0x491c5d
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x491c5f
xor esi, esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.00491dc0
mov dword [ebp - 4], 0
mov eax, 0x536b44
mov esi, dword [ebp - 0x14]
sub eax, esi
push 2
push 0x536b44
mov dword [ebp - 0x1c], eax
mov edi, dword [esi - 0xc]
call fcn.004e3726
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
mov dword [ebp - 0x20], edx
add esp, 8
cmp ecx, edi
jl 0x491db4
lea ebx, [edi + edx]
test ebx, ebx
js 0x491db4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x491cd0
push ebx
lea ecx, [ebp - 0x14]
call fcn.0046d940
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x491cdb
add eax, esi
jmp 0x491ce0
mov eax, 0x536b44
push edx
push eax
push edx
lea eax, [edi + esi]
push eax
call fcn.0046da70
lea edi, [esi - 0x10]
add esp, 0x10
cmp ebx, dword [edi + 8]
jg 0x491db4
push 0
mov dword [edi + 4], ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov byte [ebx + esi], 0
push dword [edi + 4]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491d24
call fcn.004715d0
mov esi, eax
jmp 0x491d26
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x491d8c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x491d8c
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x491d6c
call fcn.004715d0
mov esi, eax
test esi, esi
js 0x491d8c
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x5387e8
push dword [ebx]
call edi
test eax, eax
jne 0x491d8a
call fcn.004715d0
mov esi, eax
jmp 0x491d8c
xor esi, esi
not esi
shr esi, 0x1f
mov eax, esi
lea esp, [ebp - 0x30]
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.004de46d
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00450260
int3
Function at 0x492540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510890
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x550144]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0xb0], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4925a8
push 1
push esi
call fcn.00487920
add esp, 8
lea ecx, [ebp - 0xa4]
call fcn.00489440
mov eax, dword [ebp + 0x1c]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4925c5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa4]
call fcn.0044a760
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4925e6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x8c]
call fcn.0044a760
mov esi, dword [ebp - 0xa8]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492610
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x74]
call fcn.0044a760
mov esi, dword [ebp - 0xac]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492634
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.0044a760
mov esi, dword [ebp - 0xb0]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492660
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a760
cmp ebx, 0x5364dc
jne 0x492699
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492686
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x4926b1
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4926a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0044a760
lea eax, [ebp - 0xa4]
push eax
call fcn.00492200
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.00489c60
mov eax, esi
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.004de46d
mov esp, ebp
pop ebp
ret 0x1c