joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ec88
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x44ec90
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x44ee20
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x44edf6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x44ede8
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, 0x44ee38
call fcn.004043a4
je 0x44edde
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x44ee50
call fcn.004043a4
je 0x44edde
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, 0x44ee74
call fcn.004043a4
je 0x44edde
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, 0x44ee8c
call fcn.004043a4
je 0x44edde
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x1c]
mov edx, 0x44eea0
call fcn.004043a4
je 0x44edde
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.004042a4
mov eax, dword [ebp - 0x20]
mov edx, 6
call fcn.004082b4
push 0xffffffffffffffff
push dword [ebp - 4]
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x2c]
push 0x44eeb4
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404318
mov eax, dword [ebp - 0x28]
call fcn.00404458
push eax
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x30]
call fcn.00404458
push eax
call sub.kernel32.dll_CopyFileA
inc ebx
dec dword [ebp - 8]
jne 0x44ecd9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44edfd
ret

Function at 0x438cab
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ecx
mov ebx, edx
sub ebx, ebx
sub edx, ebx
call fcn.00438cf1
push ebx
pop ebx
dec edx
mov edx, 0x87b33e20
xor dword [esi], ecx
sub edx, 0x81cc82c4
inc esi
mov ebx, 0xdb5f2528
cmp esi, edi
jne fcn.00438cab
push 0x2f2c7699
pop ebx
add edx, 0x4e98688b
ret
Function at 0x68c880
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x221000]
push edi
or ebp, 0xffffffff
jmp 0x68c8a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x68c8a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68c898
mov eax, 1
add ebx, ebx
jne 0x68c8bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x68c8cc
jne 0x68c8dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68c8dc
dec eax
add ebx, ebx
jne 0x68c8d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x68c8b0
xor ecx, ecx
sub eax, 3
jb 0x68c8f4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68c966
sar eax, 1
mov ebp, eax
jmp 0x68c8ff
add ebx, ebx
jne 0x68c8ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x68c90c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x68c930
inc ecx
add ebx, ebx
jne 0x68c91c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x68c911
jne 0x68c92d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68c911
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68c950
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68c941
jmp 0x68c89e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68c950
add edi, ecx
jmp 0x68c89e
pop esi
mov edi, esi
mov ecx, 0x3679
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x68c96e
cmp byte [edi], 0x14
jne 0x68c96e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x68c973
lea edi, [esi + 0x289000]
mov eax, dword [edi]
or eax, eax
je 0x68c9e2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x29ef9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29f050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x68c9a0
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x29f054]
or eax, eax
je 0x68c9dc
mov dword [ebx], eax
add ebx, 4
jmp 0x68c9bd
call dword [esi + 0x29f058]
popal
jmp 0x46fc64
Function at 0x4074d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4575a8]
jne 0x4074da
repz ret
jmp fcn.0040bea3

Function at 0x40bb5e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004082b2
and dword [ebp - 4], 0
cmp dword [0x45d628], 0
mov ebx, eax
jne 0x40bc0f
push 0x401b70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bcc0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b64
push edi
call esi
test eax, eax
je 0x40bcc0
push eax
call fcn.00408240
mov dword [esp], 0x401b54
push edi
mov dword [0x45d628], eax
call esi
push eax
call fcn.00408240
mov dword [esp], 0x401b40
push edi
mov dword [0x45d62c], eax
call esi
push eax
call fcn.00408240
mov dword [esp], 0x401b24
push edi
mov dword [0x45d630], eax
call esi
push eax
call fcn.00408240
pop ecx
mov dword [0x45d638], eax
test eax, eax
je 0x40bc0f
push 0x401b0c
push edi
call esi
push eax
call fcn.00408240
pop ecx
mov dword [0x45d634], eax
mov eax, dword [0x45d634]
cmp eax, ebx
je 0x40bc67
cmp dword [0x45d638], ebx
je 0x40bc67
push eax
call fcn.004082bb
push dword [0x45d638]
mov esi, eax
call fcn.004082bb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bc67
test edi, edi
je 0x40bc67
call esi
test eax, eax
je 0x40bc5e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bc5e
test byte [ebp - 0xc], 1
jne 0x40bc67
or dword [ebp + 0x10], 0x200000
jmp 0x40bca0
mov eax, dword [0x45d62c]
cmp eax, ebx
je 0x40bca0
push eax
call fcn.004082bb
pop ecx
test eax, eax
je 0x40bca0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bca0
mov eax, dword [0x45d630]
cmp eax, ebx
je 0x40bca0
push eax
call fcn.004082bb
pop ecx
test eax, eax
je 0x40bca0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d628]
call fcn.004082bb
pop ecx
test eax, eax
je 0x40bcc0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bcc2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
lea eax, [esp + 8]
push eax
xor ebp, ebp
push 0x20019
push ebp
push 0x683ac8
xor ebx, ebx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401944
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x1c]
push edx
push ebp
push 0x683aa8
push eax
call esi
test eax, eax
jne 0x401943
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x401943
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x401942
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push ebp
push 0x683aa8
push eax
call esi
test eax, eax
jne 0x401935
cmp dword [esp + 0x18], 7
jne 0x401935
mov esi, edi
cmp word [edi], bp
je 0x401935
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push ebx
push esi
call ebp
test eax, eax
je 0x40192d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 + 2], 0
lea esi, [esi + eax*2 + 2]
jne 0x401910
jmp 0x401935
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
pop edi
pop esi
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x401953
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret 4

Function at 0x402960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402979
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4029b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4029b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4029b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4029a0
cmp esi, eax
jb 0x4029ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4041a0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2004
call fcn.006499b0
mov eax, dword [0x71d770]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebp
mov ebp, dword [esp + 0x200c]
xor eax, eax
test ebp, ebp
je 0x404276
cmp ax, word [ebp]
jne 0x4041e6
pop ebp
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0064815a
add esp, 0x2004
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
push edi
push 0
push 0
call ebx
mov edi, eax
lea ecx, [edi + edi + 2]
push ecx
call fcn.006498e6
mov esi, eax
add esp, 4
test esi, esi
je 0x40421c
inc edi
push edi
push esi
call ebx
test eax, eax
jne 0x404220
push esi
call fcn.0064978f
add esp, 4
xor eax, eax
jmp 0x404273
push 0x1000
lea edx, [esp + 0x14]
push esi
push edx
call fcn.00649745
push 0x1000
lea eax, [esp + 0x20]
push 0x683e88
push eax
call fcn.00649705
push 0x1000
lea ecx, [esp + 0x2c]
push ebp
push ecx
call fcn.00649705
add esp, 0x24
push 8
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov edi, eax
call fcn.0064978f
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2004]
pop ebp
xor ecx, esp
call fcn.0064815a
add esp, 0x2004
ret

Function at 0x404380
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x71ebfc], 0
je 0x40438f
mov eax, 1
ret
push esi
push str.wintrust.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4043b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary_wintrust.dll_error__d_n
call fcn.006499db
add esp, 8
xor eax, eax
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext
push esi
call edi
push str.CryptCATAdminReleaseContext
push esi
mov dword [0x71ebf8], eax
call edi
push str.CryptCATAdminCalcHashFromFileHandle
push esi
mov dword [0x71ebf4], eax
call edi
push str.CryptCATAdminEnumCatalogFromHash
push esi
mov dword [0x71ebf0], eax
call edi
push str.CryptCATAdminReleaseCatalogContext
push esi
mov dword [0x71ebec], eax
call edi
push str.CryptCATCatalogInfoFromContext
push esi
mov dword [0x71ebe8], eax
call edi
push str.WinVerifyTrust
push esi
mov dword [0x71ebe4], eax
call edi
cmp dword [0x71ebf8], 0
mov dword [0x71ebe0], eax
pop edi
je 0x404462
cmp dword [0x71ebf4], 0
je 0x404462
cmp dword [0x71ebf0], 0
je 0x404462
cmp dword [0x71ebec], 0
je 0x404462
cmp dword [0x71ebe8], 0
je 0x404462
cmp dword [0x71ebe4], 0
je 0x404462
test eax, eax
je 0x404462
mov eax, 1
mov dword [0x71ebfc], eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_error_1_d_n
call fcn.006499db
add esp, 8
xor eax, eax
pop esi
ret
Function at 0x4097d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test ebx, ebx
je 0x409834
test edi, edi
je 0x409834
test eax, eax
jle 0x409834
test ebp, ebp
jle 0x409834
push eax
push 0
push ebx
call fcn.006480e0
add esp, 0xc
test ebp, ebp
jle 0x40982e
mov ecx, ebx
sub edi, ebx
mov al, byte [edi + ecx]
mov edx, esi
shr edx, 8
xor al, dl
mov byte [ecx], al
movzx ax, al
add ax, si
mov edx, 0x3193
imul ax, dx
mov edx, 0x58bf
sub dx, ax
inc ecx
sub ebp, 1
movzx esi, dx
jne 0x409801
pop edi
pop esi
xor eax, eax
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebp
ret

Function at 0x409890
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x2258
call fcn.006499b0
mov eax, dword [0x71d770]
xor eax, esp
mov dword [esp + 0x2254], eax
mov eax, dword [esp + 0x2260]
test eax, eax
je 0x409a12
cmp dword [0x71eed8], 1
jne 0x409a12
lea ecx, [esp + 0x2264]
push ecx
lea edx, [esp + 0x258]
push eax
push edx
call fcn.0064ab1a
cmp dword [esp + 0x2268], 0
jne 0x40990a
add esp, 0xc
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x2254]
xor ecx, esp
call fcn.0064815a
add esp, 0x2258
ret
lea eax, [esp + 0x40]
push eax
call fcn.0064aa80
lea ecx, [esp + 0x50]
push ecx
call fcn.0064a9b8
add esp, 0x14
lea edx, [esp + 0x254]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x1264]
push str.__ld___s__s__s
push edx
call fcn.00649bb9
lea eax, [esp + 0x126c]
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409960
push ebx
sub eax, edx
push esi
push eax
lea ecx, [esp + 0x1260]
push ecx
mov ecx, 0x4e4
lea ebx, [esp + 0x264]
mov dword [esp + 0x10], eax
call fcn.004097d0
push str.v3restore.log
push 0x71ecd0
lea edx, [esp + 0x64]
push 0x685174
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0064a4cf
add esp, 0x20
cmp dword [esp + 0x20], 0x300000
jl 0x4099cb
push 0x68516c
lea edx, [esp + 0x58]
push edx
jmp 0x4099d5
push 0x685164
lea eax, [esp + 0x58]
push eax
call fcn.0064a364
mov esi, eax
add esp, 8
test esi, esi
je 0x409a10
push esi
push 1
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.0064a21c
mov edx, dword [esp + 0x18]
push esi
push 1
push edx
lea eax, [esp + 0x278]
push eax
call fcn.0064a21c
push esi
call fcn.0064a03e
add esp, 0x24
pop esi
pop ebx
mov ecx, dword [esp + 0x2254]
xor ecx, esp
call fcn.0064815a
add esp, 0x2258
ret
Function at 0x40bfd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.006480e0
mov edi, dword [esp + 0x6c]
add esp, 0xc
xor eax, eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push edi
push eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
jne 0x40c041
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._CreateProcess___s_CreateProcess_failure_:__8.8x
push 1
call fcn.00409a30
add esp, 0x10
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret
cmp dword [esp + 0x64], 1
jne 0x40c055
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40c066
push eax
call edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c071
push eax
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x54
ret

Function at 0x40e960
Capabilities:
Get common file path

Disassembly:
push esi
push 0x412
mov esi, ecx
push 0
push esi
mov byte [esi + 0x412], 0
call fcn.006480e0
add esp, 0xc
push esi
push 0x209
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
mov eax, esi
je 0x40e993
mov byte [esi + 0x412], 1
pop esi
ret

Function at 0x40fc10
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x71d770]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.006480e0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 6
ja 0x40fc61
jne 0x40fc5f
cmp dword [ebp - 0x78], eax
jae 0x40fc61
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0064815a
add ebp, 0x98
leave
ret

Function at 0x410c61
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x71d770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.006480e0
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.006480e0
add esp, 0x18
test edi, edi
je 0x410d01
push edi
call fcn.0064b0d1
pop ecx
test eax, eax
jbe 0x410d01
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x410d01
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x685174
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00410c0a
add esp, 0x14
test eax, eax
jl 0x410d01
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x410d03
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0064815a
leave
ret
Function at 0x410d10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x18], 0
test ebx, ebx
jne 0x410d23
push 0x57
pop eax
leave
ret
push edi
mov edi, str.wintrust.dll
call fcn.00410c61
mov edi, eax
test edi, edi
jne 0x410d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410e01
push 0x7e
pop eax
jmp 0x410e01
push esi
call fcn.0040fc10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push edi
mov dword [ebp - 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push edi
mov dword [ebp - 4], eax
call esi
push str.WTHelperGetProvSignerFromChain
push edi
mov dword [ebp - 8], eax
call esi
push str.WTHelperGetProvCertFromChain
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x410dae
cmp dword [ebp - 8], eax
je 0x410dae
cmp dword [ebp - 0xc], eax
je 0x410dae
cmp dword [ebp - 0x10], eax
je 0x410dae
cmp dword [ebp - 0x14], eax
jne 0x410dc8
push str.WintrustLoadFunctionPointers
push edi
call esi
mov esi, eax
test esi, esi
jne 0x410dcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x410dbd
push 0x7f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x410e00
mov esi, dword [ebp - 0x18]
jmp 0x410dcf
xor eax, eax
push 0x18
push eax
push ebx
call fcn.006480e0
mov eax, dword [ebp - 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [ebp - 0x14], 0
mov dword [ebx], edi
mov dword [ebx + 0x10], eax
jne 0x410dfe
mov dword [ebx + 0x14], esi
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x41183e
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xf8
mov eax, dword [0x71d770]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
push ebx
push esi
mov dword [ebp - 0x8c], eax
cmp edi, ecx
je 0x4119f2
cmp dword [ebp + 0x78], ecx
jl 0x4119f2
jg 0x41187c
cmp dword [ebp + 0x74], ecx
jbe 0x4119f2
cmp eax, ecx
je 0x4119f2
cmp dword [ebp + 0x78], ecx
mov ebx, 0xf0
jg 0x41189f
jl 0x411895
cmp dword [ebp + 0x74], ebx
ja 0x41189f
mov eax, 0x22000009
jmp 0x4119f7
push ebx
push ecx
lea eax, [ebp - 0x88]
push eax
call fcn.006480e0
push edi
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x88]
push 0x40
push eax
call fcn.0064ead3
add esp, 0x1c
cmp eax, esi
je 0x4118d1
mov eax, 0x22000005
jmp 0x4119f7
push 2
lea eax, [ebp - 0x88]
push 0x68c3c8
push eax
call fcn.0064c6a1
add esp, 0xc
test eax, eax
jne 0x411895
movzx eax, byte [ebp - 0x49]
movzx ecx, byte [ebp - 0x4a]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4b]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 0x4c]
shl eax, 8
or eax, ecx
xor ecx, ecx
cmp dword [ebp + 0x78], ecx
jg 0x41191c
jl 0x411895
cmp dword [ebp + 0x74], eax
jbe 0x411895
push 0
push eax
push edi
call fcn.0064e791
add esp, 0xc
test eax, eax
jl 0x4118c7
push edi
push esi
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0064ead3
add esp, 0x10
cmp eax, esi
jne 0x4118c7
push 4
lea eax, [ebp - 0x48]
push 0x68c3c0
push eax
call fcn.0064c6a1
add esp, 0xc
test eax, eax
jne 0x411895
push edi
push esi
lea eax, [ebp - 0x44]
push 0x14
push eax
call fcn.0064ead3
add esp, 0x10
cmp eax, esi
jne 0x4118c7
push edi
push esi
lea eax, [ebp - 0x30]
push 2
push eax
call fcn.0064ead3
add esp, 0x10
cmp eax, esi
jne 0x4118c7
movzx ax, byte [ebp - 0x2f]
movzx cx, byte [ebp - 0x30]
shl ax, 8
or ax, cx
mov ecx, 0x20b
cmp ax, cx
jne 0x4119db
push edi
push esi
push 0x96
lea eax, [ebp - 0x2e]
push eax
call fcn.0064ead3
add esp, 0x10
cmp eax, esi
jne 0x4118c7
push ebx
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x8c]
call fcn.006493a0
add esp, 0xc
xor eax, eax
jmp 0x4119f7
mov ecx, 0x10b
cmp ax, cx
jne 0x411895
push edi
push esi
push 0x86
jmp 0x4119ad
mov eax, 0x22000001
mov ecx, dword [ebp + 0x68]
pop esi
xor ecx, ebp
pop ebx
call fcn.0064815a
add ebp, 0x6c
leave
ret