joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5300
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52342e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x573054]
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, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.004032f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004032f0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.004b4b00
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.004032a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.004032a0
lea eax, [ebp - 0x27c]
push eax
call fcn.004b7500
add esp, 4
test al, al
je 0x4a54fe
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0050f4b1
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push SysReAllocString
push eax
lea ecx, [ebp - 0x280]
call fcn.004c47c0
test al, al
jne 0x4a5502
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x4a54fe
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a54e9
test eax, eax
je 0x4a54e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0050f85c
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x4a554b
push esi
lea ecx, [ebp - 0x280]
call fcn.004c4920
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x4a554b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4a5536
test eax, eax
je 0x4a5536
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.0050f85c
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.004032a0
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.0050f48d
mov esp, ebp
pop ebp
ret 4
Function at 0x4abdd0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523c8c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x573054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.004032a0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.004032a0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.004032a0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004032a0
push 0x88
push ebx
call fcn.0050f85c
add esp, 8
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

Function at 0x4ad8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5240c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4ad9e2
cmp byte [eax + 0x54], 0
je 0x4ad9e2
add eax, 0x1c
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.004ac690
mov dword [ebp - 4], 0
mov ecx, dword [esi + 4]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ad9b6
push 0
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.004b6660
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405900
push eax
call fcn.004089f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00405a70
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4ad9db
cmp byte [ebp - 0x18], 0
je 0x4ad9db
mov eax, dword [esi]
test eax, eax
je 0x4ad9d7
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret 4
Function at 0x4afc20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.mshtml.dll]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x537248]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x53724c]
mov dword [ebp - 0x14], edx
mov eax, dword [0x537250]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x537254]
mov dword [ebp - 0xc], ecx
mov dx, word [0x537258]
mov word [ebp - 8], dx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4afc8b
xor al, al
jmp 0x4afd48
mov edx, dword [ebp - 0x30]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4afca7
xor al, al
jmp 0x4afd48
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4afccf
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x4afd48
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
push 0x539e20
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4afd3c
cmp dword [ebp - 0x24], 0
jbe 0x4afd3c
cmp dword [ebp - 0x28], 0
je 0x4afd3c
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x4afd48
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret
Function at 0x4b1970
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524db0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x573054]
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
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
xor esi, esi
mov dword [ebp - 0x18], esi
xor bl, bl
push fcn.00402340
mov byte [ebp - 0x14], bl
push 6
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b1a40
cmp dword [ebp - 0x34], esi
je 0x4b1a40
lea ecx, [ebp - 0x30]
call fcn.00403340
mov dword [ebp - 4], esi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x30]
push str.9CDB4DA2_ACEA_446E_AA3A_D25628140939__d__p
push eax
call fcn.004b43a0
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00405910
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4b1a31
push 0xffffffffffffffff
push esi
call edi
test eax, eax
jne 0x4b1a20
mov bl, 1
mov byte [ebp - 0x14], bl
jmp 0x4b1a31
xor bl, bl
push esi
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004032a0
mov dword [ebp - 4], 1
cmp byte [0x577200], 0
jne 0x4b1a79
mov ecx, dword [0x5771e0]
test ecx, ecx
je 0x4b1a65
push 0xffffffffffffffff
push ecx
call edi
mov ecx, dword [0x5771e0]
mov eax, dword [0x5771d8]
mov edi, dword [eax]
test ecx, ecx
je 0x4b1a7b
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x4b1a7b
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x4b1a93
test esi, esi
je 0x4b1aa6
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4b1a97
test esi, esi
je 0x4b1aa6
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov dword [ebp - 0x18], 0
mov eax, edi
mov byte [ebp - 0x14], 0
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.0050f48d
mov esp, ebp
pop ebp
ret
Function at 0x4b32d0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x573054]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b3417
cmp dword [esi + 4], 6
push edi
ja 0x4b332b
jne 0x4b33b3
cmp dword [esi + 8], 2
jb 0x4b33b3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4b33b3
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b33b3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b33b3
movups xmm0, xmmword [0x53d6f8]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x53d708]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4b33b3
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4b33b3
cmp word [edi + 2], ax
jbe 0x4b33b3
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 0x4b33fe
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x4b33fe
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.0050f48d
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0050f48d
add esp, 0x140
ret
Function at 0x4b4dc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x563080
push 0x50fad8
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x573054]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00415990
mov edx, esi
mov ecx, edi
call fcn.004b4ef0
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4b4e55
test bl, bl
jne 0x4b4ec4
cmp edi, 0x1a
jne 0x4b4ec4
mov ecx, esi
call fcn.00415990
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x430]
push eax
call fcn.004035e0
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004033d0
mov ecx, esi
call fcn.004058f0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret

Function at 0x4b6e80
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525904
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x573054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00403340
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00403340
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00403340
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00403340
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00403340
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b7780
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525b70
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x573054]
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.004058f0
test al, al
je 0x4b77bd
xor al, al
jmp 0x4b797b
push edi
call fcn.004b7610
add esp, 4
test al, al
je 0x4b77d1
mov al, 1
jmp 0x4b797b
push 0
mov ecx, edi
call fcn.00405910
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4b7820
lea ecx, [ebp - 0x28]
call fcn.00403340
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004d55f0
test al, al
je 0x4b7811
push 0
lea ecx, [ebp - 0x28]
call fcn.00405910
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004032a0
push edi
call fcn.004b7610
add esp, 4
test al, al
jne 0x4b77ca
mov ecx, edi
call fcn.00405900
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4b791c
mov ecx, edi
call fcn.00403360
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x4b785c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4b787f
mov eax, ebx
cmp ecx, 8
jb 0x4b7875
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4b790c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00408940
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004058f0
test al, al
jne 0x4b78fd
lea eax, [ebp - 0x28]
push eax
call fcn.004b73f0
add esp, 4
test al, al
jne 0x4b78fd
push 0
lea ecx, [ebp - 0x28]
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4b78fd
lea ecx, [ebp - 0x40]
call fcn.00403340
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004d55f0
test al, al
je 0x4b78f1
push 0
lea ecx, [ebp - 0x40]
call fcn.00405910
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004032a0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4b7850
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.004b73f0
add esp, 4
test al, al
jne 0x4b7972
push 0
mov ecx, edi
call fcn.00405910
push eax
call ebx
test eax, eax
jne 0x4b7972
lea ecx, [ebp - 0x40]
call fcn.00403340
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004d55f0
test al, al
je 0x4b7963
push 0
lea ecx, [ebp - 0x40]
call fcn.00405910
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004032a0
push edi
call fcn.004b7610
add esp, 4
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.0050f48d
mov esp, ebp
pop ebp
ret
Function at 0x4b8050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x573054]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00415990
push 0x412
lea eax, [esp + 8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4b80ac
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0050f48d
add esp, 0x418
ret
cmp eax, 0x208
jae 0x4b8094
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.004035e0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004033d0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0050f48d
add esp, 0x418
ret

Function at 0x4b89d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bee8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x573054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4b8a13
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x10]
call fcn.00403fa0
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409160
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4b8a8b
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 0x4b85b0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x4b8ab0
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x4b8a83
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004b8740
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409190
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
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 0x4b8ac8
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 0x4b8a72
mov bl, 1
jmp 0x4b8a8d
Function at 0x4bd1d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x573054]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0050f4b1
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
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 0x4bd22c
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.0050f48d
add esp, 0x120
ret
Function at 0x4c48b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x4c48e8
mov edx, dword [esp + 4]
test edx, edx
je 0x4c48e8
cmp dword [eax], 0xffffffff
je 0x4c48e8
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 0x4c48e8
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x4c4920
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x573054]
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 0x4c4983
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4c4983
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c495e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c4983
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.0050f48d
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0050f48d
add esp, 8
ret 4
Function at 0x4c7210
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52795b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4c7249
call fcn.004c73b0
cmp byte [0x5770ec], 0
jne 0x4c725c
mov eax, SysReAllocString
jmp 0x4c738c
mov eax, dword [esi]
test eax, eax
jne 0x4c72dc
push 8
call fcn.0050f4b1
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.0050f4b1
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c72cb
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4c737b
call fcn.004bdda0
test al, al
jne 0x4c7316
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004be340
test al, al
je 0x4c737b
mov ecx, dword [esi]
add ecx, 4
call fcn.004bd900
call fcn.004bdda0
test al, al
je 0x4c737b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.004032f0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004c7df0
mov ecx, eax
call fcn.004c7eb0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004032a0
test edi, edi
je 0x4c737b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c737b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4c737b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4c738a
mov dword [eax], SysReAllocString
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret 4