joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b461
Capabilities:
Check if file exists
Terminate process

Disassembly:
push 0
mov eax, 0x46afd7
call fcn.004436f7
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor edi, edi
push ebx
cmp dword [esi + 0xc], edi
je 0x40b529
push str.360zipExt.dll
call fcn.0043f6e9
pop ecx
pop ecx
test eax, eax
je 0x40b51f
push ebx
push str.MenuMgr.exe
call fcn.0043f6e9
pop ecx
pop ecx
test eax, eax
je 0x40b51f
cmp dword [esi + 0x10], edi
jne 0x40b4ba
push ebx
push str.msvcp60.dll
call fcn.0043f6e9
pop ecx
pop ecx
test eax, eax
je 0x40b51f
lea eax, [ebp + 8]
push ebx
lea ecx, [esi + 8]
push eax
call fcn.0040bbc2
pop ecx
pop ecx
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b514
lea eax, [ebp + 0x14]
push ebx
lea ecx, [esi + 4]
push eax
call fcn.0040bbc2
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], edi
je 0x40b533
push 0x476040
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40b509
mov ebx, dword [ebp + 0x14]
call fcn.0041e1fa
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004031f6
xor eax, eax
call fcn.004437cf
ret 0x14
push str.360zipExt64.dll
jmp 0x40b499
mov ebx, dword [ebp + 0x14]
call fcn.0041e1fa
push dword [esi + 0x14]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0x14]
call fcn.00402445
pop ecx
pop ecx
push 3
pop ecx
cmp eax, ecx
jne 0x40b55b
mov dword [0x48818c], ecx
jmp 0x40b509
cmp eax, 2
jne 0x40b509
cmp dword [0x487d40], edi
jne 0x40b5a9
mov ecx, 0x485f6c
lea esi, [ebp + 0x18]
call fcn.00402b4a
mov byte [ebp - 4], 2
push dword [ebp + 0x14]
mov eax, esi
push 0x476048
push eax
call fcn.00402e53
mov esi, dword [ebp + 0x18]
add esp, 0xc
push 0x10000
push 0x47607c
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
call fcn.004031f6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40b5b2
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
add esi, 8
mov eax, esi
call fcn.0040b342
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b5e0
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40b5e0
mov ecx, dword [esi]
call fcn.00416b95
xor eax, eax
pop esi
ret 8

Function at 0x40b619
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
push 0
push edi
call fcn.0043e180
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b66a
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b669
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40b6b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b6e5
xor eax, eax
jmp 0x40b705
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call fcn.0040b708
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x40b708
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0045fd70
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xfa4]
push edi
mov edi, edx
mov dword [ebp - 0x7c], eax
test ecx, ecx
je 0x40b7fe
test edi, edi
jle 0x40b7fe
mov eax, edi
cdq
and edx, 0xfff
add eax, edx
mov esi, eax
sar esi, 0xc
and edi, 0x80000fff
jns 0x40b76e
dec edi
or edi, 0xfffff000
inc edi
and dword [ebp - 0x70], 0
and dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
test esi, esi
jle 0x40b7c1
mov ebx, 0x1000
push ebx
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e200
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b7fe
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40b7b6
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
add dword [ebp - 0x74], ebx
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], esi
jl 0x40b782
test edi, edi
jle 0x40b7f9
push edi
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0043e200
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b7fe
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40b7f9
mov ecx, dword [ebp - 0x70]
add dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40b800
xor eax, eax
mov ecx, dword [ebp + 0xf94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b103
add ebp, 0xf98
leave
ret
Function at 0x4128e9
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x820
mov eax, 0x46b3c8
call fcn.00443760
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x820], eax
mov eax, dword [0x487d3c]
mov dword [ebp - method.CResourceUnpack.virtual_0], vtable.CResourceUnpack.0
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x824], edi
push 0x47685c
push str.IDR_7Z_CAB_DLL
push eax
lea esi, [ebp - 0x82c]
mov dword [ebp - 4], edi
call fcn.0040b66f
test eax, eax
jne 0x412943
call fcn.004437e3
ret 4
mov ebx, 0x485f6c
mov ecx, ebx
lea esi, [ebp - 0x81c]
call fcn.00402b4a
push edi
mov eax, esi
push eax
lea eax, [ebp - 0x82c]
push eax
mov byte [ebp - 4], 1
call fcn.0040b831
test eax, eax
jne 0x41297f
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, edi
jmp 0x41293b
push 0x800
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.0043e180
mov edi, dword [ebp - 0x81c]
add esp, 0xc
push str.7z.dll
push edi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, ebx
lea esi, [ebp - 0x818]
call fcn.00402b4a
mov ebx, esi
mov byte [ebp - 4], 2
call fcn.0040236e
mov esi, dword [ebp - 0x818]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4129fd
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x4129fd
mov ecx, edi
call fcn.00416b95
mov edi, dword [ebp - 0x820]
add edi, 0x2c
lea eax, [ebp - 0x818]
call fcn.00402b81
push dword [edi]
call fcn.004019b6
pop ecx
push 4
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esi - 0x10]
call fcn.004031f6
xor edi, edi
inc edi
jmp 0x41296d

Function at 0x412a35
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
cmp dword [esi + 0x34], 0
je 0x412a44
call fcn.004019dc
and dword [esi + 0x34], 0
push ebx
push dword [esi + 0x2c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
je 0x412a73
push edi
xor edi, edi
push dword [esi + 0x2c]
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412a72
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 5
jl 0x412a57
pop edi
push dword [esi + 0x2c]
call ebx
pop ebx
test eax, eax
je 0x412a8a
push 4
push 0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x412a8b
Capabilities:
Get disk information
Terminate process

Disassembly:
push 0x34
mov eax, 0x46bd47
call fcn.00443760
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x487d3c]
cmp ebx, edx
je 0x412c50
mov dword [ebp - 0x40], vtable.CResourceUnpack.0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
push str.FILE
push ecx
push eax
lea esi, [ebp - 0x40]
mov dword [ebp - 4], edx
call fcn.0040b66f
test eax, eax
je 0x412c50
push ebx
mov eax, esi
push eax
call fcn.0040b91c
mov edi, 0x485f6c
mov ecx, edi
lea esi, [ebp - 0x24]
call fcn.00402b4a
push str.7z.dll
push ebx
mov eax, esi
push 0x475124
push eax
mov byte [ebp - 4], 1
call fcn.00402e53
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
add esi, 0x2c
add esp, 0x10
inc ecx
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00408983
xor ecx, ecx
inc ecx
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00408983
mov byte [ebp - 4], 3
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x20], 1
call fcn.0040bb10
test eax, eax
je 0x412b4c
mov dword [ebp - 0x20], 3
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push esi
call fcn.00402445
pop ecx
pop ecx
push 3
pop ecx
cmp eax, ecx
jne 0x412bf7
mov dword [0x48818c], ecx
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebx]
push eax
lea eax, [ebp - 0x1c]
push str._c:_
push eax
call fcn.0040323a
add esp, 0xc
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, eax
cmp edi, esi
je 0x412bd2
test byte [ebp - 0x20], 8
je 0x412bd2
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.00402ad3
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.00412c5a
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004031f6
mov eax, edi
jmp 0x412c52
cmp eax, 2
jne 0x412b6b
cmp dword [0x487d40], 0
jne 0x412c48
mov ecx, edi
lea esi, [ebp - 0x20]
call fcn.00402b4a
mov byte [ebp - 4], 4
push dword [ebp - 0x24]
mov eax, esi
push 0x476048
push eax
call fcn.00402e53
mov esi, dword [ebp - 0x20]
add esp, 0xc
push 0x10000
push 0x47607c
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
call fcn.004031f6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
call fcn.004437e3
ret 4
Function at 0x412e30
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0x46c
mov eax, 0x46b330
call fcn.00443760
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
push str.IsInstalled
push str.SOFTWAREMicrosoftActive_SetupInstalled_ComponentsEF289A85_8E57_408d_BE47_73B55609861A
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x430], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x428], edi
je 0x412e92
xor eax, eax
inc eax
call fcn.004437e3
ret
mov dword [ebp - method.CResourceUnpack.virtual_0], vtable.CResourceUnpack.0
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], edi
push str.ROOTSUPD
push 0x104
push edi
lea esi, [ebp - 0x43c]
mov dword [ebp - 4], edi
call fcn.0040b66f
test eax, eax
jne 0x412ec9
xor eax, eax
jmp 0x412e8c
mov ecx, 0x485f6c
lea esi, [ebp - 0x424]
call fcn.00402b4a
push 1
mov eax, esi
push eax
lea eax, [ebp - 0x43c]
push eax
mov byte [ebp - 4], 1
call fcn.0040b831
test eax, eax
jne 0x412f02
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004031f6
jmp 0x412ec5
xor eax, eax
push 0x40e
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.0043e180
mov esi, dword [ebp - 0x424]
add esp, 0xc
push str.rootsupd.exe
push esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x412f4c
lea eax, [esi - 0x10]
call fcn.004031f6
mov eax, edi
jmp 0x412e8c
push 0x38
lea eax, [ebp - 0x474]
push edi
push eax
call fcn.0043e180
lea eax, [ebp - 0x420]
mov dword [ebp - 0x468], eax
add esp, 0xc
lea eax, [ebp - 0x478]
push eax
mov dword [ebp - 0x478], 0x3c
mov dword [ebp - 0x474], 0x440
mov dword [ebp - 0x46c], 0x4769e8
mov dword [ebp - 0x464], 0x4769d8
mov dword [ebp - 0x45c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412f3d
cmp dword [ebp - 0x458], 0x20
jle 0x412f3d
xor edi, edi
inc edi
jmp 0x412f3d

Function at 0x413d7b
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x414b09
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x414b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x414b31
xor al, al
jmp 0x414b4c
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.0045cbe0
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x41c15b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x207
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41c1f2
cmp eax, esi
ja 0x41c1f2
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x41c193
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x41c1c7
push edi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41c1b5
mov esi, 0x474fcc
movsd dword es:[edi], dword [esi]
pop edi
push str.wininit.ini
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push 0x208
push ebx
call fcn.0043f3d3
xor eax, eax
add esp, 0x14
mov word [ebx + 0x40e], ax
inc eax
jmp 0x41c1f4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043b103
leave
ret

Function at 0x41c9a6
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push ebx
mov ebx, 0x4895f8
cmp ax, word [0x4895f8]
jne 0x41c9df
push esi
push edi
push eax
push 0x26
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x41c9c8
push 0x10
pop ecx
mov esi, str.internet_exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x41cff8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x41d0ef
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x40000
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41d0e0
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x41d0e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41d0e0
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41d0e0
push 0x20a
call fcn.0043af6d
pop ecx
mov esi, eax
cmp dword [ebp - 8], edi
jbe 0x41d0d6
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x41d0c9
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.0041cff8
add esp, 0x10
jmp 0x41d0d0
cmp eax, 0x103
je 0x41d0d6
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41d0a2
push esi
call fcn.0043e030
xor ebx, ebx
pop ecx
inc ebx
pop esi
cmp dword [ebp - 4], edi
je 0x41d0ef
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41df5f
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.0045fd70
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0043e180
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41e006
cmp eax, 0x3fff
ja 0x41e006
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41e006
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x474fcc
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41e006
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push ebx
push edi
call fcn.0043f3d3
xor eax, eax
add esp, 0x1c
mov word [edi + ebx*2 - 2], ax
inc eax
jmp 0x41e008
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0043b103
add ebp, 0x3f90
leave
ret

Function at 0x41e1fa
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x394], eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x41e228
xor eax, eax
inc eax
jmp 0x41e2ca
and dword [ebp - 0x80], 0
mov eax, ebx
push esi
mov esi, ebx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41e234
sub eax, ecx
sar eax, 1
cmp eax, 0x104
jbe 0x41e24d
xor eax, eax
jmp 0x41e2c9
xor eax, eax
push edi
cmp ax, word [ebx]
je 0x41e2c5
push 0x474fcc
push esi
call fcn.0043f7a8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x41e27b
push 0x477f30
push esi
call fcn.0043f7a8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41e2c5
mov esi, edi
sub esi, ebx
sar esi, 1
test esi, esi
jle 0x41e2bb
push 0x410
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043e180
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0043e90d
add esp, 0x18
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41e2b8
call fcn.0041e1e9
mov dword [ebp - 0x80], eax
lea esi, [edi + 2]
xor eax, eax
cmp ax, word [esi]
jne 0x41e255
mov eax, dword [ebp - 0x80]
pop edi
pop esi
mov ecx, dword [ebp + 0x394]
xor ecx, ebp
call fcn.0043b103
add ebp, 0x398
leave
ret
Function at 0x42c3c0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42c406
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb4]
xor edx, edx
sub ebx, edi
mov edi, dword [esp + 0x14]
sbb edi, edx
sub ebx, 0x298
sbb edi, ebp
xor eax, eax
cmp edi, eax
jl 0x42c498
jg 0x42c42e
cmp ebx, ecx
jb 0x42c498
mov ebp, dword [esi]
push 0
push 0
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x42c45d
push 0x474f2c
mov eax, 0x474f2c
call fcn.0042f360
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov esi, 0x298
mov edx, ebp
call fcn.0042a700
test eax, eax
je 0x42c453
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42c47e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42c4a5
pop edi
pop esi
mov ecx, 1
pop ebp
mov word [eax], cx
mov eax, ecx
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x42c4a5
xor edx, edx
mov word [eax], dx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x431b10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x88
push 0xffffffffffffffff
push 0x469ffb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [0x489218], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
mov ecx, 0x41
lea ebx, [ebp]
call fcn.00431770
add esp, 0xc
xor eax, eax
mov word [ebp + 0x80], ax
xor edi, edi
mov ecx, ebx
push ecx
mov ebx, 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x431c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x431bb5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], 0
call fcn.004318c0
test eax, eax
je 0x431bcc
mov dword [0x489218], eax
jmp 0x431c30
call fcn.00432120
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], bl
test eax, eax
je 0x431be4
push esi
push eax
call fcn.00431f60
jmp 0x431be6
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x489218], eax
test eax, eax
jne 0x431c04
mov dword [ebp - 0x1c], ebx
push 0x47cb50
lea edx, [ebp - 0x1c]
push edx
call fcn.0044322c
mov edi, ebx
mov dword [ebp - 0x24], edi
push eax
call fcn.004319b0
add esp, 4
test eax, eax
jne 0x431c2b
mov dword [ebp - 0x18], 3
push 0x47cb50
lea eax, [ebp - 0x18]
push eax
call fcn.0044322c
mov eax, dword [0x489218]
add dword [eax + 0x5bc], ebx
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
jne 0x431c4f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x489218
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.0043b103
add ebp, 0x88
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e275
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e3050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0x4c1084
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x4c108c
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
call dword [eax + 4]
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40279f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4027a7
call ebx
mov esi, eax
test esi, esi
jne 0x4027c0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4027ca
call ebx
mov esi, eax
mov eax, 0xc
mov dword [edi + eax], esi
jmp 0x4027d6
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00402c80
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x4c108c
test eax, eax
je 0x4027ef
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x4c1084
test eax, eax
je 0x402814
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8