joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40b8bb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40b8df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40b8fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x40fae5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x423e50
cmp edx, dword [eax]
je 0x40fb07
add eax, 8
inc ecx
cmp eax, 0x423ee0
jl 0x40faf8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x423e50]
jne 0x40fc35
mov eax, dword [0x428a44]
cmp eax, 1
je 0x40fc0f
test eax, eax
jne 0x40fb38
cmp dword [0x423634], 1
je 0x40fc0f
cmp edx, 0xfc
je 0x40fc35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fb6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004105c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40fbb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ee14
push edi
call fcn.0040bb10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004105c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004105d0
lea eax, [ebp - 0xa0]
push 0x41edf4
push eax
call fcn.004105d0
push dword [esi + 0x423e54]
lea eax, [ebp - 0xa0]
push eax
call fcn.004105d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412edc
add esp, 0x2c
pop edi
jmp 0x40fc35
lea eax, [ebp + 8]
lea esi, [esi + 0x423e54]
push 0
push eax
push dword [esi]
call fcn.0040e460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x417ec4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x417f06
call fcn.0041ae62
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417f06
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x417efd
xor eax, eax
jmp 0x417f0e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00417f14
pop edi
pop esi
pop ebx
ret 4

Function at 0x41b609
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41b637
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41b655
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041b56f
jmp 0x41b655
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41b655
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041b56f
test edi, edi
mov eax, edi
jne 0x41b63f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x440f00
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x441420
test edx, edx
je 0x441420
call fcn.00440f17
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x441460
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00440f00
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x4414d1
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x441496
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x441de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp ebp, 0x80
je 0x441e64
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp ebp, 0xc0
je 0x441e3c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
jmp 0x441e44
mov ecx, eax
mov edx, ebx
not ecx
not edx
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
nop
call fcn.00441e69

Function at 0x44c040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
push 0
or eax, 0x20006
push eax
push 0
push 0
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x44c0a7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push eax
push 0x7f9194
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x44c0be
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44c0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ecx + 0x20c]
xor bl, bl
or eax, 1
mov dword [ebp - 8], 0
push eax
push 0
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44c12a
mov eax, dword [ebp + 8]
test eax, eax
je 0x44c128
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
push dword [ebp + 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44c12a
mov bl, 1
mov eax, dword [ebp - 4]
test eax, eax
je 0x44c138
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44c640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
test eax, eax
jne 0x44c67c
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44c6db
mov eax, dword [esi + 4]
test eax, eax
je 0x44c6a7
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x44c6a7
push dword [esi + 4]
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x44c6c5
push eax
push eax
push esi
push 0x44c7f0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
je 0x44c6db
push dword [ebp - 4]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 8]
test eax, eax
je 0x44c6ec
push eax
call edi
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44c6fd
push ecx
call edi
mov dword [esi + 4], 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44cda0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73a2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x44cdd8
xor al, al
jmp 0x44cefb
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0x7e54d0
push eax
call fcn.00715821
add esp, 8
test eax, eax
jne 0x44ce3b
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ce20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0044bdc0
jmp 0x44ce79
push 8
push 0x7e54dc
lea ecx, [ebp - 0x40]
call fcn.0044bdc0
push 0xa
push str.__select_
lea ecx, [ebp - 0x28]
call fcn.0044bdc0
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44ce60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00460700
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x70], 0x7e5508
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x44cee7
cmp dword [ebp - 0x5c], 0x20
jle 0x44cee7
mov bl, 1
jmp 0x44cee9
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.0044bf40
lea ecx, [ebp - 0x40]
call fcn.0044bf40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret 8
Function at 0x45cb30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73b6b1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x300
call fcn.006f4f3d
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
lea edi, [ebx + 0x10]
mov dword [ebx + 4], 1
mov dword [ebx + 8], 1
mov dword [ebx], vtable.std::_Ref_count_obj_class_CXZLoginMgr_.0
mov dword [ebp - 0x18], edi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi], vtable.CXZLoginMgr.0
mov dword [edi + 0x10], 1
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.004b9280
lea eax, [edi + 0x1bc]
mov dword [edi + 0x1b0], 0
push 2
push eax
mov dword [edi + 0x1b4], 0
mov dword [edi + 0x1b8], 0
call fcn.00517b28
add esp, 8
mov byte [ebp - 4], 4
lea esi, [edi + 0x1f0]
mov dword [edi + 0x1ec], 0
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00466a90
mov dword [esi], eax
mov dword [edi + 0x21c], 0
mov dword [edi + 0x220], 0
mov dword [edi + 0x224], 0
mov dword [edi + 0x228], 0
mov dword [edi + 0x22c], 0
mov dword [edi + 0x230], 0
mov dword [edi + 0x234], 0
mov word [edi + 0x238], 0
mov byte [edi + 0x23a], 0
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x254], 0
mov dword [edi + 0x258], 0xf
mov byte [edi + 0x244], 0
mov dword [edi + 0x26c], 0
mov dword [edi + 0x270], 0xf
mov byte [edi + 0x25c], 0
mov dword [edi + 0x284], 0
mov dword [edi + 0x288], 0xf
mov byte [edi + 0x274], 0
mov dword [edi + 0x29c], 0
mov dword [edi + 0x2a0], 0xf
mov byte [edi + 0x28c], 0
mov dword [edi + 0x2a4], 0
mov dword [edi + 0x2b8], 0
mov dword [edi + 0x2bc], 0xf
mov byte [edi + 0x2a8], 0
mov dword [edi + 0x2c4], 0
mov dword [edi + 0x2c8], 0
mov dword [edi + 0x2dc], 0
mov dword [edi + 0x2e0], 0xf
mov byte [edi + 0x2cc], 0
mov dword [edi + 0x2e4], 0
mov dword [edi + 0x2e8], 0
mov dword [eax], edi
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4610c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73bb98
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 0x14]
mov dword [esi], vtable.CBaseThread.0
push eax
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0x3e8
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x30]
sub esp, 8
mov dword [esi], vtable.CCheckBase.0
mov word [esi + 0x2c], 0
call fcn.004616b0
mov dword [esi + 0x4c], 0
mov eax, esi
mov dword [esi + 0x50], 0xf
mov byte [esi + 0x3c], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xf
mov byte [esi + 0x54], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73bc98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x461bd3
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044bdc0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp esi, 2
jb 0x461c4a
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x22
jne 0x461c4a
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x22
jne 0x461c4a
lea eax, [esi - 2]
push eax
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00463630
push eax
lea ecx, [ebp - 0x28]
call fcn.004608a0
lea ecx, [ebp - 0x40]
call fcn.0044bf40
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x461c67
test al, 0x10
jne 0x461c67
mov bl, 1
jmp 0x461c69
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.0044bf40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x461c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73bc98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x461cd3
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044bdc0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp esi, 2
jb 0x461d4a
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x22
jne 0x461d4a
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x22
jne 0x461d4a
lea eax, [esi - 2]
push eax
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00463630
push eax
lea ecx, [ebp - 0x28]
call fcn.004608a0
lea ecx, [ebp - 0x40]
call fcn.0044bf40
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x461d67
test al, 0x10
je 0x461d67
mov bl, 1
jmp 0x461d69
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.0044bf40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73bc98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x461dd3
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044bdc0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp esi, 2
jb 0x461e4a
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x22
jne 0x461e4a
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax + esi*2 - 2], 0x22
jne 0x461e4a
lea eax, [esi - 2]
push eax
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00463630
push eax
lea ecx, [ebp - 0x28]
call fcn.004608a0
lea ecx, [ebp - 0x40]
call fcn.0044bf40
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x28]
setne bl
call fcn.0044bf40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x461e90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73bcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x8312b0]
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 dword [ebp - 0x74], edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x58], 0
xor bl, bl
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x46202d
push eax
call fcn.006f4f6d
mov esi, eax
add esp, 4
test esi, esi
je 0x46202d
push esi
push dword [ebp - 0x6c]
push dword [ebp - 0x78]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x461f22
push esi
call fcn.006f4f76
add esp, 4
jmp 0x46202d
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x7e6d58
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0070dcd0
mov ecx, dword [ebp - 0x70]
add esp, 0xc
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x50]
push 0x7e6d5c
push eax
call fcn.004634a0
lea ecx, [ebp - 0x50]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461f74
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0044bdc0
push esi
call fcn.006f4f76
mov esi, dword [ebp - 0x74]
sub esp, 0x14
mov edx, esp
mov dword [ebp - 0x70], esp
mov ecx, esi
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
lea edi, [ecx + 2]
mov word [edx], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461fc0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0044bdc0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae edx, dword [ebp - 0x68]
sub esp, 0x18
mov esi, esp
mov ecx, edx
xor eax, eax
mov dword [esi + 0x10], 0
lea edi, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462004
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0044bdc0
mov byte [ebp - 4], 0
call fcn.00462230
add esp, 0x30
test eax, eax
setns bl
lea ecx, [ebp - 0x68]
call fcn.0044bf40
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.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x4623e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push ebx
mov edi, edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x462429
push eax
call fcn.006f4f6d
mov esi, eax
add esp, 4
test esi, esi
je 0x462429
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x462432
push esi
call fcn.006f4f76
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x7e6d7c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0xc]
push esi
movzx eax, word [ecx + 0x12]
mov dword [edi], eax
movzx eax, word [ecx + 0x10]
mov dword [edi + 4], eax
movzx eax, word [ecx + 0x16]
mov dword [edi + 8], eax
movzx eax, word [ecx + 0x14]
mov dword [edi + 0xc], eax
call fcn.006f4f76
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret