joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4686a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x468772
push 0x20
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x468749
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x46871d
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call fcn.004689e0
add esp, 0xc
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push str.StopService____ControlService_failed
call fcn.004699e0
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push str.StopService____OpenService_failed
call fcn.004699e0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push str.StopService____OpenSCManager_failed
call fcn.004699e0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret

Function at 0x4687a0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4687d7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4687c7
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x4689e0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
cmp ebx, 0x3e8
mov dword [ebp + 0x10], eax
mov eax, 0x1388
cmovb ebx, eax
cmp dword [esi + 4], ecx
je 0x468aa0
mov eax, 0xcccccccd
mov ecx, 0x2710
mul ebx
push edi
mov edi, edx
shr edi, 3
cmp edi, 0x3e8
jae 0x468a36
mov eax, 0x3e8
jmp 0x468a41
cmp edi, 0x2710
mov eax, edi
cmova eax, ecx
push eax
call fcn.00467950
add esp, 4
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x468a9c
mov eax, dword [ebp + 0x10]
cmp dword [esi + 0x14], eax
jbe 0x468a7d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], ecx
jmp 0x468a8f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
lea eax, [ebx + ebx*2]
sub ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x468a9c
mov eax, dword [ebp + 0xc]
mov ecx, 0x2710
cmp dword [esi + 4], eax
jne 0x468a27
mov ecx, dword [ebp + 0xc]
pop edi
mov eax, dword [esi + 4]
pop esi
pop ebx
cmp eax, ecx
jne 0x468abf
push str.WaitForServiceToReachState____Success
call fcn.004699e0
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
push eax
push str.WaitForServiceToReachState____Failed___CurrentState_d
call fcn.004699e0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46a080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46a0d7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x46a0d0
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x46a0d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0046a0f0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x48d8a4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00470452
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret
Function at 0x485025
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004773b1
mov dword [ebp - 0x14], eax
cmp dword [0x4d2458], esi
jne 0x485118
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4850a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4851f8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4851f8
push 0x4a5150
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4851f8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4d2458], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4d245c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4d2460], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d2468], eax
test eax, eax
je 0x485115
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d2464], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x48513d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x485130
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x485152
push 4
pop eax
jmp 0x4851fa
cmp dword [ebp - 0x14], esi
je 0x485152
push dword [0x4d2458]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x485137
mov eax, dword [0x4d2464]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4851b0
cmp dword [0x4d2468], edi
je 0x4851b0
push eax
call ebx
push dword [0x4d2468]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4851b0
test eax, eax
je 0x4851b0
call ecx
test eax, eax
je 0x4851a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4851a5
test byte [ebp - 8], 1
jne 0x4851b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4851e0
mov eax, dword [0x4d245c]
cmp eax, edi
je 0x4851dd
push eax
call ebx
test eax, eax
je 0x4851dd
call eax
mov esi, eax
test esi, esi
je 0x4851dd
mov eax, dword [0x4d2460]
cmp eax, edi
je 0x4851dd
push eax
call ebx
test eax, eax
je 0x4851dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4d2458]
call ebx
test eax, eax
je 0x4851f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4851fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402c50
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401480
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x7c8129a5
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x399719a1
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0xe60518
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe60522
pushal
call 0xe60528
pop ebp
sub ebp, 0x10
sub ebp, 0xa60518
jmp 0xe6053e
mov eax, 0xa60518
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d2
mov edx, 0xe15673d1
xor byte [eax], dl
inc eax
dec ecx
jne 0xe60555
jmp 0xe60568
pop edx
sbb al, 0x5a
pop eax
in eax, dx
rcl ecx, 1
rcl dword [eax + 0x10]
sub ecx, edx
rcl ecx, 1
rcr byte [ecx + ebp*2], cl
xlatb
rcl ecx, 1
shr dword [ebx - 7], 1
rcl ecx, 1
shl dword [esi], 1
xor edx, edx
sbb dword [edx + 0x50], ebx
fst st(1)
rcl ecx, 1
rcl byte [esp + ebx*2], cl
mov ch, 0xf5
sub eax, 0x81f5d558
mov ecx, 0xd1f1f075
mov ecx, 0xd15432a2
sar ch, 1
cmc
mov ecx, 0xddc4b19d
cmp esp, edx
rcl ecx, 1
sar dword [eax], 1
out 0xd1, eax
rcl ecx, 1
pop esp
mov ch, 0xf5
sub eax, 0x5cf5fd58
mov ebp, 0x545ad1f5
invalid
Function at 0x78542b94
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x785ac4d0
call fcn.7858cb80
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp eax, ebx
jne 0x78542c6b
push ebx
call fcn.785836cf
pop ecx
test eax, eax
jne 0x78542bc0
xor eax, eax
jmp 0x78542d35
call fcn.78543a99
test eax, eax
jne 0x78542bd0
call fcn.78583740
jmp 0x78542bb9
call fcn.785865e4
test eax, eax
jge 0x78542be0
call fcn.78543711
jmp 0x78542bc9
call fcn.7858ebb4
mov dword [0x785bba30], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [sym.MSVCR90.dll__acmdln], eax
call sub.KERNEL32.dll_GetCommandLineW
mov dword [sym.MSVCR90.dll__wcmdln], eax
call fcn.78562820
call fcn.78543184
test eax, eax
jl 0x78542c56
xor edi, edi
push edi
call fcn.785422bc
pop ecx
test eax, eax
jne 0x78542c56
mov ecx, dword [ebp + 8]
call fcn.785427e0
test eax, eax
jne 0x78542c60
mov dword [ebp - 4], edi
push 0x22
call fcn.78542506
pop ecx
jmp 0x78542c4f
mov dword [ebp - 4], 0xfffffffe
call fcn.7858683d
jmp 0x78542bd9
inc dword [0x785bba24]
jmp 0x78542d33
xor edi, edi
cmp eax, edi
jne 0x78542cb2
cmp dword [0x785bba24], edi
jle 0x78542bb9
dec dword [0x785bba24]
cmp dword [0x785bb708], edi
jne 0x78542c90
call sym.MSVCR90.dll__cexit
call fcn.7854242e
cmp dword [ebp + 0x10], edi
jne 0x78542d33
call fcn.7858683d
call fcn.78543711
call fcn.78583740
jmp 0x78542d33
cmp eax, 2
jne 0x78542d27
call sym.MSVCR90.dll___set_flsgetvalue
push dword [0x785b71e0]
push dword [0x785b71e4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78542d33
push 0x214
push ebx
call sym.MSVCR90.dll__calloc_crt
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78542bb9
push esi
push dword [0x785b71e0]
push dword [0x785bbca0]
call sym.MSVCR90.dll__decode_pointer
pop ecx
call eax
test eax, eax
je 0x78542d1b
push edi
push esi
call sym.MSVCR90.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x78542d33
push esi
call sym.MSVCR90.dll_free
pop ecx
jmp 0x78542bb9
cmp eax, 3
jne 0x78542d33
push edi
call fcn.78543a10
pop ecx
mov eax, ebx
call fcn.7858cbc5
ret

Function at 0x785482b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x785482e1
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
push 0x16
pop eax
jmp 0x78548336
test dword [ebp + 0xc], 0xfffffff9
jne 0x785482bd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x7854830e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
call sym.MSVCR90.dll__errno
mov eax, dword [eax]
jmp 0x78548336
test al, 0x10
jne 0x78548334
test al, 1
je 0x78548334
test byte [ebp + 0xc], 2
je 0x78548334
call sym.MSVCR90.dll___doserrno
mov dword [eax], 5
call sym.MSVCR90.dll__errno
mov dword [eax], 0xd
jmp 0x78548305
xor eax, eax
pop esi
pop ebp
ret
Function at 0x7854835b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x7854838c
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
jmp 0x785483c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x785483a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
jmp 0x78548387
test byte [ebp + 0xc], 0x80
je 0x785483b4
and eax, 0xfffffffe
jmp 0x785483b7
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x7854839a
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78549ccc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78549cfd
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
push 0x16
pop eax
jmp 0x78549d52
test dword [ebp + 0xc], 0xfffffff9
jne 0x78549cd9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78549d2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
call sym.MSVCR90.dll__errno
mov eax, dword [eax]
jmp 0x78549d52
test al, 0x10
jne 0x78549d50
test al, 1
je 0x78549d50
test byte [ebp + 0xc], 2
je 0x78549d50
call sym.MSVCR90.dll___doserrno
mov dword [eax], 5
call sym.MSVCR90.dll__errno
mov dword [eax], 0xd
jmp 0x78549d21
xor eax, eax
pop esi
pop ebp
ret

Function at 0x78549eb4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x78549ee5
call sym.MSVCR90.dll___doserrno
mov dword [eax], esi
call sym.MSVCR90.dll__errno
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call sym.MSVCR90.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
jmp 0x78549f20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x78549f02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.MSVCR90.dll__dosmaperr
pop ecx
jmp 0x78549ee0
test byte [ebp + 0xc], 0x80
je 0x78549f0d
and eax, 0xfffffffe
jmp 0x78549f10
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x78549ef3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x78559e69
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov eax, dword [0x785ba5b0]
sub esp, 0x54
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x785ba5b4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x785ba5b4]
mov esi, eax
push ecx
push esi
call fcn.78559e29
mov ecx, dword [0x785ba598]
add esp, 8
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [0x785ba5a0]
xor eax, eax
cmp word [esi], ax
je 0x78559ed4
inc eax
cmp word [esi + eax*2], 0
jne 0x78559ecc
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
je 0x78559ef0
dec eax
xor edx, edx
mov word [ecx], dx
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
jne 0x78559edf
xor ecx, ecx
cmp word [edi], cx
je 0x78559f0f
movzx edx, word [edi]
lea eax, [esi + eax*2]
mov word [eax], dx
lea ecx, [ecx + 1]
movzx edx, word [edi + ecx*2]
lea eax, [eax + 2]
test dx, dx
jne 0x78559efd
lea eax, [esp + 0x18]
push 0x44
push eax
call fcn.78559e29
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.78559e29
add esp, 0x10
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x78583577
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push edi
xor ebx, ebx
push ebx
push ebx
mov edi, 0x785229f4
push edi
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x785836c2
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x785836c2
push dword [ebp - 8]
push eax
push edi
call esi
test eax, eax
jbe 0x785836b4
cmp eax, dword [ebp - 8]
ja 0x785836b4
mov edi, dword [ebp - 4]
cmp byte [edi], 0
mov ecx, edi
je 0x785835f0
mov al, byte [ecx]
cmp al, 0x61
jl 0x785835ea
cmp al, 0x7a
jg 0x785835ea
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x785835dc
push 0x16
push edi
push 0x785229dc
call sym.MSVCR90.dll_strncmp
add esp, 0xc
test eax, eax
je 0x7858365b
push 0x105
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x785836b4
push 3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [esi], 0
mov ecx, esi
je 0x78583644
mov al, byte [ecx]
cmp al, 0x61
jl 0x7858363e
cmp al, 0x7a
jg 0x7858363e
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x78583630
push esi
push edi
call sym.MSVCR90.dll_strstr
pop ecx
pop ecx
push esi
push 0
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x785836b4
push 0x2c
push edi
call sym.MSVCR90.dll_strchr
pop ecx
pop ecx
test eax, eax
je 0x785836b4
inc eax
cmp byte [eax], 0x20
je 0x7858366d
mov cl, byte [eax]
xor esi, esi
cmp cl, 0x30
jl 0x785836b4
cmp cl, 0x39
jg 0x78583693
imul esi, esi, 0xa
movsx ecx, cl
inc eax
lea esi, [esi + ecx - 0x30]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x7858367c
cmp esi, 2
je 0x785836a2
cmp esi, 3
je 0x785836a2
cmp esi, 1
jne 0x785836b4
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x785836c5
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret