joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c42a0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 4], eax
push esi
push ecx
push 0
push 0x43
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x4c42d2
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005b75ab
add esp, 8
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4c432d
cmp dword [esp + 4], 0x103
jne 0x4c432d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlFreeUserThreadStack
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4c4323
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov al, 1
pop esi
xor ecx, esp
call fcn.005b75ab
add esp, 8
ret

Function at 0x4c4770
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e74b8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x66a074]
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 esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x4c47ab
xor al, al
jmp 0x4c4832
add eax, 0x20
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00416890
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4c481f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x4c4350
push 0
push 0
call fcn.005c05b0
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x4c484e
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x4c4817
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004c44e0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004168c0
mov al, bl
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.005b75ab
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4c4866
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4c4806
mov bl, 1
jmp 0x4c4821
Function at 0x4c7320
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e7930
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x66a074]
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 edi, ecx
call fcn.00408d80
test al, al
je 0x4c735d
xor al, al
jmp 0x4c7509
mov ecx, edi
call fcn.004c6db0
test al, al
je 0x4c736f
mov al, 1
jmp 0x4c7509
push 0
mov ecx, edi
call fcn.00408e30
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4c73be
lea ecx, [ebp - 0x28]
call fcn.00408f40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004de750
test al, al
je 0x4c73af
push 0
lea ecx, [ebp - 0x28]
call fcn.00408e30
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408ea0
mov ecx, edi
call fcn.004c6db0
test al, al
jne 0x4c7368
mov ecx, edi
call fcn.00409050
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4c74ae
mov ecx, edi
call fcn.00408fc0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x4c73f2
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4c7415
mov eax, ebx
cmp ecx, 8
jb 0x4c740b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4c749e
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004ad2e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00408d80
test al, al
jne 0x4c748f
lea ecx, [ebp - 0x28]
call fcn.004c6ba0
test al, al
jne 0x4c748f
push 0
lea ecx, [ebp - 0x28]
call fcn.00408e30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4c748f
lea ecx, [ebp - 0x40]
call fcn.00408f40
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004de750
test al, al
je 0x4c7483
push 0
lea ecx, [ebp - 0x40]
call fcn.00408e30
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00408ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408ea0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4c73e6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.004c6ba0
test al, al
jne 0x4c7502
push 0
mov ecx, edi
call fcn.00408e30
push eax
call ebx
test eax, eax
jne 0x4c7502
lea ecx, [ebp - 0x40]
call fcn.00408f40
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004de750
test al, al
je 0x4c74f3
push 0
lea ecx, [ebp - 0x40]
call fcn.00408e30
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408ea0
mov ecx, edi
call fcn.004c6db0
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.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4c9760
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.004baa60
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4c97bc
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.005b75ab
add esp, 0x418
ret
cmp eax, 0x208
jae 0x4c97a4
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00409310
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.00409060
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.005b75ab
add esp, 0x418
ret

Function at 0x4c9e20
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x4c9e36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [esp + 8]
mov word [esi + 4], 0
call fcn.00408d80
test al, al
jne 0x4c9e54
mov ecx, dword [esp + 8]
call fcn.00408e30
jmp 0x4c9e56
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x4c9e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c9e78
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x4c9e90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e7f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x66a074]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x4c9ed6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004de820
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4c9eff
lea ebx, [esi + 8]
jmp 0x4c9f01
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00408d80
test al, al
jne 0x4c9f17
mov ecx, dword [ebp - 0x18]
call fcn.00408e30
jmp 0x4c9f19
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4c9f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c9f3a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4c9f63
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4c9f78
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.005b7992
add esp, 8
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret 4
Function at 0x4c9fb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e7f58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x66a074]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4c9ff3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004de8e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4ca020
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x4ca027
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00408d80
test al, al
jne 0x4ca03b
mov ecx, ebx
call fcn.00408e30
jmp 0x4ca03d
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x4ca08e
call ecx
cmp eax, 5
jne 0x4ca088
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00408d80
test al, al
jne 0x4ca078
mov ecx, ebx
call fcn.00408e30
jmp 0x4ca07a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x4ca0ac
call ecx
cmp eax, 0xb7
jne 0x4ca0a1
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.004d1080
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4ca0d2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4ca0e7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.005b7992
add esp, 8
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret 4
Function at 0x4cb990
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.005b9c20
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4cbad2
cmp dword [esi + 4], 6
push edi
ja 0x4cb9e6
jne 0x4cba6e
cmp dword [esi + 8], 2
jb 0x4cba6e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4cba6e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4cba6e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4cba6e
movups xmm0, xmmword [0x629d68]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x629d78]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4cba6e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4cba6e
cmp word [edi + 2], ax
jbe 0x4cba6e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4cbab9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4cbab9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.005b75ab
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.005b75ab
add esp, 0x140
ret

Function at 0x4cc220
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x4cc258
mov edx, dword [esp + 4]
test edx, edx
je 0x4cc258
cmp dword [eax], 0xffffffff
je 0x4cc258
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cc258
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x4cc260
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x4cc29a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4cc29a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4cc29a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4cc29a
cmp edi, dword [esi]
jne 0x4cc29a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc
Function at 0x4cc2e0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4cc343
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4cc343
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4cc31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4cc343
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005b75ab
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.005b75ab
add esp, 8
ret 4

Function at 0x4cde00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4cde7e
cmp dword [esp + 0x14], 6
jb 0x4cde7e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.DSOUND.dll_DirectSoundCreate
call fcn.004cdc70
add esp, 0xc
test al, al
je 0x4cde7e
cmp word [esi], 0
jne 0x4cded6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.004cdc70
add esp, 0xc
test al, al
je 0x4cdeaa
cmp word [esi], 0
jne 0x4cded6
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.DSOUND.dll_DirectSoundCreate
call fcn.004cdc70
add esp, 0xc
test al, al
je 0x4cdeeb
cmp word [esi], 0
je 0x4cdeeb
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4ce490
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e87ab
mov eax, dword fs:[0]
push eax
mov eax, 0x285c
call fcn.005b8630
mov eax, dword [0x66a074]
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 esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp - 0x2218]
push ebx
push eax
call fcn.005b9c20
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x2218], ax
test esi, esi
je 0x4ce6a4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x4ce6a4
push esi
call edi
cmp eax, 0xffa
jge 0x4ce6a4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2218]
push eax
call esi
push str._234
lea eax, [ebp - 0x2218]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2868]
call fcn.00408ef0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2868]
push eax
call fcn.004d9190
mov ecx, eax
call fcn.004d9250
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2868]
call fcn.00408ea0
test esi, esi
je 0x4ce6a4
push 0x629144
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x284c], eax
test eax, eax
je 0x4ce6a4
lea ecx, [ebp - 0x2848]
call fcn.004cdf10
xor edi, edi
lea esi, [ebp - 0x2848]
nop dword [eax]
cmp word [esi], 0
je 0x4ce5c4
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x284c]
cmp eax, 0x20
ja 0x4ce5d2
inc edi
add esi, 0x210
cmp edi, 3
jl 0x4ce5a0
jmp 0x4ce5f4
imul ebx, edi, 0x210
cmp dword [ebp + ebx - 0x2640], 0
mov ebx, dword [ebp + ebx - 0x263c]
jne 0x4ce5ec
add ebx, 0x10
test ebx, ebx
jne 0x4ce6a0
mov edi, dword [ebp - 0x284c]
lea eax, [ebp - 0x2218]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x4ce69b
mov dword [ebp - 0x2850], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x284c], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push dword [ebp + esi*4 - 0x2850]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ce691
push 1
push 0
lea eax, [ebp - 0x2218]
push eax
lea eax, [ebp - 0x218]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x4ce69b
inc esi
cmp esi, 2
jb 0x4ce630
mov eax, ebx
jmp 0x4ce6a6
mov ebx, 0x10
mov eax, ebx
jmp 0x4ce6a6
xor eax, eax
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.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4cfbc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.005b75ca
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.005b9c20
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4cfc1c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.005b75ab
add esp, 0x120
ret
Function at 0x4d4340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e91a7
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 4
mov dword [ebp - 0x50], 0
call fcn.005b75ca
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push 2
push 0
push 0x40000000
push esi
push eax
call fcn.004d59b0
test al, al
je 0x4d451b
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x50]
movlpd qword [ebp - 0x5c], xmm0
call fcn.004cc2e0
test al, al
je 0x4d43eb
cmp dword [ebp - 0x58], 0
ja 0x4d43e4
cmp dword [ebp - 0x5c], 0
jbe 0x4d43eb
mov bl, 1
jmp 0x4d451d
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.004141d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004141d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.004141d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004141d0
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 4], 6
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.00408fc0
mov edx, eax
call fcn.0040d2e0
mov ecx, dword [edx]
cmp ecx, dword [eax]
lea ecx, [ebp - 0x4c]
jne 0x4d4456
call fcn.004d2c90
jmp 0x4d445c
push esi
call fcn.004d5af0
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.004d3f00
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
call fcn.00408fc0
mov edx, dword [eax]
call fcn.00414a40
mov esi, dword [ebp - 0x50]
mov edi, eax
test esi, esi
jne 0x4d448a
xor bl, bl
jmp 0x4d44d2
test edx, edx
jne 0x4d4492
xor bl, bl
jmp 0x4d44ba
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4d449d
xor bl, bl
jmp 0x4d44ba
push 0
lea ecx, [ebp - 0x18]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d44b4
xor bl, bl
jmp 0x4d44ba
cmp edi, dword [ebp - 0x18]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4d44d2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4d44d2
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00414a40
cmp dword [ebp - 0x18], eax
jne 0x4d44e7
test bl, bl
je 0x4d44e7
mov bl, 1
jmp 0x4d44e9
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00414180
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00414180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00414180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00414180
jmp 0x4d4520
xor bl, bl
mov esi, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4d4555
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4d4543
test eax, eax
je 0x4d4543
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x50], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret 4