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

Disassembly:
push 0x30
mov eax, 0x2e030a97
call fcn.2e02e6de
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e683
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e67a
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e0183b6
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x2e01e66d
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2e010e6c
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e0183b6
test al, al
jne 0x2e01e620
push ebx
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e0183b6
push 1
test eax, eax
pop edx
cmove edi, edx
jmp 0x2e01e623
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e01e65d
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], dl
cmp eax, 0x1000
jb 0x2e01e654
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.2e0183b6
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.2e0183b6
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
inc ecx
mov byte [ebp - 0x28], bl
or dword [ebp - 4], 0xffffffff
push ecx
push esi
call fcn.2e0183b6
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e6bc
ret
Function at 0x428c39
Capabilities:
Print debug messages

Disassembly:
jmp 0x471ae9
push esi
mov esi, ecx
call fcn.00428e00
mov eax, 0x400000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x484048
call fcn.00427c35
test eax, eax
jns 0x471b38
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x471b31
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x48d100], 1
mov eax, esi
pop esi
ret
Function at 0x4c1f58
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.004c1f01
test eax, eax
je 0x4c20b1
lea ecx, [esp + 0x18]
call fcn.004c1f01
lea ecx, [esp + 0x18]
test eax, eax
je 0x4c2020
call fcn.004c1f01
test eax, eax
je 0x4c1fe2
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.004c1f01
lea edi, [eax + edi*2]
dec ebx
jne 0x4c1fb8
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x4c1fd9
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x4c1fdc
mov byte [edx], 0
inc edx
jmp 0x4c20c3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x4c2018
test ecx, ecx
je 0x4c20ac
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4c200a
jmp 0x4c20a8
xor ebp, ebp
inc ebp
jmp 0x4c20ac
call fcn.004c1f37
test edi, edi
jne 0x4c2055
cmp eax, 2
jne 0x4c2050
lea ecx, [esp + 0x18]
call fcn.004c1f37
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x4c20ac
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x4c2045
jmp 0x4c20a8
sub eax, 3
jmp 0x4c2058
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.004c1f37
mov ecx, eax
cmp esi, 0x7d00
jb 0x4c207f
inc ecx
cmp esi, 0x500
jb 0x4c2088
inc ecx
cmp esi, 0x80
jae 0x4c2093
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x4c20ac
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4c209f
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x4c20c9
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x4c1f88
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c224e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4c2280
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4c2261
jmp 0x4c2284
mov eax, dword [esp + 0x10]
test edi, edi
je 0x4c228e
xor byte [esi], al
inc esi
dec edi
jne 0x4c2288
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x404ad0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4116cf
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 5
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x404b1d
push eax
call ebx
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esp + 0x20], 4
cmp dword [esi + 0x90], 8
jb 0x404b33
push dword [esi + 0x7c]
call ebx
add esp, 4
mov dword [esi + 0x90], 7
xor eax, eax
mov dword [esi + 0x8c], 0
mov word [esi + 0x7c], ax
mov byte [esp + 0x20], 3
cmp dword [esi + 0x78], 8
jb 0x404b60
push dword [esi + 0x64]
call ebx
add esp, 4
mov dword [esi + 0x78], 7
xor eax, eax
mov dword [esi + 0x74], 0
mov word [esi + 0x64], ax
mov byte [esp + 0x20], 2
cmp dword [esi + 0x60], 8
jb 0x404b87
push dword [esi + 0x4c]
call ebx
add esp, 4
mov dword [esi + 0x60], 7
xor eax, eax
mov dword [esi + 0x5c], 0
mov word [esi + 0x4c], ax
mov byte [esp + 0x20], 1
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x404bf4
mov ebp, dword [esi + 0x40]
cmp edi, ebp
je 0x404bd7
mov edi, edi
cmp dword [edi + 0x14], 8
jb 0x404bbd
push dword [edi]
call ebx
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
add edi, 0x18
cmp edi, ebp
jne 0x404bb0
push dword [esi + 0x3c]
call ebx
add esp, 4
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [esp + 0x20], 0
lea ecx, [esi + 0x14]
call fcn.004081e0
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x404c23
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [esi]
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4059b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4118c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4059ec
mov eax, dword [esi]
jmp 0x4059ee
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405a84
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00405e50
test al, al
je 0x405a51
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x405a6d
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040f90e
add esp, 0x28
ret

Function at 0x405ab0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4118c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x405aec
mov eax, dword [esi]
jmp 0x405aee
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405b02
mov al, 1
jmp 0x405b92
xor eax, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00405e50
test al, al
je 0x405b5b
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405b5b
mov bl, 1
jmp 0x405b5d
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x405b79
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040f90e
add esp, 0x28
ret
Function at 0x405d70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x405d98
mov eax, dword [esi]
jmp 0x405d9a
mov eax, esi
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x410
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x405de5
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0040f90e
add esp, 0x418
ret
cmp eax, 0x208
jae 0x405dcd
xor eax, eax
mov word [esp + 0x414], ax
cmp word [esp + 4], ax
jne 0x405e01
xor ecx, ecx
jmp 0x405e1f
lea ecx, [esp + 4]
lea edx, [ecx + 2]
jmp 0x405e10
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004025e0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0040f90e
add esp, 0x418
ret

Function at 0x406070
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push edi
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x40609d
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040f90e
add esp, 8
ret 4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x406089
push esi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4060d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4060d7
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040f90e
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, esi
mov dword [edi], eax
mov al, 1
adc ecx, 0
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.0040f90e
add esp, 8
ret 4
Function at 0x406c90
Capabilities:
Check os version

Disassembly:
sub esp, 0x128
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push pe_nt_image_headers32
lea eax, [esp + 0x14]
mov esi, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0xc], 0x114
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x406d20
cmp dword [esp + 0x10], 6
jb 0x406d20
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, 0x80000001
call fcn.00406a70
add esp, 0xc
test al, al
je 0x406d20
cmp word [esi], 0
je 0x406d20
mov al, 1
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0040f90e
add esp, 0x128
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, 0x80000000
call fcn.00406a70
add esp, 0xc
test al, al
je 0x406d4c
cmp word [esi], 0
jne 0x406d08
lea eax, [esp + 4]
mov dword [esp + 4], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, 0x80000001
call fcn.00406a70
add esp, 0xc
test al, al
je 0x406d78
cmp word [esi], 0
jne 0x406d08
mov ecx, dword [esp + 0x128]
xor al, al
pop esi
xor ecx, esp
call fcn.0040f90e
add esp, 0x128
ret
Function at 0x4071b0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x411c1b
mov eax, dword fs:[0]
push eax
mov eax, 0x264c
call fcn.00410d60
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2648], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x2660]
mov dword fs:[0], eax
mov esi, ecx
push 0x1ffe
xor ebx, ebx
lea eax, [esp + 0x662]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [esp + 0x65c], ax
test esi, esi
je 0x4073fb
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x4073fb
push esi
call edi
cmp eax, 0xffa
jge 0x4073fb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x660]
push eax
call esi
push 0x413368
lea eax, [esp + 0x660]
push eax
call esi
push 0x413590
lea ecx, [esp + 0x20]
call fcn.00402160
mov dword [esp + 0x2668], ebx
lea eax, [esp + 0x1c]
push eax
call fcn.00406250
mov ecx, eax
call fcn.004062d0
mov esi, eax
mov dword [esp + 0x2668], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x4072a5
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
test esi, esi
je 0x4073fb
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x4073fb
lea ecx, [esp + 0x34]
call fcn.00406d90
xor edi, edi
lea esi, [esp + 0x34]
lea esp, [esp]
cmp word [esi], 0
je 0x407311
push 1
push 0
lea eax, [esp + 0x664]
push eax
push esi
push str.open
push 0
call ebp
cmp eax, 0x20
ja 0x40731f
inc edi
add esi, 0x210
cmp edi, 2
jl 0x4072f0
jmp 0x407341
imul ebx, edi, 0x210
cmp dword [esp + ebx + 0x23c], 0
mov ebx, dword [esp + ebx + 0x240]
jne 0x407339
add ebx, 0x10
test ebx, ebx
jne 0x4073f7
push 1
push 0
push 0
lea eax, [esp + 0x668]
push eax
push str.open
push 0
call ebp
cmp eax, 0x20
ja 0x4073f2
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor esi, esi
mov dword [esp + 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
mov dword [esp + 0x18], str._programfiles_Internet_Exploreriexplore.exe
lea esp, [esp]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x45c], ax
lea eax, [esp + 0x45e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 0x454]
push 0x103
push eax
push dword [esp + esi*4 + 0x1c]
call edi
lea eax, [esp + 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4073e8
push 1
push 0
lea eax, [esp + 0x664]
push eax
lea eax, [esp + 0x460]
push eax
push str.open
push 0
call ebp
cmp eax, 0x20
ja 0x4073f2
inc esi
cmp esi, 2
jb 0x407380
mov eax, ebx
jmp 0x4073fd
mov ebx, 0x10
mov eax, ebx
jmp 0x4073fd
xor eax, eax
mov ecx, dword [esp + 0x2660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2648]
xor ecx, esp
call fcn.0040f90e
add esp, 0x2658
ret
Function at 0x407430
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push pe_nt_image_headers32
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 sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4074c7
cmp dword [esp + 8], 6
jb 0x4074c7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.0040f90e
add esp, 0x118
ret
Function at 0x4074e0
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x411c7c
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x1c]
push str.wintrust.dll
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.004025e0
mov dword [esp + 0x50], 0
mov eax, dword [0x417a58]
test al, 1
jne 0x40757f
or eax, 1
mov dword [0x417a58], eax
mov byte [esp + 0x50], 1
mov dword [0x417a54], 0
call fcn.00406100
push 0x412b40
call fcn.0040fa5f
add esp, 4
mov byte [esp + 0x50], 0
lea eax, [esp + 0x18]
mov ecx, 0x417a54
push eax
call fcn.004062d0
mov edi, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x2c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4075ae
push dword [esp + 0x18]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
push 0xb
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
push str.crypt32.dll
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
call fcn.004025e0
mov dword [esp + 0x50], 2
mov eax, dword [0x417a58]
test al, 1
jne 0x40762d
or eax, 1
mov dword [0x417a58], eax
mov byte [esp + 0x50], 3
mov dword [0x417a54], 0
call fcn.00406100
push 0x412b40
call fcn.0040fa5f
add esp, 4
mov byte [esp + 0x50], 2
lea eax, [esp + 0x30]
mov ecx, 0x417a54
push eax
call fcn.004062d0
mov ebp, eax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x407656
push dword [esp + 0x30]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
test edi, edi
je 0x4076e9
test ebp, ebp
je 0x4076e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push edi
call esi
push str.CryptCATAdminAcquireContext
push edi
mov dword [ebx + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push edi
mov dword [ebx + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push edi
mov dword [ebx + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push edi
mov dword [ebx + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push edi
mov dword [ebx + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebx + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebx + 0x1c], eax
call esi
push str.WinVerifyTrust
push edi
mov dword [ebx + 0x20], eax
call esi
push str.CertNameToStrW
push ebp
mov dword [ebx + 0x24], eax
call esi
mov dword [ebx + 0x28], eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x408e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x411e3e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push esi
mov word [edi], ax
call fcn.00402370
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x18]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x18]
push eax
call fcn.00402370
mov byte [esp + 0x18], 1
lea ecx, [edi + 0x30]
xor eax, eax
mov dword [ecx + 0x14], 7
push 0xffffffffffffffff
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esi + 0x30]
push eax
call fcn.00402370
mov byte [esp + 0x18], 2
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov al, byte [esi + 0x64]
mov byte [edi + 0x64], al
mov dword [esp + 0x18], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x40a400
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x411f88
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x24]
mov edi, dword [esp + 0x54]
push esi
push eax
call fcn.0040ab00
mov dword [esp + 0x48], 0
xorps xmm0, xmm0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov byte [esp + 0x48], 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.0040c010
xorps xmm0, xmm0
lea eax, [esp + 0x14]
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x20], 0
test eax, eax
jne 0x40a499
xor bl, bl
jmp 0x40a4b8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40a4b1
cmp eax, 0x80
je 0x40a4b1
xor bl, bl
jmp 0x40a4b8
mov byte [esp + 0x18], 1
mov bl, 1
mov byte [esp + 0x20], bl
mov byte [esp + 0x48], 2
lea eax, [esp + 0x13]
push eax
push edi
push esi
mov byte [esp + 0x1f], 0
call fcn.0040a590
test al, al
jne 0x40a4eb
cmp byte [esp + 0x13], al
je 0x40a4eb
cmp dword [esi + 0x14], 8
jb 0x40a4e4
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x48], 1
test bl, bl
je 0x40a508
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a503
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a52c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x40a54f
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0040f90e
add esp, 0x3c
ret 8