joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee310
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x52f068]
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 esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x46a0cd
cmp byte [eax + 0x54], 0
je 0x46a0cd
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.004042b0
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00479130
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00402870
cmp dword [ebp - 0x18], 0x10
lea edi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [eax + 0x10]
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x46a00a
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46a054
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x46a088
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46a07e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a0eb
push edx
push ecx
call fcn.004b909a
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x46a0bf
cmp byte [ebp - 0x34], 0
je 0x46a0bf
mov eax, dword [esi]
test eax, eax
je 0x46a0bb
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
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.004b9059
mov esp, ebp
pop ebp
ret 4
call fcn.004bec39
int3
Function at 0x46b370
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x52f068]
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.004bbb00
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46b4b2
cmp dword [esi + 4], 6
push edi
ja 0x46b3c6
jne 0x46b44e
cmp dword [esi + 8], 2
jb 0x46b44e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x46b44e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46b44e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46b44e
movups xmm0, xmmword [0x50fb60]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x50fb70]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x46b44e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46b44e
cmp word [edi + 2], ax
jbe 0x46b44e
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 0x46b499
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x46b499
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.004b9059
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004b9059
add esp, 0x140
ret

Function at 0x46ba60
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee4b4
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x52f068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00402850
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402850
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402850
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402850
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.00402850
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 0x46c8a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52f068]
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.00405520
test al, al
je 0x46c8dd
xor al, al
jmp 0x46ca95
push edi
call fcn.0046c2d0
add esp, 4
test al, al
je 0x46c8f1
mov al, 1
jmp 0x46ca95
push 0
mov ecx, edi
call fcn.004027b0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x46c940
lea ecx, [ebp - 0x28]
call fcn.00402850
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0048ffd0
test al, al
je 0x46c931
push 0
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
push edi
call fcn.0046c2d0
add esp, 4
test al, al
jne 0x46c8ea
mov ecx, edi
call fcn.00404030
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x46ca38
mov ecx, edi
call fcn.00402870
mov ebx, eax
nop word [eax + eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x46c97c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x46c99f
mov eax, ebx
cmp ecx, 8
jb 0x46c995
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x46ca28
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00409570
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405520
test al, al
jne 0x46ca19
lea ecx, [ebp - 0x28]
call fcn.0046c0c0
test al, al
jne 0x46ca19
push 0
lea ecx, [ebp - 0x28]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46ca19
lea ecx, [ebp - 0x40]
call fcn.00402850
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0048ffd0
test al, al
je 0x46ca0d
push 0
lea ecx, [ebp - 0x40]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004027f0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x46c970
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.0046c0c0
test al, al
jne 0x46ca8c
push 0
mov ecx, edi
call fcn.004027b0
push eax
call ebx
test eax, eax
jne 0x46ca8c
lea ecx, [ebp - 0x40]
call fcn.00402850
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0048ffd0
test al, al
je 0x46ca7d
push 0
lea ecx, [ebp - 0x40]
call fcn.004027b0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004027f0
push edi
call fcn.0046c2d0
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.004b9059
mov esp, ebp
pop ebp
ret
Function at 0x472130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x525f00
push 0x4bae00
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x52f068]
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.00406300
mov ecx, edi
call fcn.00472250
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4721c3
test bl, bl
jne 0x472232
cmp edi, 0x1a
jne 0x472232
mov ecx, esi
call fcn.00406300
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.004bbb00
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.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.004028e0
mov ecx, esi
call fcn.00405520
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.004b9059
mov esp, ebp
pop ebp
ret
Function at 0x4724e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef2f1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x52f068]
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, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 0x30], 0
call fcn.00402870
mov ebx, eax
cmp dword [eax + 0x14], 8
jb 0x47252d
mov ebx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], 0x25
test eax, eax
je 0x472618
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
call fcn.00409d00
add esp, 0xc
test eax, eax
je 0x472618
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x472618
push edi
lea ecx, [ebp - 0x2c]
call fcn.00405530
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4725ab
push edi
mov ecx, esi
call fcn.00405530
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x47262e
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b97b5
mov edx, dword [ebp - 0x14]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4725ff
cmp eax, dword [ebp - 0x14]
ja 0x4725ff
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.004028e0
push ebx
call fcn.004b97b0
add esp, 4
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404060
jmp 0x472593
push edi
mov ecx, esi
call fcn.00405530
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
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.004b9059
mov esp, ebp
pop ebp
ret
Function at 0x473080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x52f068]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.00406300
push 0x412
lea eax, [esp + 8]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4730dc
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004b9059
add esp, 0x418
ret
cmp eax, 0x208
jae 0x4730c4
xor eax, eax
mov word [esp + 0x414], ax
lea eax, [esp + 4]
push eax
call fcn.00402af0
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 8]
push eax
call fcn.004028e0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.004b9059
add esp, 0x418
ret

Function at 0x473610
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x52f068]
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 0x473656
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.004900a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x47367f
lea ebx, [esi + 8]
jmp 0x473681
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00405520
test al, al
jne 0x473697
mov ecx, dword [ebp - 0x18]
call fcn.004027b0
jmp 0x473699
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x4736ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4736ba
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x4736e3
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 0x4736f8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004b909a
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.004b9059
mov esp, ebp
pop ebp
ret 4
Function at 0x473730
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x52f068]
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 0x473773
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.00490160
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4737a0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x4737a7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00405520
test al, al
jne 0x4737bb
mov ecx, ebx
call fcn.004027b0
jmp 0x4737bd
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 0x47380e
call ecx
cmp eax, 5
jne 0x473808
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00405520
test al, al
jne 0x4737f8
mov ecx, ebx
call fcn.004027b0
jmp 0x4737fa
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 0x47382c
call ecx
cmp eax, 0xb7
jne 0x473821
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.004866e0
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x473852
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 0x473867
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004b909a
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.004b9059
mov esp, ebp
pop ebp
ret 4
Function at 0x47a000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x526e80
push 0x4bae00
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x52f068]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.00479df0
cmp byte [edi + 0x30], bl
je 0x47a0ac
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47a0d4
test al, 0x10
jne 0x47a0d4
call fcn.0047a870
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.0047a950
test al, al
je 0x47a0d4
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x47a0d8
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x47a144
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47a10f
mov dword [edi + 0x34], esi
push edi
push 0x479cf0
push 0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x47a137
test esi, esi
je 0x47a142
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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.004b9059
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47a170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x526ea0
push 0x4bae00
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x52f068]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x440], eax
xor bl, bl
mov byte [ebp - 0x439], bl
push 0x412
push 0
lea eax, [ebp - 0x438]
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
mov ecx, edi
call fcn.00479df0
cmp byte [edi + 0x30], bl
je 0x47a21c
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47a244
test al, 0x10
jne 0x47a244
call fcn.0047a870
push ecx
lea ecx, [ebp - 0x438]
push ecx
mov ecx, eax
call fcn.0047a950
test al, al
je 0x47a244
mov dword [edi + 0x34], 0
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x47a248
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x47a2b7
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47a282
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x479cf0
push 0
push dword [ebp - 0x440]
push dword [ebp - 0x444]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x439], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x47a2aa
test esi, esi
je 0x47a2b5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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.004b9059
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47d820
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0c8b
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x52f068]
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 0x47d859
call fcn.0047d9c0
cmp byte [0x531aec], 0
jne 0x47d86c
mov eax, SysReAllocString
jmp 0x47d99c
mov eax, dword [esi]
test eax, eax
jne 0x47d8ec
push 8
call fcn.004b906a
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.004b906a
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.004bbb00
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 0x47d8db
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 0x47d98b
call fcn.004859d0
test al, al
jne 0x47d926
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.00485f10
test al, al
je 0x47d98b
mov ecx, dword [esi]
add ecx, 4
call fcn.00485530
call fcn.004859d0
test al, al
je 0x47d98b
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00402800
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.0047e920
mov ecx, eax
call fcn.0047e9e0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004027f0
test edi, edi
je 0x47d98b
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47d98b
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x47d98b
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x47d99a
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.004b9059
mov esp, ebp
pop ebp
ret 4
Function at 0x47db80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0d46
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x52f068]
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 edi, dword [ebp + 8]
lea ecx, [ebp - 0x654]
mov ebx, dword [ebp + 0xc]
call fcn.00402850
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x63c]
call fcn.00403800
push 0x531b0c
call fcn.00404230
mov byte [ebp - 4], 1
mov ecx, 0x531b1c
call fcn.00405520
test al, al
jne 0x47dc25
mov ecx, 0x531b1c
call fcn.00402870
lea ecx, [ebp - 0x654]
cmp ecx, eax
je 0x47dce9
mov ecx, 0x531b1c
call fcn.00402870
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x47dc1c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x47dcde
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x47dd7c
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x47dcc7
test eax, eax
je 0x47dcc7
add eax, eax
cmp eax, 0x412
jae 0x47ddbf
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x47dcdd
lea eax, [ebp - 0x220]
push eax
call fcn.00402af0
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x654]
call fcn.004028e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.00404260
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.0047db10
test al, al
je 0x47dd10
mov bl, 1
jmp 0x47dd8d
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x47dd8b
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.00402af0
add esp, 4
lea ecx, [ebp - 0x654]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004028e0
push ebx
push edi
lea eax, [ebp - 0x654]
mov ecx, esi
push eax
call fcn.0047db10
mov bl, al
jmp 0x47dd8d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.00404260
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x654]
call fcn.004027f0
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.004b9059
mov esp, ebp
pop ebp
ret 8
call fcn.004b96d6
int3