joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471e10
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x471e43
push 0x2e
push edi
call fcn.00477830
add esp, 8
test eax, eax
je 0x471e41
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x473220
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x47330e
push esi
mov esi, dword [ebp + 0x10]
push 8
mov dword [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [ebp - 0xc], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [ebp - 0xb], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [ebp - 0xa], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [ebp - 9], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [ebp - 8], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [ebp - 7], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov dword [ebp - 0x10], 8
mov byte [ebp - 6], al
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 5], cl
call fcn.00474890
add esp, 8
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x47331f
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [edi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x473870
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4738a5
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.00445ec0
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x20
jne 0x4738f3
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 8]
test eax, eax
je 0x473901
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x473911
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret
Function at 0x473970
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x47399d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x4739e8
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x4739ee
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x473a49
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x473a10
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x473a79
mov eax, dword [edi]
push 1
push 0x4ad9fc
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4ad9fd
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x473a51
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473a90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
call fcn.00445ec0
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x473bf2
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x473b10
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp - 8]
mov eax, dword [ebp + 0xc]
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp - 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x473b69
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp - 8], 1
jne 0x473b30
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x473b99
mov eax, dword [edi]
push 1
push 0x4ad9fc
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4ad9fd
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x473b71
push dword [ebp + 0x18]
call fcn.00445ec0
mov ecx, dword [esi]
push eax
push dword [ebp + 0x14]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [ebp + 0x1c]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x473bc1
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x4c5004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x4748dd
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4748a2
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4748f0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x474933
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push dword [ebp + 0x10]
call fcn.00445ec0
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], 0x10
jne 0x474981
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 8]
test eax, eax
je 0x47498f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47499f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret

Function at 0x476fc3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x477002
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x477002
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x477002
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x477002
cmp dword [ecx + 0x74], 0xe
jbe 0x477002
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x493af0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00493966

Function at 0x497662
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004972df

Function at 0x49d6d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49d6fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49d6fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40375d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40375d
test al, 0x10
jne 0x40375d
push edi
call fcn.00403650
test al, al
jne 0x403764
call fcn.00409750
mov esi, eax
sub esp, 0x10
mov ecx, esi
call fcn.0040a170
push edi
mov ecx, esi
call fcn.00409da0
xor eax, eax
pop edi
pop esi
ret 4
push 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
pop edi
pop esi
ret 4

Function at 0x403780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
xor eax, eax
mov esi, ecx
push 0x40e
push eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x12]
push eax
call fcn.00416110
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4037ee
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x403806
mov eax, dword [esp + 4]
test eax, eax
je 0x4037ee
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0040e73a
add esp, 0x418
ret
cmp word [esp + 8], 0
jne 0x403812
xor ecx, ecx
jmp 0x40382f
lea ecx, [esp + 8]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403820
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00402c40
mov eax, dword [esp + 4]
test eax, eax
je 0x40384b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0040e73a
add esp, 0x418
ret
Function at 0x403db0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41ba08
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push esi
push edi
mov eax, dword [0x426008]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x94]
lea eax, [esp + 0x28]
push eax
call fcn.00403d00
mov dword [esp + 0x8c], 0
cmp dword [esp + 0x38], 0
je 0x403f20
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x403f20
mov esi, dword [esp + 0x78]
test esi, esi
je 0x403f20
cmp esi, 0x2800
ja 0x403f20
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
push 0
cmovae eax, dword [esp + 0x2c]
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x403f20
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x8c], 1
lea eax, [esp + 0x17]
push eax
lea eax, [esi + 8]
mov byte [esp + 0x1b], 0
push eax
lea ecx, [esp + 0x20]
call fcn.00405340
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push esi
mov esi, dword [esp + 0x24]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403f08
push esi
lea ecx, [esp + 0x44]
call fcn.00402a90
mov byte [esp + 0x8c], 2
lea eax, [esp + 0x40]
push eax
call fcn.00403bb0
push ebx
push ecx
lea eax, [esp + 0x48]
push eax
call fcn.00403a00
mov byte [esp + 0x8c], 1
lea ecx, [esp + 0x40]
call fcn.00402b30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x8c], 0
lea ecx, [esp + 0x18]
call fcn.00405310
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x403f3e
push dword [esp + 0x28]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0040e73a
add esp, 0x80
ret 4
Function at 0x406b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41bee0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x426008]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00402d50
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x406bf0
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x406bf0
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x406bf0
lea eax, [ecx - 2]
push eax
push ecx
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00406650
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402af0
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402b30
lea ecx, [esp + 0x24]
call fcn.004065e0
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x406c2f
push dword [esp + 0x24]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040e73a
add esp, 0x44
ret
Function at 0x406c70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41bee0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov eax, dword [0x426008]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00402d50
mov dword [esp + 0x48], 0
mov ecx, dword [esp + 0x34]
cmp ecx, 2
jb 0x406d40
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
cmp edx, 8
cmovae eax, dword [esp + 0x24]
cmp word [eax], 0x22
jne 0x406d40
cmp edx, 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x406d40
lea eax, [ecx - 2]
push eax
push ecx
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.00406650
add esp, 8
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x24]
push eax
call fcn.00402af0
mov byte [esp + 0x48], 0
lea ecx, [esp + 0xc]
call fcn.00402b30
lea ecx, [esp + 0x24]
call fcn.004065e0
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406d6b
test al, 0x10
jne 0x406d6b
mov bl, 1
jmp 0x406d6d
xor bl, bl
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x406d88
push dword [esp + 0x24]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
mov al, bl
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040e73a
add esp, 0x44
ret
Function at 0x4073f0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x41c068
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push esi
push edi
mov eax, dword [0x426008]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [edi + 0x1054], 7
mov dword [edi + 0x1050], 0
mov dword [esp + 0x44], edi
mov word [edi + 0x1040], ax
mov dword [esp + 0x170], eax
mov dword [edi + 0x106c], 7
mov dword [edi + 0x1068], eax
mov word [edi + 0x1058], ax
mov byte [esp + 0x170], 1
mov dword [edi + 0x1084], 7
mov dword [edi + 0x1080], eax
mov word [edi + 0x1070], ax
mov byte [esp + 0x170], 2
mov dword [edi + 0x108c], eax
mov dword [edi + 0x1090], eax
mov dword [edi + 0x1094], eax
mov byte [esp + 0x170], 3
mov dword [edi + 0x1098], eax
mov dword [edi + 0x109c], eax
mov dword [edi + 0x10a0], eax
mov byte [esp + 0x170], 4
lea esi, [edi + 0x10a4]
mov dword [esp + 0x48], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0040ad50
mov dword [esi], eax
mov byte [esp + 0x170], 9
push 0x410
push 0
push edi
mov dword [edi + 0x1034], 0
mov dword [edi + 0x1038], 0
mov dword [edi + 0x103c], 0
call fcn.00416110
push 0x410
lea eax, [edi + 0x410]
push 0
push eax
call fcn.00416110
push 0x400
lea eax, [edi + 0x820]
push 0
push eax
call fcn.00416110
push 0x410
lea eax, [edi + 0xc20]
push 0
push eax
call fcn.00416110
push 0x110
lea eax, [esp + 0x84]
mov dword [edi + 0x1030], 0x1000000
push 0
push eax
mov byte [edi + 0x1088], 0
mov dword [esp + 0x88], 0x114
call fcn.00416110
add esp, 0x3c
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407598
cmp dword [esp + 0x50], 6
jb 0x407598
mov byte [edi + 0x1032], 1
push 0xe
xor eax, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
push str._nNwmteRQ
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00402c40
mov byte [esp + 0x170], 0xa
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x108c]
call fcn.004050f0
mov byte [esp + 0x170], 9
cmp dword [esp + 0x28], 8
jb 0x407602
push dword [esp + 0x14]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
push 8
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], eax
push 0x422b70
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
call fcn.00402c40
mov byte [esp + 0x170], 0xb
lea eax, [esp + 0x2c]
push eax
lea ecx, [edi + 0x108c]
call fcn.004050f0
mov byte [esp + 0x170], 9
cmp dword [esp + 0x40], 8
jb 0x407675
push dword [esp + 0x2c]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
mov dword [esp + 0x170], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.0040e73a
add esp, 0x164
ret