joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4890f0
Capabilities:
Create thread
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b61e0
push 0x51ddb0
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5c7128]
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 - 0x44c], edx
mov dword [ebp - 0x450], ecx
xor ebx, ebx
mov dword [ebp - 0x448], ebx
xor esi, esi
mov dword [ebp - 0x454], esi
xor edi, edi
mov dword [ebp - 0x458], edi
mov dword [ebp - 4], ebx
push 0x5a2d54
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x489259
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
je 0x489259
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x454], esi
test esi, esi
je 0x489259
mov dword [ebp - 0x444], 0x428
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x489201
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4891f9
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4891f9
lea eax, [ebp - 0x444]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x4891b7
mov eax, dword [ebp - 0x428]
jmp 0x489203
xor eax, eax
test eax, eax
jne 0x489211
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x489259
push 0
push 0
push eax
push dword [ebp - 0x45c]
push 0
push 0
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
mov dword [ebp - 0x458], edi
test edi, edi
je 0x489259
mov eax, dword [ebp + 8]
test eax, eax
jne 0x489244
lea ebx, [eax + 1]
jmp 0x489253
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
test eax, eax
sete bl
mov dword [ebp - 0x448], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0048927f
test ebx, ebx
je 0x48929c
xor eax, eax
jmp 0x4892ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4892ae
movzx eax, ax
or eax, 0x80070000
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.004f598f
mov esp, ebp
pop ebp
ret
Function at 0x489320
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5c7128]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x489390
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f598f
mov esp, ebp
pop ebp
ret
Function at 0x48c690
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5c7128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x48c7f7
cmp dword [ebp - 0x10], 0
je 0x48c7f7
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48c6ff
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
test edx, edx
jns 0x48c722
push 0x80070057
call fcn.004079f0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x48c73f
push edx
lea ecx, [ebp - 0x14]
call fcn.00407460
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push dword [esi - 8]
push esi
test eax, eax
jne 0x48c7c4
call fcn.0053732e
add esp, 8
test eax, eax
js 0x48c718
cmp eax, dword [esi - 8]
jg 0x48c718
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48c787
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48c816
mov ecx, dword [esi]
push esi
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
call fcn.0053732e
add esp, 8
test eax, eax
js 0x48c718
cmp eax, dword [esi - 8]
jg 0x48c718
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.00406e20
add esp, 4
add eax, 0x10
jmp 0x48c792
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x48c80c
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
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
Function at 0x48c950
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578c40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5c7128]
xor eax, ebp
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 - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
push 0
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x48ca01
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x48ca01
push eax
lea ecx, [ebp - 0x24]
call fcn.0048d8f0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push 0
push 0
push ecx
push dword [ebp - 0x24]
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov ecx, esi
test eax, eax
jne 0x48c9f6
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call fcn.0048d940
jmp 0x48ca2a
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.0045d8a0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48ca54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48e2c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x48e2f1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x48e2e0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x492a20
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x492bf6
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x492bf5
cmp eax, 0x29
jne 0x492a58
cmp dword [esi + 0x10], 0
jne 0x492bf5
test dword [esi + 0x50], 0x10000000
je 0x492c01
cmp eax, 0x2e
jne 0x492ab5
push 5
lea ecx, [esi + 0x24]
call fcn.00492e10
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x492aa9
cmp word [eax], 0x5c
jne 0x492aa6
add eax, 2
cmp eax, ecx
je 0x492aa6
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x492a92
movzx edx, word [eax]
cmp edx, 0x28
je 0x492aa4
cmp edx, 0x29
je 0x492aa4
test cl, 0x10
jne 0x492aa6
movzx ecx, word [eax]
cmp ecx, 0x7b
je 0x492aa4
cmp ecx, 0x7d
jne 0x492aa6
mov dword [esi], eax
add dword [esi], 2
mov ecx, esi
call fcn.00490600
jmp 0x492be2
cmp eax, 0x5c
jne 0x492b1c
mov ecx, esi
call fcn.004929d0
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x492ae8
cmp word [esi + 0x48], 0x62
jne 0x492ae8
push 4
lea ecx, [esi + 0x24]
call fcn.00492e10
mov ecx, esi
call fcn.004929d0
jmp 0x492be9
test eax, eax
je 0x492b10
cmp word [esi + 0x48], 0x42
jne 0x492b10
push 4
lea ecx, [esi + 0x24]
call fcn.00492e10
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.004929d0
jmp 0x492be9
mov ecx, esi
call fcn.00494090
jmp 0x492be2
cmp eax, 0x5b
jne 0x492b3e
mov ecx, esi
call fcn.004929d0
mov ecx, esi
call fcn.00494040
cmp dword [esi + 0x4c], 0x5d
je 0x492bdb
jmp 0x492bfa
cmp eax, 0x28
jne 0x492b6e
mov ecx, esi
call fcn.004929d0
mov ecx, esi
call fcn.00494160
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x492c01
mov ecx, esi
call fcn.004929d0
test bl, bl
je 0x492be9
jmp 0x492be2
cmp eax, 0x5e
jne 0x492b86
push 2
lea ecx, [esi + 0x24]
call fcn.00492e10
mov ecx, esi
call fcn.004929d0
jmp 0x492be9
cmp eax, 0x24
jne 0x492b9e
push 3
lea ecx, [esi + 0x24]
call fcn.00492e10
mov ecx, esi
call fcn.004929d0
jmp 0x492be9
cmp eax, 0x2a
je 0x492c0f
cmp eax, 0x2b
je 0x492c0f
cmp eax, 0x3f
je 0x492c0f
cmp eax, 0x7b
je 0x492c0f
cmp eax, 0x7d
jne 0x492bc0
test dword [esi + 0x50], 0x10000000
je 0x492c08
cmp eax, 0x5d
jne 0x492bce
test dword [esi + 0x50], 0x10000000
je 0x492bfa
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004943b0
mov ecx, esi
call fcn.004929d0
mov ecx, esi
call fcn.00494220
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x492a30
pop ebx
mov al, cl
pop esi
ret
push 4
call fcn.004dabd5
push 5
call fcn.004dabd5
push 6
call fcn.004dabd5
push 0xa
call fcn.004dabd5
int3
Function at 0x4991b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5c7128]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ce6cc], 0
jne 0x49947b
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0051a2e0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
push str.RtlGetVersion
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49924d
lea ecx, [ebp - 0x128]
push ecx
call eax
test eax, eax
je 0x49924d
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x49924d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f598f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 0x59a808
mov ecx, 0x5ce580
mov dword [0x5cdeac], 0
call fcn.00407740
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x4993dc
sub eax, 1
je 0x49938c
sub eax, 1
je 0x49928f
push 0x59a808
jmp 0x4993eb
mov eax, dword [ebp - 0x124]
cmp eax, 4
ja 0x4992ae
mov dword [0x5cdeac], 0x40
push 0x5a3150
jmp 0x4993eb
cmp eax, 5
jne 0x499307
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4992d1
mov dword [0x5cdeac], 0x80
push str.Windows_2000
jmp 0x4993eb
cmp eax, 1
jne 0x4992ea
mov dword [0x5cdeac], 0x100
push str.Windows_XP
jmp 0x4993eb
cmp eax, 2
jne 0x4993f5
mov dword [0x5cdeac], 0x200
push str.Windows_2003
jmp 0x4993eb
cmp eax, 6
jne 0x4993f5
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x49932e
mov dword [0x5cdeac], 0x400
push str.Windows_Vista
jmp 0x4993eb
cmp eax, 1
jne 0x499347
mov dword [0x5cdeac], 0x800
push str.Windows_7
jmp 0x4993eb
cmp eax, 2
jne 0x499360
mov dword [0x5cdeac], 0x1000
push str.Windows_8
jmp 0x4993eb
cmp eax, 3
jne 0x499376
mov dword [0x5cdeac], 0x2000
push str.Windows_8.1
jmp 0x4993eb
cmp eax, 4
jne 0x4993f5
mov dword [0x5cdeac], 0x4000
push str.Windows_10
jmp 0x4993eb
cmp dword [ebp - 0x124], 4
jne 0x4993f5
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x4993b0
mov dword [0x5cdeac], 8
push str.Windows_9x
jmp 0x4993eb
cmp eax, 0xa
jne 0x4993c6
mov dword [0x5cdeac], 8
push str.Windows_9x
jmp 0x4993eb
cmp eax, 0x5a
jne 0x4993f5
mov dword [0x5cdeac], 0x20
push str.Windows_ME
jmp 0x4993eb
mov dword [0x5cdeac], 1
push str.Windows_3.2
mov ecx, 0x5ce580
call fcn.004078b0
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
push 0x5a2d70
push str.kernel32.dll
movaps xmmword [ebp - 0x160], xmm0
movaps xmmword [ebp - 0x150], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x499436
lea ecx, [ebp - 0x160]
push ecx
call eax
jmp 0x499443
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x499467
cmp ax, 6
je 0x499467
test ax, ax
jne 0x499471
mov dword [0x5cdea8], 0
jmp 0x499471
mov dword [0x5cdea8], 1
mov dword [0x5ce6cc], 1
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004f598f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x499720
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c7128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0051a2e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x499784
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407900
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f598f
mov esp, ebp
pop ebp
ret

Function at 0x499c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c7128]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
mov edi, edx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0051a2e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test edi, edi
je 0x499c84
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407900
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f598f
mov esp, ebp
pop ebp
ret

Function at 0x49ae40
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push ecx
mov esi, ecx
call fcn.0049ade0
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x49ae5f
mov dword [esi + 4], 0xffffffff
jmp 0x49ae90
cmp dword [esi], 0
mov edx, 0xc0000000
push 0
push 0x80
push 4
push 0
mov eax, SysReAllocStringLen
push 3
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x49af22
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x49aea2
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jmp 0x49aead
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], eax
or eax, ecx
mov dword [esi + 0x14], ecx
jne 0x49aecb
cmp dword [esi], eax
je 0x49aecb
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
mov cl, 0x20
mov edx, dword [esi + 0x14]
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push 0
push dword [esi + 0x10]
setne bl
lea ebx, [ebx*2 + 2]
call fcn.0056efb0
push eax
push ebx
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
pop ebx
test eax, eax
je 0x49af22
cmp dword [esi], 0
mov edx, 0xf001f
push 0
push 0
mov ecx, 4
push 0
cmovne ecx, edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
jne 0x49af30
push ecx
mov ecx, esi
call fcn.0049ade0
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49b080
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b72a8
push 0x51ddb0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c7128]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x34], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
xor edi, edi
mov dword [ebp - 0x28], edi
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.0049e560
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x49b154
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x49b154
push esi
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x49b154
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x5a341c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x49b154
push ecx
mov eax, dword [ebp - 0x1c]
shr eax, 2
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0049e500
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.0049e590
push eax
call fcn.00519d60
add esp, 0xc
mov edi, 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0049b17a
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b5e0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579878
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c7128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov edi, ecx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call esi
test eax, eax
je 0x49b6b1
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x49b6b1
push edi
call esi
test eax, eax
je 0x49b6b1
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x49b64b
push edi
call ebx
test eax, eax
jne 0x49b6b1
cmp dword [ebp - 0x10], 0
je 0x49b6c8
lea ecx, [ebp - 0x10]
call fcn.00407f00
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s._lu
push eax
call fcn.00423d10
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call ebx
push 1
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push 4
push 0
push esi
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49b6b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg 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
Function at 0x49c590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579a68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5c7128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x49c5de
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x49c68c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49c68c
xor ecx, ecx
lea edx, [ebp - 0x58]
mov dword [ebp - 0x14], ecx
xor esi, esi
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov ecx, dword [ecx]
call fcn.0049afe0
test eax, eax
je 0x49c646
mov eax, dword [ebp - 0x50]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
mov ebx, eax
movzx eax, ax
shr esi, 0x10
shr ebx, 0x10
mov dword [ebp - 0x14], eax
jmp 0x49c648
xor eax, eax
push eax
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push esi
push str._d._d._d._d
push eax
call fcn.00423d10
mov eax, dword [ebp + 8]
add esp, 0x18
test eax, eax
je 0x49c668
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49c674
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49c67d
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49c689
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
push esi
call fcn.00406e20
add eax, 0x10
add esp, 4
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49c6b5
mov ecx, dword [esi]
push esi
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
Function at 0x49c6d0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5c7128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49c722
push 0x5a3318
push eax
call fcn.0051a43a
add esp, 8
test eax, eax
je 0x49c722
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
je 0x49c751
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x49c87f
push 0x5a3518
push eax
call fcn.0051a43a
add esp, 8
test eax, eax
je 0x49c87f
sub eax, dword [esi]
sar eax, 1
cmp eax, 1
jne 0x49c87f
push 2
lea eax, [ebp - 0x824]
mov ecx, esi
push eax
call fcn.00415580
lea eax, [ebp - 0x824]
mov dword [ebp - 4], 0
push eax
mov edx, str.._
lea ecx, [ebp - 0x820]
call fcn.0044c100
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x828], 0
push 0
push eax
call fcn.0051a2e0
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x20000
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49c817
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 0x81c], 0
push eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 0x818], 0
push eax
push 0xc
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x80c], 0x800
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x49c85f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov edx, dword [ebp - 0x820]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49c839
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x824]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x49c85b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x49c881
mov eax, dword [ebp - 0x7f4]
xor esi, esi
cmp eax, 4
je 0x49c871
cmp eax, 7
jne 0x49c876
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49c819
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f598f
mov esp, ebp
pop ebp
ret