joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410980
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518708
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x57f578]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4109c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00428a20
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4109f0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x4109f7
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.00408e80
test al, al
jne 0x410a0b
mov ecx, ebx
call fcn.00408e90
jmp 0x410a0d
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x410a5e
call ecx
cmp eax, 5
jne 0x410a58
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00408e80
test al, al
jne 0x410a48
mov ecx, ebx
call fcn.00408e90
jmp 0x410a4a
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x410a7c
call ecx
cmp eax, 0xb7
jne 0x410a71
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00427710
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x410aa2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x410ab7
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004e6b81
add esp, 8
mov dword [ebp - 0x14], 0
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.004e679a
mov esp, ebp
pop ebp
ret 4
Function at 0x414880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518b98
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x57f578]
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]
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00413da0
test al, al
jne 0x4148ef
xor bl, bl
jmp 0x414a53
lea ecx, [ebp - 0x5c]
call fcn.00412030
mov byte [ebp - 4], 1
add esi, 0x24
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x41492c
push esi
lea ecx, [ebp - 0x5c]
call fcn.004160b0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.004160b0
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.004160b0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00413530
test al, al
jne 0x414944
xor bl, bl
jmp 0x414a47
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.00412bc0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x414a39
mov ecx, edi
call fcn.00429280
test al, al
je 0x414a39
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x18], 0
call fcn.004290c0
test al, al
je 0x414a39
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
jne 0x414a39
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
sub esi, ebx
mov eax, dword [edi]
mov dword [ebp - 0x34], esi
test eax, eax
je 0x414a39
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x414a39
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x414a39
cmp dword [ebp - 0x18], 4
jne 0x414a39
cmp ebx, dword [ebp - 0x2c]
je 0x414a11
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push esi
push ebx
call fcn.004290c0
test al, al
je 0x414a39
cmp dword [ebp - 0x18], esi
jne 0x414a39
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x64], xmm0
call fcn.00429140
test al, al
je 0x414a35
push dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x64]
call fcn.004292a0
mov bl, 1
jmp 0x414a3b
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00416220
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00414cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00416220
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 - 0x14]
xor ecx, ebp
call fcn.004e679a
mov esp, ebp
pop ebp
ret 4
Function at 0x414ba0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518c18
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x57f578]
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 eax, dword [ebp + 8]
mov ecx, eax
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x80
push dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.00428f90
mov bl, al
test bl, bl
jne 0x414ccb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x414c7e
call eax
cmp eax, 5
jne 0x414c79
push 0x80
mov ecx, edi
call fcn.00408e90
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x414c5e
lea ecx, [ebp - 0x28]
call fcn.00408fb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0042e430
test al, al
je 0x414c4f
push 0x80
lea ecx, [ebp - 0x28]
call fcn.00408e90
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408080
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.00428f90
mov bl, al
test bl, bl
jne 0x414ccb
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x414c8a
cmp eax, 0x20
jne 0x414ccb
xor esi, esi
nop dword [eax]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00428f90
mov bl, al
test bl, bl
jne 0x414ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x414cc5
cmp eax, 0x20
jne 0x414ccb
inc esi
cmp esi, 0x28
jb 0x414c90
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.004e679a
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41aa50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x561e20
push 0x4e8410
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57f578]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0041a870
cmp byte [edi + 0x30], bl
je 0x41aaf9
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ab1e
test al, 0x10
jne 0x41ab1e
call fcn.0040ba90
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.0040bd80
test al, al
je 0x41ab1e
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x41ab22
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x41ab85
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41ab53
mov dword [edi + 0x34], esi
push edi
push 0x41a770
push 0x548190
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
add esp, 0x14
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ab78
test esi, esi
je 0x41ab83
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x41abb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x561e40
push 0x4e8410
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57f578]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x414], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0041a870
cmp byte [edi + 0x30], bl
je 0x41ac59
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ac7e
test al, 0x10
jne 0x41ac7e
call fcn.0040ba90
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.0040bd80
test al, al
je 0x41ac7e
mov dword [edi + 0x34], 0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
jne 0x41ac82
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x41ace8
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41acb6
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x41a770
push 0x548190
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
add esp, 0x18
test eax, eax
sete bl
mov byte [ebp - 0x19], bl
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x41acdb
test esi, esi
je 0x41ace6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x41aea0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.004e8f30
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41af1e
cmp dword [esp + 0x14], 6
jb 0x41af1e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, SysReAllocString
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x41af1e
cmp word [esi], 0
jne 0x41af76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x41af4a
cmp word [esi], 0
jne 0x41af76
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, SysReAllocString
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x41af8b
cmp word [esi], 0
je 0x41af8b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004e679a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.004e679a
mov esp, ebp
pop ebp
ret
Function at 0x41b330
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x262c]
mov eax, 0x262c
call fcn.004e70c0
push 0xffffffffffffffff
push 0x519a48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x57f578]
xor eax, ebp
mov dword [ebp + 0x2628], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x2634]
lea eax, [ebp + 0x420]
push 0x2000
xor ebx, ebx
push ebx
push eax
call fcn.004e8f30
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x420], ax
test esi, esi
je 0x41b531
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x41b531
push esi
call edi
cmp eax, 0xffa
jge 0x41b531
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x420]
push eax
call esi
push 0x54fb28
lea eax, [ebp + 0x420]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2c]
call fcn.00408f70
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.0041f5a0
mov ecx, eax
call fcn.0041f660
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408080
test esi, esi
je 0x41b531
push 0x54fd70
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41b531
lea ecx, [ebp]
call fcn.0041afa0
xor edi, edi
lea esi, [ebp]
nop dword [eax]
cmp word [esi], 0
je 0x41b461
push 1
push 0
lea eax, [ebp + 0x420]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x41b46f
inc edi
add esi, 0x210
cmp edi, 2
jl 0x41b440
jmp 0x41b491
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x41b489
add ebx, 0x10
test ebx, ebx
jne 0x41b52d
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x420]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x41b528
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop
push 0x208
lea eax, [ebp + 0x2420]
push 0
push eax
call fcn.004e8f30
add esp, 0xc
lea eax, [ebp + 0x2420]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2420]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41b51e
push 1
push 0
lea eax, [ebp + 0x420]
push eax
lea eax, [ebp + 0x2420]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x41b528
inc esi
cmp esi, 2
jb 0x41b4c0
mov eax, ebx
jmp 0x41b533
mov ebx, 0x10
mov eax, ebx
jmp 0x41b533
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2628]
xor ecx, ebp
call fcn.004e679a
lea esp, [ebp + 0x262c]
pop ebp
ret
Function at 0x41eb00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.004e8f30
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x41eb97
cmp dword [esp + 8], 6
jb 0x41eb97
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004e679a
add esp, 0x118
ret

Function at 0x41ebb0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x57f578]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00408f70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0041f5a0
mov ecx, eax
call fcn.0041f660
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408080
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00408f70
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.0041f5a0
mov ecx, eax
call fcn.0041f660
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408080
test ebx, ebx
je 0x41ecc5
test esi, esi
je 0x41ecc5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], 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 0x422e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51aa68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x57f578]
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 edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.004291f0
test al, al
jne 0x422ed0
mov eax, 1
jmp 0x42304d
push 0x10000
call fcn.004e6ffd
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004e8f30
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x423026
test ebx, ebx
je 0x423026
cmp dword [eax], 0xffffffff
je 0x423026
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423026
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x42301c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.00438ae0
test al, al
je 0x42300f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x422fc2
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x422fb1
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x42301c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x422fcc
add ebx, eax
cmp ebx, 0x8000
je 0x422fdc
cmp dword [ebp - 0x28], 0xf
ja 0x423005
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x422f60
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x422ffe
add ecx, 4
add esi, 4
sub edx, 4
jae 0x422fe6
mov esi, 4
jmp 0x423037
mov esi, 5
jmp 0x423037
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x423037
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x423031
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x423037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x42304b
push ebx
call fcn.004e6ff8
add esp, 4
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.004e679a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423070
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51aaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x57f578]
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 edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0
call fcn.00408fd0
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x54f9f0
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.004090f0
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebx + 4]
call fcn.00437760
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004090a0
test bl, bl
jne 0x423133
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x4231ee
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x13
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.00437330
test al, al
jne 0x423160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x4231ee
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x4231db
cmp eax, 0xce
je 0x4231db
cmp eax, 0x12e
jne 0x42320f
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x4231a3
push 0x800
call fcn.004e6ffd
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push 0
push esi
call fcn.004e8f30
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.004373a0
test al, al
je 0x42320f
push esi
call fcn.00409590
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004092c0
mov ebx, dword [ebp - 0x38]
jmp 0x4231ff
cmp dword [ebp + 0x14], 0
ja 0x4231e7
cmp dword [ebp + 0x10], 0
jbe 0x423213
cmp eax, 0xce
je 0x423213
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x42320f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 3
jb 0x4230d3
xor bl, bl
jmp 0x42321f
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x423230
push esi
call fcn.004e6ff8
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00408080
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.004e679a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x424490
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0042df80

Function at 0x426180
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x57f578]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004e67b9
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004e8f30
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4261dc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004e679a
add esp, 0x120
ret