joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b3d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0x483618
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x108]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b460
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, esi
call fcn.0040e510
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00443153
mov esp, ebp
pop ebp
ret 4
Function at 0x40be50
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b136
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a62e4]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40bed1
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x40bec3
push str.NetBridge.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0040bd70
mov ecx, eax
test ecx, ecx
je 0x40c033
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.00409a60
test al, al
jne 0x40bf48
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf26
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040c6c0
mov esi, dword [ebp - 0x21c]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bf64
mov bl, 1
jmp 0x40bf72
push esi
call fcn.00433820
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bf91
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x40c013
cmp dword [edi], 0
jne 0x40bffa
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40c013
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40bffa
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x40c013
cmp dword [edi + 4], 0
je 0x40c013
cmp dword [edi + 0xc], 0
je 0x40c013
mov eax, 1
jmp 0x40c015
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 - 0x10]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00407850
int3
Function at 0x40c350
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a62e4]
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 esi, ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0040b3d0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c3b5
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x2c]
call fcn.00412140
mov ecx, esi
call fcn.00407aa0
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.00407f40
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.00407c60
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.00409710
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.00409e20
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.0040a0e0
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.00407870
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.004092f0
cmp byte [esi + 8], 0
je 0x40c52f
cmp byte [esi], 0
jne 0x40c52f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0xffffffff
push eax
push str.UEFISecureBootEnabled
push str.SYSTEMCurrentControlSetControlSecureBootState
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00432e10
xor eax, eax
mov dword [ebp - 0x30], 0
add esp, 0x10
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
jne 0x40c494
push 9
lea edi, [eax + 1]
push str.Supported
jmp 0x40c4ad
cmp eax, 1
jne 0x40c4a4
push 7
mov edi, eax
push str.Enabled
jmp 0x40c4ad
push 0x17
xor edi, edi
push str.Disabled___Not_Detected
lea ecx, [ebp - 0x40]
call fcn.0040e600
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00405810
push edi
push 9
mov ecx, esi
call fcn.0040c040
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40c50b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c501
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c595
push edx
push ecx
call fcn.00442ea6
add esp, 8
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.0040a400
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.00409b90
cmp byte [esi], 0
jne 0x40c52f
mov ecx, esi
call fcn.00408140
lea ecx, [esi + 0x2c]
call fcn.00412290
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40c579
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c56f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c59a
push edx
push ecx
call fcn.00442ea6
add esp, 8
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.00443153
mov esp, ebp
pop ebp
ret
call fcn.00453ee9
call fcn.00453ee9
int3
Function at 0x40ca30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp + 8], 0
mov dword [esi + 0x28], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 8], al
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40caa0
push 0
push 0
mov byte [esi], 0
call fcn.0045e48a
add esp, 0x18
mov dword [esi + 0x24], eax
mov al, 1
pop esi
pop ebp
ret 8

Function at 0x40cad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40cb29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cb29
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40cb1a
cmp esi, edx
jae 0x40cb29
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40cb08
cmp esi, edx
jae 0x40cb29
cmp word [esi], 0
je 0x40cb29
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40cc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40cce1
cmp byte [esi + 0x3d], 0
je 0x40cce1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40cc97
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40cca9
sub eax, 1
je 0x40ccad
sub eax, 2
je 0x40cce1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ccca
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045dec7
add esp, 0x10
cmp edi, eax
jne 0x40cc97
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00443153
mov esp, ebp
pop ebp
ret
Function at 0x40d740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b2a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a62e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00430db0
mov edi, eax
add esp, 4
test edi, edi
je 0x40d7eb
push 1
mov dword [ebp - 4], 0
call fcn.00428a77
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40f870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40f8a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40f8dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40f8dc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40f9c1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40f904
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40f937
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045d5e4
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40f9c1
cmp eax, 1
jle 0x40f994
cmp eax, 3
jne 0x40f9c1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004042d0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443153
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40f9b1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045dec7
add esp, 0x10
cmp edi, eax
jne 0x40f9c1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40f8c7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443153
mov esp, ebp
pop ebp
ret 4
Function at 0x410af0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x410b14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410be0
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x410b35
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x410b37
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x410bbf
jg 0x410b4a
test esi, esi
je 0x410bbf
test ecx, ecx
jl 0x410b8c
jg 0x410b54
test eax, eax
je 0x410b8c
cmp ebx, ecx
jg 0x410b66
jl 0x410b5e
cmp esi, eax
jae 0x410b66
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00450240
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x410b92
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x410bbf
jg 0x410b9c
test esi, esi
je 0x410bbf
cmp dword [edi + 0x4c], 0
je 0x410bbf
mov ecx, edi
call fcn.0040df30
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0045d8b4
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x410db4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410e70
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x410dd5
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x410dd7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x410e54
jg 0x410dea
test esi, esi
je 0x410e54
test ecx, ecx
jl 0x410e2e
jg 0x410df4
test eax, eax
je 0x410e2e
cmp edi, ecx
jg 0x410e06
jl 0x410dfe
cmp esi, eax
jae 0x410e06
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00450240
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x410e31
mov edx, dword [ebp + 8]
test edi, edi
jl 0x410e54
jg 0x410e3b
test esi, esi
je 0x410e54
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x410e54
push eax
push esi
push 1
push edx
call fcn.0045dec7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412140
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b5c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a62e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x412183
cmp eax, 0x80010106
jne 0x412264
push 0
push 0
push 0
push 3
push 4
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea ebx, [edi + 0x10]
push ebx
push 0x488b60
push 1
push 0
push 0x488c30
call dword [sym.imp.ole32.dll_CoCreateInstance]
push str.ROOTCIMV2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x412276
mov ecx, dword [ebx]
lea edx, [edi + 8]
push edx
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push esi
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edx
call dword [eax + 0xc]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str.rootcimv2SecurityMicrosoftTPM
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x412280
mov ecx, dword [ebx]
add edi, 0xc
push edi
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push esi
push ecx
mov dword [ebp - 4], 1
call dword [eax + 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ole32.dll_CoSetProxyBlanket]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [eax]
call esi
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [edi]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.00407850
push 0x8007000e
call fcn.00407850
int3
Function at 0x412c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b718
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4a62e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.js_basic.dll
lea esi, [edi + 4]
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004129f0
push str.7z.dll
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.004129f0
push str._netul.dll
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.004129f0
push str.WebView.dll
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.004129f0
push str.cefcefview.exe
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.004129f0
add esp, 0x3c
push dword [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 4
call esi
test eax, eax
je 0x412d55
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x412d55
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x412d55
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x412d55
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x412d55
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00413450
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.004137b0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x412e04
push eax
push dword [ebp - 0x14]
call fcn.00459d9f
add esp, 8
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x412d48
call fcn.004062f0
lea ecx, [ebp - 0x14]
call fcn.004062f0
mov edi, 1
jmp 0x412d57
call fcn.004062f0
lea ecx, [ebp - 0x14]
call fcn.004062f0
xor edi, edi
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412d78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412d96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412db4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412dd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x412df1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407850
int3
Function at 0x4138e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a62e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0x208
push 0
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4844b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004383f0
lea eax, [ebp - 0x20c]
add esp, 4
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413950
sub eax, edx
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c6c0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00443153
mov esp, ebp
pop ebp
ret 4

Function at 0x413990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b8f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a62e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4139e3
xor eax, 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 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4139cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [ebx + 4]
mov esi, eax
push ecx
lea ecx, [ebp + 0x10]
call fcn.00411340
push 0x4844ac
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0
call fcn.00412b30
push dword [ebp + 0x14]
lea ecx, [ebp + 0x10]
call fcn.00412b30
push dword [ebp + 0xc]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.00413fd0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x413a5e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x413b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov esi, ecx
push esi
push 0x414130
push 0
push 0
call fcn.0045e48a
add esp, 0x18
mov dword [esi + 8], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret