joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468590
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x4685e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4686b5
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push ebx
push 0x24
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x468646
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46865d
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46869c
cmp eax, 3
je 0x468660
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x46865d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46869e
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46869e
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46869c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x468699
call ebx
sub eax, edi
cmp eax, 0x1f40
jae 0x4686c5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
jne 0x468675
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4686af
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
je 0x468699
mov edi, dword [ebp - 0x24]
mov ebx, 0x800705b4
jmp 0x46869e

Function at 0x4686e0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x468716
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46876e
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
pop ebp
ret
push 0
push 0
push 0x624e98
push 0
push 0
push dword [ebp + 8]
push 1
push 2
push dword [ebp + 0xc]
push 0xf01ff
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x468764
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x468769
movzx edi, di
push esi
or edi, 0x80070000
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
xor edi, edi
call ebx
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x469e7e
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x5dde16
call fcn.004c281e
mov esi, ecx
cmp byte [esi + 0x69], 0
je 0x469f3f
lea ebx, [esi + 0xb4]
push 0
mov edx, ebx
call fcn.00473a35
pop ecx
test al, al
jne 0x469eb4
xor al, al
jmp 0x46a052
push ebx
lea ecx, [ebp - 0x250]
call fcn.00404f90
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x248]
call fcn.004215d0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
push eax
call fcn.00404f90
push 0
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x230]
call fcn.00419490
pop ecx
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.004051e0
add esi, 0x18
cmp dword [esi + 0x14], 8
jb 0x469f0f
mov esi, dword [esi]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00405040
jmp 0x469ead
lea eax, [ebp - 0x248]
push eax
call fcn.00469dad
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
push 0
push eax
call fcn.0050b8e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x250]
call fcn.00404f90
push 0
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x230]
call fcn.00419490
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00405040
cmp byte [esi + 0x68], 0
mov ecx, str..exe
mov eax, str..dll
cmove eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x9c]
call fcn.00405a20
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
push ecx
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x230]
mov ecx, esi
call fcn.00473eb9
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00405040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004051e0
mov al, bl
call fcn.004c27c8
ret
Function at 0x46cb59
Capabilities:
Enumerate processes

Disassembly:
push 0x264
mov eax, 0x5de61f
call fcn.004c281e
mov edi, ecx
push 0x22c
xor ebx, ebx
lea eax, [ebp - 0x240]
push ebx
push eax
call fcn.0050b8e0
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46cb98
xor al, al
jmp 0x46cc28
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x46cc1b
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x270]
call fcn.004050d0
push 0xfde9
lea edx, [ebp - 0x270]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x258]
call fcn.00419570
pop ecx
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00422f60
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.004051e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.00405040
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46cbb2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.004c27c8
ret

Function at 0x46cd81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x46cd98
mov ecx, edi
call fcn.004166a0
cmp dword [esi + 0x14], 8
jb 0x46cda0
mov esi, dword [esi]
push 0x40
push 0x624fc4
push esi
call fcn.005149f5
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46cdbd
xor al, al
jmp 0x46ce46
push ebx
mov ebx, 0x10000
push ebx
call fcn.004c244f
and dword [ebp - 4], 0
mov ecx, eax
push esi
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
push ebx
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.005144b1
add esp, 0x14
jmp 0x46ce26
test edi, edi
je 0x46ce02
mov ecx, dword [ebp + 8]
mov eax, ebx
sub ecx, dword [ebp - 4]
cmp ecx, ebx
cmovb eax, ecx
mov ecx, edi
push eax
push dword [ebp - 8]
call fcn.004060c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub eax, ecx
cmp eax, ebx
jb 0x46ce37
push esi
push 0x10000
push 1
push dword [ebp - 8]
add ecx, ebx
mov dword [ebp - 4], ecx
call fcn.005144b1
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x46cde6
push esi
call fcn.005134ff
pop ecx
test eax, eax
je 0x46ce3b
mov byte [ebp - 0xc], 0
push esi
call fcn.00513787
mov al, byte [ebp - 0xc]
pop ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46ce4c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10c], edi
mov esi, edx
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x110], ebx
jb 0x46ce7f
mov eax, dword [eax]
push eax
push 0x624fd4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0050b8e0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x46cea8
mov esi, dword [esi]
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.00405250
cmp dword [edi + 0x14], 0x10
jb 0x46ced3
mov esi, dword [edi]
jmp 0x46ced5
mov esi, edi
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
call fcn.00411f20
xor edx, edx
mov ecx, dword [eax]
sub ecx, esi
cmp esi, dword [eax]
cmova ecx, edx
test ecx, ecx
je 0x46cf00
cmp byte [esi], 0x2f
jne 0x46cefa
mov byte [esi], 0x5c
inc esi
inc ebx
cmp ebx, ecx
jne 0x46cef2
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c21c3
mov esp, ebp
pop ebp
ret

Function at 0x46cf13
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x218], 0
push esi
mov esi, ecx
mov dword [ebp - 0x214], esi
cmp dword [eax + 0x14], 8
push edi
mov edi, edx
jb 0x46cf44
mov eax, dword [eax]
push eax
push str.install_path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0050b8e0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x46cf6e
mov edi, dword [edi]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004050d0
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x20d], 0x5c
mov byte [ebp - 0x20e], 0x2f
jb 0x46cfa7
mov edi, dword [esi]
jmp 0x46cfa9
mov edi, esi
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.004059f0
lea edx, [ebp - 0x20d]
lea ecx, [ebp - 0x20e]
push dword [eax]
push edi
call fcn.0046e477
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x46d118
Capabilities:
Enumerate services

Disassembly:
push 0x5c
mov eax, 0x5de6a3
call fcn.004c281e
mov ebx, ecx
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x46d219
xor eax, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0xf
call fcn.00406850
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00411320
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 1
push 0x3b
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x46d1ac
cmp eax, 0xea
je 0x46d161
cmp eax, 0x7a
je 0x46d161
jmp 0x46d20d
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
cmovae esi, dword [ebp - 0x34]
xor edi, edi
cmp dword [ebp - 0x18], edi
jle 0x46d20d
push dword [esi]
lea ecx, [ebp - 0x68]
call fcn.004050d0
push 0xfde9
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00419570
pop ecx
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00422f60
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004051e0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.00405040
inc edi
lea esi, [esi + 0x24]
cmp edi, dword [ebp - 0x18]
jl 0x46d1be
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004051e0
call fcn.004c27c8
ret

Function at 0x46d366
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x46d386
mov eax, dword [esi]
jmp 0x46d388
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46d434
push ebx
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
xor edi, edi
push edi
push eax
call fcn.0050b8e0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x46d3bb
mov eax, dword [esi]
jmp 0x46d3bd
mov eax, esi
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0050b8e0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push edi
push 0x625000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [esi + 0x14], 8
jb 0x46d410
mov esi, dword [esi]
push 1
lea eax, [ebp - 0x414]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x46d432
push 4
push edi
lea eax, [ebp - 0x414]
push eax
call esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x46d443
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 0
mov esi, ecx
push str.kernel32.dll
mov dword [ebp - 8], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x46d4f7
push ebx
call fcn.004c244f
pop ecx
mov edi, eax
xor eax, eax
push edi
push ebx
push eax
push str.kernel32.dll
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46d4f0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x61fedc
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46d4f0
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
cmp ecx, 5
jne 0x46d4cc
test edx, edx
je 0x46d4f0
push 0x61e428
jmp 0x46d4fc
cmp ecx, 6
jne 0x46d4e4
cmp edx, 2
mov eax, 0x61e658
mov ecx, 0x625004
cmovae eax, ecx
push eax
jmp 0x46d4fc
cmp ecx, 0xa
jne 0x46d4f0
push 0x62503c
jmp 0x46d4fc
push edi
call fcn.004c221a
pop ecx
push 0x625040
mov ecx, esi
call fcn.004050d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x46fd45
Capabilities:
Check for peb beingdebugged flag
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
call dword [sym.imp.USER32.dll_BlockInput]
xor ebx, ebx
mov byte [ebp - 0x229], bl
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
test eax, eax
jne 0x46fd80
mov byte [ebp - 0x229], 0
jmp 0x46fd87
mov byte [ebp - 0x229], 1
cmp byte [ebp - 0x229], bl
je 0x46fdfd
push 0x208
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0050b8e0
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xa
mov edx, 0x61789c
lea ecx, [ebp - 0x228]
call fcn.0046b36e
pop ecx
cmp dword [eax + 0x14], 8
jb 0x46fdcf
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x228]
call fcn.00405040
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46fdfd
xor al, al
jmp 0x46fe06
push ebx
call dword [sym.imp.USER32.dll_BlockInput]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x48a3a2
Capabilities:
Check if file exists

Disassembly:
push 0x260
mov eax, 0x5e1f51
call fcn.004c281e
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0050b8e0
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x48a3e0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x26c]
call fcn.00404f90
push 0xfde9
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x248]
call fcn.00419490
pop ecx
mov dword [ebp - 4], esi
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
cmovae eax, dword [ebp - 0x248]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405040
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
push 0x61ed04
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 1
call fcn.004050d0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0046cf13
pop ecx
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00405080
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.00405040
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00405040
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x268]
lea esi, [ebp - 0x230]
mov byte [ebp - 0x261], 0x5c
cmovae esi, dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 0x262], 0x2f
call fcn.004059f0
lea edx, [ebp - 0x261]
lea ecx, [ebp - 0x262]
push dword [eax]
push esi
call fcn.0046e477
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x230]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
inc bl
call fcn.00405040
mov al, bl
call fcn.004c27c8
ret 8
Function at 0x492ef8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1024
call fcn.004c2f10
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push esi
mov dword [esp + 0x14], esi
mov eax, dword [edi + 0x14]
mov ebx, dword [edi + 0xc]
sub ebx, dword [eax]
sub ebx, 0x10
sar ebx, 4
call fcn.00528ca9
pop ecx
mov ecx, edi
sub ebx, 1
jne 0x492f52
push 1
mov edx, esi
call fcn.00492de0
mov esi, dword [ebp + 8]
mov ebx, eax
pop ecx
inc esi
jmp 0x4930d1
push str.too_many_arguments
lea edx, [ebx + 0x14]
call fcn.00487f4d
mov esi, dword [ebp + 8]
xor eax, eax
inc eax
mov dword [esp + 0x18], esi
pop ecx
mov dword [esp + 0xc], eax
dec ebx
test eax, eax
je 0x4930cd
mov edx, esi
mov ecx, edi
call fcn.004866d7
mov edx, esi
mov ecx, edi
cmp eax, 3
jne 0x49301a
call fcn.00488076
mov esi, eax
test esi, esi
jne 0x492fcd
push dword [esp + 0x10]
call fcn.00513950
pop ecx
push dword [esp + 0x10]
mov esi, eax
push esi
call fcn.005140a9
pop ecx
pop ecx
mov edx, 0x61e4e0
mov ecx, edi
call fcn.0048699b
xor eax, eax
cmp esi, 0xffffffff
setne al
mov esi, dword [esp + 0x14]
jmp 0x4930bc
and dword [esp + 0x20], 0
lea eax, [esp + 0x28]
mov edx, esi
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x1000
call fcn.004881ea
push dword [esp + 0x10]
push esi
push 1
push eax
call fcn.005144b1
add esp, 0x10
lea ecx, [esp + 0x18]
mov esi, eax
add dword [esp + 0x20], esi
call fcn.0048828c
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
jmp 0x492fc4
push 0
call fcn.00487fd0
pop ecx
cmp byte [eax], 0x2a
jne 0x493028
inc eax
movsx eax, byte [eax]
sub eax, 0x4c
je 0x4930ae
sub eax, 0x15
je 0x493055
sub eax, 0xb
je 0x493051
dec eax
mov ecx, edi
sub eax, 1
jne 0x493119
mov edx, dword [esp + 0x10]
call fcn.00492c32
jmp 0x4930bc
push 1
jmp 0x4930b0
and dword [esp + 0x20], 0
lea eax, [esp + 0x28]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x1000
mov edx, 0x1000
lea ecx, [esp + 0x18]
call fcn.004881ea
push esi
push 0x1000
push 1
push eax
call fcn.005144b1
add dword [esp + 0x30], eax
add esp, 0x10
cmp eax, 0x1000
je 0x493072
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.0048828c
xor eax, eax
inc eax
jmp 0x4930bc
push 0
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00492de0
pop ecx
inc esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], esi
test ebx, ebx
jne 0x492f6e
mov ebx, dword [esp + 0xc]
push dword [esp + 0x10]
call fcn.005134ff
pop ecx
test eax, eax
je 0x4930ed
push 0
xor edx, edx
mov ecx, edi
call fcn.00487cc7
pop ecx
jmp 0x493104
test ebx, ebx
jne 0x4930ff
add dword [edi + 0xc], 0xfffffff0
mov eax, dword [edi + 0xc]
and dword [eax + 8], ebx
add dword [edi + 0xc], 0x10
sub esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
push str.invalid_format
mov edx, esi
call fcn.00487b01
int3
Function at 0x493271
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ecx + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0xc]
sub esi, dword [eax]
sub esi, 0x10
mov dword [esp + 0xc], edx
push edi
sar esi, 4
mov dword [esp + 0xc], ecx
push 1
pop edi
sub esi, ebx
jne 0x4932ab
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov edx, ebx
dec esi
call fcn.004866d7
mov ecx, dword [esp + 0xc]
mov edx, ebx
cmp eax, 3
jne 0x49331e
call fcn.00486476
mov ecx, dword [esp + 0xc]
mov edx, ebx
push 0
cmp dword [eax + 8], 0x13
jne 0x4932e0
call fcn.004867ec
pop ecx
push edx
push eax
push str._lld
jmp 0x4932f0
call fcn.004867ab
push ecx
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x1c]
call fcn.00487728
add esp, 0x10
test edi, edi
je 0x493304
test eax, eax
jg 0x493346
xor edi, edi
inc ebx
test esi, esi
jne 0x4932a7
test edi, edi
jne 0x49329d
mov ecx, dword [esp + 0xc]
xor edx, edx
push edi
call fcn.00487cc7
pop ecx
jmp 0x4932a0
lea eax, [esp + 0x14]
push eax
call fcn.00487fd0
pop ecx
test edi, edi
je 0x493304
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call fcn.00513d4b
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x493304
xor edi, edi
inc edi
jmp 0x493306