joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40860b
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d7a5
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x43931c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x4086eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x24]
push 0x4c3
push eax
mov dword [esp + 0xe0], edi
call fcn.0040f625
push 0x431adc
push eax
xor ebx, ebx
lea eax, [esp + 0x6c]
inc ebx
push eax
mov byte [esp + 0xec], bl
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 2
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push edi
push ebx
lea esi, [esp + 0x5c]
call fcn.004036ef
push edi
push ebx
lea esi, [esp + 0x24]
call fcn.004036ef
push edi
push ebx
lea esi, [esp + 0x94]
call fcn.004036ef
xor al, al
jmp 0x40880c
cmp dword [esi + 0x18], 8
jb 0x4086f6
mov edx, dword [esi + 4]
jmp 0x4086f9
lea edx, [esi + 4]
cmp dword [esi + 0x50], 8
jb 0x408704
mov ecx, dword [esi + 0x3c]
jmp 0x408707
lea ecx, [esi + 0x3c]
cmp dword [esi + 0x34], 8
jb 0x408712
mov eax, dword [esi + 0x20]
jmp 0x408715
lea eax, [esi + 0x20]
push edi
push edi
push edi
push edi
push edi
push edx
xor ebx, ebx
inc ebx
push ebx
push 3
push 0x10
push 0x30
push ecx
push eax
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, edi
jne 0x4087d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x78]
push 0x4c4
push eax
mov dword [esp + 0xe0], 3
call fcn.0040f625
push 0x431adc
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0xec], 4
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 5
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push edi
push ebx
lea esi, [esp + 0x40]
call fcn.004036ef
push edi
push ebx
lea esi, [esp + 0x78]
call fcn.004036ef
push edi
push ebx
lea esi, [esp + 0xb0]
call fcn.004036ef
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4086e4
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call ebx
push dword [esp + 0x14]
call ebx
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x34], esp
push 0x643
push eax
call fcn.0040f625
pop ecx
pop ecx
push edi
call fcn.0040f31c
add esp, 0x20
mov ecx, esi
call fcn.00409081
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408822
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d6d3
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x43931c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x408911
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x24]
push 0x4c5
push eax
mov dword [esp + 0xe0], ebx
call fcn.0040f625
push 0x431adc
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0xec], 1
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 2
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x24]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.004036ef
xor al, al
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x34], 8
jb 0x40891c
mov esi, dword [esi + 0x20]
jmp 0x40891f
add esi, 0x20
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x4089d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x24]
push 0x4c6
push eax
mov dword [esp + 0xe0], 3
call fcn.0040f625
push 0x431adc
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xec], 4
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 5
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x24]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.004036ef
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4088f9
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x408a93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x94]
push 0x4c7
push eax
mov dword [esp + 0xe0], 6
call fcn.0040f625
push 0x431adc
push eax
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0xec], 7
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 8
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x94]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0xb0]
call fcn.004036ef
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [esp + 0x14]
call esi
mov al, bl
jmp 0x4088fb
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x34], esp
push 0x644
push eax
call fcn.0040f625
pop ecx
pop ecx
push ebx
call fcn.0040f31c
add esp, 0x20
mov bl, 1
jmp 0x408a7d
Function at 0x408d55
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d6d3
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x43931c]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x408e44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x24]
push 0x4cb
push eax
mov dword [esp + 0xe0], ebx
call fcn.0040f625
push 0x431adc
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0xec], 1
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 2
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x24]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.004036ef
xor al, al
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x34], 8
jb 0x408e4f
mov esi, dword [esi + 0x20]
jmp 0x408e52
add esi, 0x20
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x408f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x24]
push 0x4cc
push eax
mov dword [esp + 0xe0], 3
call fcn.0040f625
push 0x431adc
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xec], 4
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 5
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [esp + 0x5c]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x24]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x40]
call fcn.004036ef
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x408e2c
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x408fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [esp + 0x94]
push 0x4cd
push eax
mov dword [esp + 0xe0], 6
call fcn.0040f625
push 0x431adc
push eax
lea eax, [esp + 0x88]
push eax
mov byte [esp + 0xec], 7
call fcn.00404724
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
push eax
push ecx
mov byte [esp + 0xf8], 8
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [esp + 0x78]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0x94]
call fcn.004036ef
push ebx
push 1
lea esi, [esp + 0xb0]
call fcn.004036ef
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [esp + 0x14]
call esi
mov al, bl
jmp 0x408e2e
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x34], esp
push 0x646
push eax
call fcn.0040f625
pop ecx
pop ecx
push ebx
call fcn.0040f31c
add esp, 0x20
mov bl, 1
jmp 0x408fae
Function at 0x408fe7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x43931c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004069c7
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x40902f
cmp dword [ebp - 0x94], 6
jb 0x40902f
call fcn.0040d86e
jmp 0x409034
call fcn.0040d6b9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414f70
leave
ret
Function at 0x409081
Capabilities:
Modify service

Disassembly:
push 0xbc
mov eax, 0x42d661
call fcn.00417a8d
mov esi, ecx
push 0x78
call fcn.00406cd3
mov dword [esp], 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x10], edi
cmp edi, ebx
jne 0x409133
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [ebp - 0x54]
push 0x4ce
push eax
mov dword [ebp - 4], ebx
call fcn.0040f625
push 0x431adc
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.00404724
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0x38]
call fcn.004036ef
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.004036ef
push ebx
push 1
lea esi, [ebp - 0x70]
call fcn.004036ef
xor al, al
call fcn.00417b65
ret
cmp dword [esi + 0x34], 8
jb 0x40913e
mov esi, dword [esi + 0x20]
jmp 0x409141
add esi, 0x20
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x4091db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [ebp - 0x54]
push 0x4cf
push eax
mov dword [ebp - 4], 3
call fcn.0040f625
push 0x431adc
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call fcn.00404724
mov ecx, esp
mov dword [ebp - 0x10], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push 1
lea esi, [ebp - 0x70]
call fcn.004036ef
push ebx
push 1
lea esi, [ebp - 0x54]
call fcn.004036ef
push ebx
push 1
lea esi, [ebp - 0x38]
call fcn.004036ef
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40912b
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
xor edi, edi
inc edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x409297
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0040f625
mov esi, eax
lea eax, [ebp - 0xa8]
push 0x4d0
push eax
mov dword [ebp - 4], 6
call fcn.0040f625
push 0x431adc
push eax
lea eax, [ebp - 0x8c]
push eax
mov byte [ebp - 4], 7
call fcn.00404724
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
push eax
push ecx
mov byte [ebp - 4], 8
call fcn.0040476a
add esp, 0xc
push 2
call fcn.0040f31c
add esp, 0x20
push ebx
push edi
lea esi, [ebp - 0x8c]
call fcn.004036ef
push ebx
push edi
lea esi, [ebp - 0xa8]
call fcn.004036ef
push ebx
push edi
lea esi, [ebp - 0xc4]
call fcn.004036ef
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x10]
call esi
mov al, bl
jmp 0x40912d
mov bl, 1
jmp 0x409280
Function at 0x40a747
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43931c]
xor eax, ebp
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40a79a
cmp dword [ebp - 0x1c], 6
jb 0x40a79a
jbe 0x40a787
mov dword [0x43b8a8], 3
jmp 0x40a7a4
xor eax, eax
inc eax
cmp eax, dword [ebp - 0x18]
sbb eax, eax
neg eax
inc eax
inc eax
mov dword [0x43b8a8], eax
jmp 0x40a7a4
mov dword [0x43b8a8], 1
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00414f70
add ebp, 0x78
leave
ret

Function at 0x40a7b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
xor ecx, ecx
dec eax
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], ebx
je 0x40a7e6
dec eax
je 0x40a7df
dec eax
jne 0x40a7eb
mov ecx, str.SoftwareMacromediaFlashPlayerPepperReleaseType
jmp 0x40a7eb
mov ecx, str.SoftwareMacromediaFlashPlayerPluginReleaseType
jmp 0x40a7eb
mov ecx, str.SoftwareMacromediaFlashPlayerActiveXReleaseType
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a832
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push str.Release
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a829
cmp dword [ebp - 0xc], ebx
jne 0x40a829
mov byte [ebp - 1], bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x40b2e9
Capabilities:
Check os version

Disassembly:
push 0x98
mov eax, 0x42c667
call fcn.00417af6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov esi, edi
call fcn.00403271
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
push 2
pop eax
inc ecx
cmp dword [ebp - 0x94], eax
jne 0x40b33a
cmp dword [ebp - 0xa0], 6
jb 0x40b33a
mov dword [edi + 0x1c], eax
jmp 0x40b33d
mov dword [edi + 0x1c], ecx
push 0
push ecx
lea esi, [ebp + 8]
call fcn.004036ef
mov eax, edi
call fcn.00417b79
ret 0x1c
Function at 0x40e66c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax + 0x50]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, 1
jne 0x40e69b
lea eax, [ebp - 4]
push eax
cmp byte [ebp + 8], bl
je 0x40e694
push 0x20019
push ebx
push str.SoftwareMacromediaFlashPlayerActiveX
jmp 0x40e6d4
push 0x20119
jmp 0x40e68c
cmp eax, 2
lea eax, [ebp - 4]
push eax
jne 0x40e6bd
cmp byte [ebp + 8], bl
je 0x40e6b6
push 0x20019
push ebx
push str.SoftwareMacromediaFlashPlayerPlugin
jmp 0x40e6d4
push 0x20119
jmp 0x40e6ae
cmp byte [ebp + 8], bl
je 0x40e6c9
push 0x20019
jmp 0x40e6ce
push 0x20119
push ebx
push str.SoftwareMacromediaFlashPlayerPepper
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e70a
lea eax, [ebp + 8]
push eax
push esi
push ebx
push ebx
push str.PlayerPath
push dword [ebp - 4]
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov al, bl
pop ebx
leave
ret 4
Function at 0x410f46
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x42c53a
call fcn.00417af6
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], edi
cmp dword [edi + 0x3c], ebx
je 0x41105f
cmp byte [edi + 0x41], bl
je 0x41105f
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x410f7e
xor al, al
jmp 0x411061
lea esi, [ebp - 0x30]
call fcn.00410c66
lea eax, [edi + 0x44]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.00410ce2
mov esi, eax
call fcn.004118ab
add eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x60]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.00410ce2
mov esi, eax
call fcn.004118ab
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x38]
push esi
push dword [ebp - 0x34]
push eax
push dword [ebp - 0x40]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x410fe3
dec eax
je 0x410fe6
dec eax
dec eax
jne 0x41104f
mov bl, 1
jmp 0x41104f
mov byte [edi + 0x41], bl
lea ebx, [ebp - 0x58]
lea esi, [ebp - 0x30]
call fcn.00410ce2
mov esi, eax
call fcn.004118ab
mov ecx, dword [ebp - 0x38]
sub ecx, eax
mov dword [ebp - 0x34], ecx
je 0x41102b
push dword [edi + 0x4c]
lea ebx, [ebp - 0x50]
push ecx
push 1
lea esi, [ebp - 0x30]
call fcn.00410ce2
mov esi, eax
call fcn.004118ab
push eax
call fcn.00416c82
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x41104d
mov ecx, dword [ebp - 0x34]
cmp byte [edi + 0x41], 0
je 0x410fdf
test ecx, ecx
jne 0x410f8f
push ecx
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.00410c9e
mov edi, dword [ebp - 0x3c]
jmp 0x410f8f
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004035f7
mov al, bl
jmp 0x411061
mov al, 1
call fcn.00417b79
ret

Function at 0x412e9c
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push esi
push edi
push ecx
push ecx
mov edi, eax
mov eax, esp
mov dword [esp + 0x10], esp
push str.crypt32.dll
call fcn.00412b0b
call fcn.004135a2
test al, al
jne 0x412ec0
xor al, al
jmp 0x412f27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptVerifyMessageSignature
push dword [edi]
call esi
mov dword [edi + 4], eax
test eax, eax
je 0x412ebc
push str.CryptGetMessageCertificates
push dword [edi]
call esi
mov dword [edi + 8], eax
test eax, eax
je 0x412ebc
push str.CertCreateCertificateContext
push dword [edi]
call esi
mov dword [edi + 0xc], eax
test eax, eax
je 0x412ebc
push str.CertFindCertificateInStore
push dword [edi]
call esi
mov dword [edi + 0x10], eax
test eax, eax
je 0x412ebc
push str.CertVerifySubjectCertificateContext
push dword [edi]
call esi
mov dword [edi + 0x14], eax
test eax, eax
je 0x412ebc
push str.CertFreeCertificateContext
push dword [edi]
call esi
test eax, eax
mov dword [edi + 0x18], eax
setne al
pop edi
pop esi
pop ecx
ret
Function at 0x4135a2
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x42c3ce
call fcn.00417af6
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x4135c5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi], ebx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp + 8]
call fcn.00412c7b
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00412b6e
lea ecx, [ebp + 8]
mov edx, eax
call fcn.00412b6e
cmp edx, eax
jne 0x413694
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x413639
mov byte [ebp - 0x219], bl
lea eax, [ebp - 0x228]
mov byte [ebp - 4], bl
call fcn.00412b5b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 8]
call fcn.00412b5b
mov al, byte [ebp - 0x219]
call fcn.00417b79
ret 8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
call fcn.00412b0b
push ecx
push ecx
lea ecx, [ebp + 8]
mov eax, esp
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], esp
call fcn.00412af8
lea ecx, [ebp - 0x230]
call fcn.00412bdb
push ecx
push ecx
mov ecx, eax
mov eax, esp
mov dword [ebp - 0x220], esp
call fcn.00412af8
lea esi, [ebp + 8]
call fcn.00412b8f
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00412b5b
lea ecx, [ebp + 8]
call fcn.00412b7e
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [edi], eax
setne byte [ebp - 0x219]
jmp 0x413611

Function at 0x4137ad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebx + 0x10]
push esi
push edi
test eax, eax
je 0x41388b
cmp byte [eax], 0
je 0x41388b
and dword [ebp - 4], 0
push 0x433c24
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041701c
add esp, 0xc
test eax, eax
jne 0x41388b
cmp dword [ebp - 4], eax
je 0x41388b
push dword [ebp - 4]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.0041730f
add esp, 0x10
cmp eax, 4
je 0x413815
push dword [ebp - 4]
or dword [ebx], 0xffffffff
call fcn.00416edc
pop ecx
jmp 0x41388b
push 3
pop ecx
mov edi, 0x433c30
lea esi, [ebp - 8]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x413831
push eax
mov dword [ebx], 1
push 3
jmp 0x41384f
mov cx, word [ebp - 8]
mov eax, 0x433c28
cmp cx, word [eax]
je 0x413870
mov eax, 0x433c2c
cmp cx, word [eax]
je 0x413870
xor eax, eax
push eax
mov dword [ebx], eax
push eax
push dword [ebp - 4]
call fcn.00416de0
add esp, 0xc
push dword [ebp - 4]
push ebx
call fcn.00413891
push dword [ebp - 4]
call fcn.00416edc
pop ecx
mov al, 1
jmp 0x41388d
push 2
pop eax
push 0
push eax
push dword [ebp - 4]
mov dword [ebx], eax
call fcn.00416de0
push dword [ebp - 4]
call fcn.00416edc
add esp, 0x10
xor al, al
pop edi
pop esi
leave
ret
Function at 0x413a03
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c291
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x43931c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xc]
add esi, 4
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov ebx, 0x431a94
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call fcn.0040122e
mov dword [esp + 0x14], eax
and dword [esp + 0x38], 0
xor bl, bl
mov ecx, dword [esp + 0x24]
xor al, al
cmp dword [esp + 0x20], ecx
je 0x413a69
inc al
cmp esi, esi
je 0x413a6f
mov al, 1
test al, al
je 0x413ad9
lea esi, [esp + 0x18]
mov eax, ecx
call fcn.00413eb6
mov edi, eax
lea esi, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00406e11
mov byte [esp + 0x38], 0
cmp dword [esp + 0x18], 0
je 0x413aa4
push dword [esp + 0x18]
call fcn.00415817
pop ecx
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
call fcn.004136f0
test al, al
je 0x413ac6
mov esi, dword [esp + 0x24]
mov edi, dword [ebp + 0xc]
add esi, 4
call fcn.00406e11
mov bl, 1
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
test bl, bl
je 0x413a5b
test bl, bl
jne 0x413b19
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
push ecx
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.0040122e
mov dword [edi], eax
mov eax, dword [ebp + 8]
push ecx
mov byte [esp + 0x40], 2
mov ebx, dword [eax]
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.0040122e
mov dword [edi], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x44], 0
call fcn.00413cc5
cmp dword [esp + 0x14], 0
je 0x413b2a
push dword [esp + 0x14]
call fcn.00415817
pop ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414f70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43931c]
jne 0x414f7a
repz ret
jmp fcn.0041b23c