joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.0046db30
push 0xffffffffffffffff
push 0x4866a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c0074]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
cmp dword [ebx + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x30], eax
je 0x402bc7
mov ecx, eax
call fcn.00402cc0
xor edi, edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x402ba0
mov dword [ebp - 0x10], 0x3fff
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00403020
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
mov eax, dword [ebp - 0x2c]
push edi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp dword [ebp - 0x20], 1
mov ebx, eax
jne 0x402bb0
test ebx, ebx
jne 0x402b89
mov edi, dword [ebp - 0x10]
call fcn.00403f70
push eax
push edi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403460
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
push esi
call fcn.00403990
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402da0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402b67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402b86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0046ce46
add esp, 4
mov dword [ebp - 0x14], 0
inc edi
mov dword [ebp - 0x1c], edi
test ebx, ebx
jne 0x402bcb
mov ebx, dword [ebp - 0x2c]
jmp 0x402a91
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0046ce46
add esp, 4
mov dword [ebp - 0x14], 0
xor al, al
jmp 0x402bd4
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.0046c8db
lea esp, [ebp + 0x8004]
pop ebp
ret 4
Function at 0x403780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486560
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4037c9
xor eax, eax
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 eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4037b5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403802
nop dword [eax]
cmp esi, edx
jae 0x4037b5
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4037f0
cmp esi, edx
jae 0x4037b5
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
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 0x404bf0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486aaa
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x404d42
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x404d4c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push ebx
push esi
push dword [0x4c104c]
mov dword [ebp - 0x14], 3
call fcn.004057e0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x404cb6
push 0
push esi
push dword [0x4c104c]
lea ecx, [ebp - 0x10]
call fcn.004057e0
mov eax, dword [ebp - 0x10]
mov esi, dword [edi]
lea ebx, [eax - 0x10]
sub esi, 0x10
cmp ebx, esi
je 0x404d04
cmp dword [esi + 0xc], 0
jl 0x404cf9
mov ecx, dword [ebx]
cmp ecx, dword [esi]
jne 0x404cf9
mov ecx, ebx
call fcn.00402480
mov dword [ebp - 0x18], eax
lea edx, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404cf2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [edi], eax
jmp 0x404d04
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.00403ae0
mov eax, 3
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x404d2e
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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 0x80004005
call fcn.004023a0
push 0x80004005
call fcn.004023a0
int3
Function at 0x406dd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486f58
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x4a4fc8
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x406e2f
xor edi, edi
or esi, eax
jmp 0x406e3a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x4a4fc8
test esi, esi
je 0x406e5a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409690
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4874a1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1c], edi
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 0x14], 0x104
call fcn.00403310
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 0xc]
push 0x104
push esi
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov edi, eax
cmp edi, 0x104
jbe 0x40974c
push esi
mov dword [ebp - 0x14], edi
call fcn.0046ce46
add esp, 4
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push edi
call fcn.00403310
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
push edi
push esi
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov edi, eax
test edi, edi
je 0x40976d
cmp edi, dword [ebp - 0x14]
ja 0x40976d
call fcn.00403f70
push eax
lea eax, [edi - 1]
mov ecx, ebx
push eax
push esi
call fcn.00403460
mov byte [ebp - 4], 1
jmp 0x409786
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x4097b5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
push esi
call fcn.0046ce46
mov eax, ebx
mov dword [ebp - 0x10], 0
add esp, 4
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 0x80004005
call fcn.004023a0
int3
Function at 0x409880
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x4874d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c0074]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov byte [ebp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], 0x4a4fc8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x4098fe
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0x4a4fc8
push eax
jmp 0x409955
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x409942
test eax, eax
je 0x409942
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 0x10000
call fcn.00403020
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x409987
mov byte [ebp - 4], 0
push esi
call fcn.0046ce46
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4a4fc8
test edi, edi
je 0x409962
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.0046c8db
lea esp, [ebp + 0x94]
pop ebp
ret
xor ebx, ebx
mov dword [ebp], 0x67452301
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
mov byte [ebp + 0x68], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4099fa
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4099fa
mov edx, dword [ebp - 0x28]
lea eax, [ecx + ebx]
cmp eax, edx
jbe 0x4099e7
mov ecx, edx
mov byte [ebp - 0xd], 1
sub ecx, ebx
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.0040b1f0
add ebx, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
je 0x4099b4
lea ecx, [ebp]
call fcn.0040b2c0
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp]
call fcn.0040b390
mov bl, al
mov byte [ebp - 4], 0
push esi
call fcn.0046ce46
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4a4fc8
test edi, edi
je 0x409a44
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
test bl, bl
je 0x409962
mov bl, byte [ebp + 0x6c]
test bl, bl
je 0x409a8c
lea edi, [ebp + 0x6c]
mov eax, dword [ebp - 0x24]
movzx esi, word [eax]
mov eax, esi
lea ecx, [eax - 0x41]
add eax, 0x20
movzx edx, ax
cmp cx, 5
mov eax, esi
cmova edx, eax
movsx eax, bl
movzx ecx, dx
cmp eax, ecx
jne 0x409962
mov al, byte [edi + 1]
inc edi
add dword [ebp - 0x24], 2
mov bl, al
test al, al
jne 0x409a56
mov al, 1
jmp 0x409964
Function at 0x409b10
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x487521
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4c0074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x409baf
call fcn.00403f70
test eax, eax
je 0x409be4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0046c8db
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x409bc2
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x409bdf
xor ecx, ecx
mov word [ebp + eax], cx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00403990
jmp 0x409b7e
call fcn.0046cf83
push 0x80004005
call fcn.004023a0
int3

Function at 0x409e10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487640
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x409ea0
call fcn.0040a330
test al, al
jne 0x409ea0
push 0x4a4cbc
lea ecx, [ebp - 0x10]
call fcn.00403990
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00402280
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409eae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409eae
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x409eb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409ed0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487678
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x409fbd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00409fd0
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
test al, al
jne 0x409f35
xor bl, bl
jmp 0x409f8d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x409f88
cmp dword [edi + 0xc], 0
jl 0x409f7d
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x409f7d
call fcn.00402480
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409f76
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x409f88
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.00403ae0
mov bl, 1
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x409fa9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80004005
call fcn.004023a0
int3

Function at 0x409fd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4c0074]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
lea eax, [esp + 0x210]
mov edi, edx
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a058
lea eax, [esp + 8]
push eax
push 0
push dword [esi]
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40a058
lea edx, [esp + 8]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a023
sub edx, esi
lea eax, [esp + 8]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00403ae0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0046c8db
add esp, 0x414
ret
mov ecx, dword [esp + 0x418]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0046c8db
add esp, 0x414
ret
Function at 0x40a080
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4876b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00403f70
mov ecx, eax
test ecx, ecx
je 0x40a178
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00409ed0
mov esi, dword [ebp - 0x10]
or edi, 0xffffffff
test al, al
je 0x40a146
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a146
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x40a13f
cmp dword [edi + 0xc], 0
jl 0x40a134
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40a134
call fcn.00402480
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a128
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
or edi, 0xffffffff
mov dword [ebx], eax
mov bl, 1
jmp 0x40a148
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.00403ae0
mov bl, 1
or edi, 0xffffffff
jmp 0x40a148
xor bl, bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40a164
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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
push 0x80004005
call fcn.004023a0
int3
Function at 0x40ab60
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487847
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x4c0074]
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 edi, dword [ebp + 8]
mov dword [esi], 0
call fcn.0041cb60
mov ebx, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4c2518]
cmp eax, dword [ecx + 4]
jle 0x40abf7
push 0x4c2518
call fcn.0046cacc
add esp, 4
cmp dword [0x4c2518], 0xffffffff
jne 0x40abf7
mov dword [ebp - 4], 0
sub esp, 0x10
mov ecx, 0x4c2520
push 0
push 0xa
call fcn.0041cb00
mov dword [ebp - 4], 0xffffffff
push 0x4c2518
call fcn.0046ca82
add esp, 4
mov eax, dword [ebx]
cmp eax, dword [0x4c2520]
jae 0x40ac05
xor al, al
jmp 0x40ac3a
ja 0x40ac38
mov eax, dword [ebx + 4]
cmp eax, dword [0x4c2524]
jae 0x40ac16
xor al, al
jmp 0x40ac3a
ja 0x40ac38
mov eax, dword [ebx + 0xc]
cmp eax, dword [0x4c252c]
jae 0x40ac27
xor al, al
jmp 0x40ac3a
ja 0x40ac38
mov eax, dword [ebx + 8]
cmp eax, dword [0x4c2528]
jae 0x40ac38
xor al, al
jmp 0x40ac3a
mov al, 1
test al, al
je 0x40adb3
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x40ac6a
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x40ac60
xor edx, edx
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], dx
je 0x40ac92
nop dword [eax + eax]
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x40ac80
cmp ecx, edx
jb 0x40adb3
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.0040b0a0
mov ecx, eax
test ecx, ecx
je 0x40acc7
nop word [eax + eax]
mov ax, word [edi + edx*2]
cmp ax, word [ebp + edx*2 - 0x21c]
jne 0x40adb3
inc edx
cmp edx, ecx
jb 0x40acb0
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0046ea50
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.0046ea50
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
push 0
push 0x4a5128
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x62c]
mov ecx, esi
push eax
call fcn.0040ae30
mov dword [ebp - 0x634], 0
mov byte [ebp - 0x630], 0
mov dword [ebp - 4], 1
call fcn.0041d4d0
mov eax, dword [0x4c1f7c]
test eax, eax
je 0x40ad64
lea ecx, [ebp - 0x634]
push ecx
call eax
mov byte [ebp - 0x630], 1
push 0
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [esi + 4], al
je 0x40ad82
push edi
mov ecx, esi
call fcn.0040ae30
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x630], 0
je 0x40adbf
call fcn.0041d4d0
mov ecx, dword [0x4c1f78]
test ecx, ecx
je 0x40adbf
lea eax, [ebp - 0x634]
push eax
call ecx
mov byte [ebp - 0x630], 0
jmp 0x40adbf
push edi
mov ecx, esi
call fcn.0040ae30
mov byte [esi + 4], 0
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 - 0x14]
xor ecx, ebp
call fcn.0046c8db
mov esp, ebp
pop ebp
ret 4
Function at 0x40af90
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487880
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040ab60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40b04e
push eax
lea ecx, [ebp - 0x14]
call fcn.00403020
mov esi, dword [ebp - 0x14]
test al, al
jne 0x40b001
mov edi, 8
jmp 0x40b056
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40b04e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4a5124
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40b056
cmp dword [ebp - 0x24], 0
je 0x40b056
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x40b040
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40b056
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x40b056
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x40b067
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0046ce46
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0046ce46
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret