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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e698
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5938b4]
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 0x417323
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.0042f480
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x417350
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
jmp 0x417357
mov dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.0040e030
test al, al
jne 0x41736b
mov ecx, ebx
call fcn.0040e040
jmp 0x41736d
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 0x4173be
call ecx
cmp eax, 5
jne 0x4173b8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.0040e030
test al, al
jne 0x4173a8
mov ecx, ebx
call fcn.0040e040
jmp 0x4173aa
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 0x4173dc
call ecx
cmp eax, 0xb7
jne 0x4173d1
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.0042e140
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417402
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 0x417417
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.004f8820
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.004f8545
mov esp, ebp
pop ebp
ret 4
Function at 0x41b2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52eb28
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5938b4]
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.0041a7e0
test al, al
jne 0x41b32f
xor bl, bl
jmp 0x41b493
lea ecx, [ebp - 0x5c]
call fcn.00418a70
mov byte [ebp - 4], 1
add esi, 0x24
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x41b36c
push esi
lea ecx, [ebp - 0x5c]
call fcn.0041cd70
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.0041cd70
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041cd70
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00419f70
test al, al
jne 0x41b384
xor bl, bl
jmp 0x41b487
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.00419600
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x41b479
mov ecx, edi
call fcn.0042fce0
test al, al
je 0x41b479
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.0042fb20
test al, al
je 0x41b479
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
jne 0x41b479
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 0x41b479
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x41b479
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 0x41b479
cmp dword [ebp - 0x18], 4
jne 0x41b479
cmp ebx, dword [ebp - 0x2c]
je 0x41b451
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push esi
push ebx
call fcn.0042fb20
test al, al
je 0x41b479
cmp dword [ebp - 0x18], esi
jne 0x41b479
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x64], xmm0
call fcn.0042fba0
test al, al
je 0x41b475
push dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x64]
call fcn.0042fd30
mov bl, 1
jmp 0x41b47b
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0041cee0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.0041b730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041cee0
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.004f8545
mov esp, ebp
pop ebp
ret 4
Function at 0x41b5e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52eba8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5938b4]
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.0042f9f0
mov bl, al
test bl, bl
jne 0x41b70b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x41b6be
call eax
cmp eax, 5
jne 0x41b6b9
push 0x80
mov ecx, edi
call fcn.0040e040
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x41b69e
lea ecx, [ebp - 0x28]
call fcn.0040e160
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004340a0
test al, al
je 0x41b68f
push 0x80
lea ecx, [ebp - 0x28]
call fcn.0040e040
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ac80
mov ecx, dword [ebp - 0x2c]
push 0x80
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.0042f9f0
mov bl, al
test bl, bl
jne 0x41b70b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x41b6ca
cmp eax, 0x20
jne 0x41b70b
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.0042f9f0
mov bl, al
test bl, bl
jne 0x41b70b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x41b705
cmp eax, 0x20
jne 0x41b70b
inc esi
cmp esi, 0x28
jb 0x41b6d0
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.004f8545
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4217b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x577288
push 0x4fa390
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5938b4]
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 - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004215d0
cmp byte [edi + 0x30], bl
je 0x421862
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421887
test al, 0x10
jne 0x421887
call fcn.00410f70
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.00411260
test al, al
je 0x421887
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 0x42188b
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x4218ec
push str.ExtractArchive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4218ba
mov dword [edi + 0x34], esi
push edi
push 0x4214d0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
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 0x4218df
test esi, esi
je 0x4218ea
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.004f8545
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x421920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x418]
sub esp, 0x418
push 0xfffffffffffffffe
push 0x5772a8
push 0x4fa390
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5938b4]
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 - 0x28], eax
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x428]
mov dword [ebp - 0x20], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0x412
push 0
lea eax, [ebp]
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.004215d0
cmp byte [edi + 0x30], bl
je 0x4219d2
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4219f7
test al, 0x10
jne 0x4219f7
call fcn.00410f70
push 0
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.00411260
test al, al
je 0x4219f7
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 0x4219fb
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x421a5f
push str.ExtractArchive2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421a2d
mov dword [edi + 0x34], esi
push dword [edi + 0x38]
push edi
push 0x4214d0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
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 0x421a52
test esi, esi
je 0x421a5d
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.004f8545
lea esp, [ebp + 0x418]
pop ebp
ret 0xc
Function at 0x421c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x5938b4]
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.004fb1f0
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 0x421c9e
cmp dword [esp + 0x14], 6
jb 0x421c9e
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.00421a90
add esp, 0xc
test al, al
je 0x421c9e
cmp word [esi], 0
jne 0x421cf6
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.00421a90
add esp, 0xc
test al, al
je 0x421cca
cmp word [esi], 0
jne 0x421cf6
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.00421a90
add esp, 0xc
test al, al
je 0x421d0b
cmp word [esi], 0
je 0x421d0b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004f8545
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.004f8545
mov esp, ebp
pop ebp
ret
Function at 0x4222e0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.004f98d0
push 0xffffffffffffffff
push 0x52fa98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5938b4]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call fcn.004fb1f0
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x4224e1
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x4224e1
push esi
call edi
cmp eax, 0xffa
jge 0x4224e1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x565b3c
lea eax, [ebp + 0x630]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2c]
call fcn.0040e120
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.00426550
mov ecx, eax
call fcn.00426610
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040ac80
test esi, esi
je 0x4224e1
push 0x565d80
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4224e1
lea ecx, [ebp]
call fcn.00421d20
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x422406
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x422414
inc edi
add esi, 0x210
cmp edi, 3
jl 0x4223e5
jmp 0x422436
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x42242e
add ebx, 0x10
test ebx, ebx
jne 0x4224dd
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x4224d8
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call fcn.004fb1f0
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4224ce
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x4224d8
inc esi
cmp esi, 2
jb 0x422470
mov eax, ebx
jmp 0x4224e3
mov ebx, 0x10
mov eax, ebx
jmp 0x4224e3
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 + 0x2838]
xor ecx, ebp
call fcn.004f8545
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x425ab0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x5938b4]
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.004fb1f0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x425b47
cmp dword [esp + 8], 6
jb 0x425b47
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004f8545
add esp, 0x118
ret

Function at 0x425b60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fff0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5938b4]
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.0040e120
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00426550
mov ecx, eax
call fcn.00426610
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040ac80
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.0040e120
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00426550
mov ecx, eax
call fcn.00426610
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040ac80
test ebx, ebx
je 0x425c75
test esi, esi
je 0x425c75
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 0x429e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5938b4]
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.0042fc50
test al, al
jne 0x429e80
mov eax, 1
jmp 0x429ffd
push 0x10000
call fcn.004f8dad
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.004fb1f0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x429fd6
test ebx, ebx
je 0x429fd6
cmp dword [eax], 0xffffffff
je 0x429fd6
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 0x429fd6
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 0x429fcc
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.0043def0
test al, al
je 0x429fbf
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x429f72
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x429f61
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x429fcc
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x429f7c
add ebx, eax
cmp ebx, 0x8000
je 0x429f8c
cmp dword [ebp - 0x28], 0xf
ja 0x429fb5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x429f10
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x429fae
add ecx, 4
add esi, 4
sub edx, 4
jae 0x429f96
mov esi, 4
jmp 0x429fe7
mov esi, 5
jmp 0x429fe7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x429fe7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x429fe1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x429fe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x429ffb
push ebx
call fcn.004f8da8
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.004f8545
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42a020
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530af8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5938b4]
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.0040e180
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x565a68
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.0040e2a0
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.0043cc80
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040e250
test bl, bl
jne 0x42a0e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x42a19e
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.0043c850
test al, al
jne 0x42a110
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x42a19e
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x42a18b
cmp eax, 0xce
je 0x42a18b
cmp eax, 0x12e
jne 0x42a1bf
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x42a153
push 0x800
call fcn.004f8dad
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.004fb1f0
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.0043c8c0
test al, al
je 0x42a1bf
push esi
call fcn.0040e740
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.0040e470
mov ebx, dword [ebp - 0x38]
jmp 0x42a1af
cmp dword [ebp + 0x14], 0
ja 0x42a197
cmp dword [ebp + 0x10], 0
jbe 0x42a1c3
cmp eax, 0xce
je 0x42a1c3
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x42a1bf
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 0x42a083
xor bl, bl
jmp 0x42a1cf
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x42a1e0
push esi
call fcn.004f8da8
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0040ac80
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.004f8545
mov esp, ebp
pop ebp
ret 0x10