joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bf9
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x455918
call fcn.0042794e
mov ebx, ecx
and dword [ebx + 0x10], 0
lea edi, [ebx + 0xc]
mov ecx, edi
call fcn.00402e93
lea ecx, [ebx + 8]
call fcn.00402e93
lea ecx, [ebp - 0x10]
call fcn.004015de
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
sub eax, 1
je 0x403c81
sub eax, 1
je 0x403c5e
sub eax, 4
jne 0x403cb0
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00403d41
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004020f8
test eax, eax
jne 0x403cb0
push str.Action_failed
jmp 0x403c95
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00402828
test eax, eax
je 0x403c90
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00403d41
push esi
mov ecx, ebx
call fcn.0040218a
jmp 0x403cb0
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00402828
test eax, eax
jne 0x403c9e
push str.Condition_failed
mov ecx, edi
call fcn.00405b9c
jmp 0x403cb0
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00403d41
push esi
mov ecx, ebx
call fcn.00401928
push dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push 0x4598ec
push eax
call fcn.0040302b
add esp, 0xc
mov ecx, 0x476210
push dword [edi]
mov edi, dword [ebp - 0x10]
push dword [ebx + 8]
push edi
push dword [esi + 4]
push str.AddActionResult
call fcn.0040696f
xor eax, eax
lea ecx, [ebx + 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp dword [ebx + 0x1c], eax
jle 0x403d28
push eax
lea ecx, [ebx + 0x14]
call fcn.00402dfe
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004029da
pop ecx
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.0040538e
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebx + 0x1c]
jl 0x403cef
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0
call fcn.0041b82f
lea ecx, [edi - 0x10]
call fcn.0040538e
call fcn.0042791c
ret 8
Function at 0x403d41
Capabilities:
Set file attributes

Disassembly:
push 0x254
mov eax, 0x455c47
call fcn.00427981
mov edi, ecx
lea ecx, [ebp - 0x220]
call fcn.004015de
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], ebx
je 0x403f85
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x24c]
call fcn.00419c33
push ebx
push 0x40
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041a28b
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x24c]
push ebx
push ebx
push ebx
call dword [eax + 0x2c]
mov eax, dword [edi]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x403f6f
mov ecx, dword [edi]
lea eax, [ebp - 0x224]
push eax
add ecx, 0x58
call fcn.004034d1
mov esi, dword [eax]
mov eax, dword [ebp + 8]
cmp dword [esi + 8], eax
jne 0x403f62
mov eax, dword [esi + 0x10]
sub eax, 0x10
push eax
call fcn.004029da
add eax, 0x10
pop ecx
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x476234
call fcn.0040bb9a
push ebx
push dword [ebp - 0x21c]
cmp dword [esi + 0xc], ebx
je 0x403e29
call fcn.00429073
jmp 0x403f50
call fcn.00429073
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x403e6f
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x228]
call fcn.004014dd
push 0x12d
push dword [eax]
mov byte [ebp - 4], 3
push ebx
call fcn.004172ac
mov ecx, dword [ebp - 0x228]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.0040538e
push dword [esi + 4]
lea eax, [ebp - 0x220]
push dword [ebp - 0x21c]
push str._s_s
push eax
call fcn.0040302b
mov ecx, dword [esi + 0x38]
add esp, 0x10
mov edx, dword [esi + 0x3c]
mov eax, ecx
or eax, edx
jne 0x403e9e
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
push 0x1001
push dword [ebp - 0x220]
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x22c], edx
call fcn.00419bf7
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push dword [esi + 0x34]
lea ecx, [ebp - 0x24c]
push dword [esi + 0x30]
call fcn.0041a4d6
mov eax, dword [esi + 0x38]
lea ecx, [edi + 0x28]
or eax, dword [esi + 0x3c]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x24c]
push eax
je 0x403eff
call fcn.00415093
jmp 0x403f04
call fcn.00414fa8
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x238], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x238]
push eax
push ebx
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea ecx, [ebp - 0x260]
call fcn.00419f60
push dword [esi + 0x1c]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x260]
call fcn.00419cb7
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.0040538e
cmp dword [ebp - 0x224], 0
jne 0x403dc9
lea ecx, [ebp - 0x24c]
call fcn.00419f60
lea ecx, [ebp - 0x24c]
call fcn.00419cb7
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.00427930
ret 4
Function at 0x403f9b
Capabilities:
Copy file

Disassembly:
push 0x20
mov eax, 0x455ca6
call fcn.0042794e
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004015de
lea ecx, [ebp - 0x1c]
call fcn.004015de
mov eax, dword [ebx]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40410d
mov ecx, dword [ebx]
lea eax, [ebp - 0x20]
push eax
add ecx, 0x58
call fcn.004034d1
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
cmp dword [ebx + 8], eax
jne 0x404100
mov eax, dword [ebx + 0x10]
sub eax, 0x10
push eax
call fcn.004029da
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x10]
sub eax, 0x10
mov byte [ebp - 4], 3
push eax
call fcn.004029da
pop ecx
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
push dword [0x476224]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push str.PkgDir
call fcn.004055b5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push str.PkgDir
call fcn.004055b5
cmp dword [ebx + 0xc], 0
mov esi, dword [ebp - 0x18]
push 0
push esi
je 0x40405a
call fcn.00429073
jmp 0x4040e9
call fcn.00429073
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x40409f
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x28]
call fcn.004014dd
push 0xf3
push dword [eax]
mov byte [ebp - 4], 5
push dword [ebp - 0x24]
call fcn.004172ac
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.0040538e
push dword [ebx + 4]
mov edi, str._s_s
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push edi
push eax
call fcn.0040302b
push dword [ebx + 4]
lea eax, [ebp - 0x1c]
push esi
push edi
push eax
call fcn.0040302b
mov edi, dword [ebp - 0x14]
add esp, 0x20
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4040e9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004172ac
add esp, 0xc
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040538e
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.0040538e
cmp dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x2c]
jne 0x403fd7
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040538e
lea ecx, [edi - 0x10]
call fcn.0040538e
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.0042791c
ret 8
Function at 0x404133
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x455cd0
call fcn.0042794e
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi], eax
mov ecx, str.Starting_Installation.
cmp dword [0x476200], ebx
mov eax, str.Starting_Uninstallation.
mov dword [ebp - 0x10], ebx
cmove eax, ecx
push eax
call fcn.004182da
pop ecx
call fcn.00405ff2
push 0xffffffffffffffff
mov ecx, edi
call fcn.00403d41
push ebx
push dword [0x476228]
mov esi, 0x476210
mov ecx, esi
call fcn.004064cd
push 0x41815e
push ebx
push dword [0x476230]
mov ecx, esi
push str.InitSession
call fcn.00406b23
cmp dword [0x476200], ebx
jne 0x4041d9
mov eax, dword [edi]
push ecx
mov esi, esp
mov dword [ebp + 8], esi
mov eax, dword [eax + 0x2c]
sub eax, 0x10
push eax
call fcn.004029da
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 8]
pop ecx
push eax
call fcn.004053d2
pop ecx
pop ecx
xor ecx, ecx
mov eax, dword [eax]
inc ecx
cmp dword [eax - 0xc], ebx
je 0x4041dc
mov bl, cl
jmp 0x4041dc
mov ecx, dword [ebp - 0x10]
test cl, 1
je 0x4041ec
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040538e
test bl, bl
je 0x40421c
push ecx
mov ecx, esp
push str.cond_pkg
call fcn.00401534
mov ecx, edi
call fcn.004028e4
test eax, eax
jne 0x40421c
mov dword [0x47620c], 1
mov eax, str.Installation_canceled.
jmp 0x40435f
mov ecx, dword [edi]
xor esi, esi
cmp dword [ecx + 0x38], esi
jle 0x40432c
mov eax, dword [0x476208]
test eax, eax
jne 0x404331
add ecx, 0x30
push esi
call fcn.00402e1d
cmp dword [0x476200], 0
mov dword [ebp - 0x10], eax
je 0x404251
cmp dword [eax + 0x10], 1
jmp 0x404255
cmp dword [eax + 0x10], 0
jne 0x404320
cmp dword [eax + 0x14], 0
jne 0x404320
push dword [eax + 4]
push str.Action:__s...
call fcn.004182da
push esi
push dword [0x476228]
lea ebx, [edi + 4]
push 0x459d4c
push ebx
call fcn.0040302b
mov ecx, dword [edi]
add esp, 0x18
push esi
call fcn.00407fc8
test al, al
je 0x404304
mov eax, dword [edi]
cmp dword [eax + 0x18], 0
je 0x4042dd
push 0
push dword [ebx]
call fcn.00429073
mov dword [ebp + 8], eax
test eax, eax
je 0x4042dd
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x14]
call fcn.004014dd
and dword [ebp - 4], 0
push 0x62
push dword [eax]
push dword [ebp + 8]
call fcn.004172ac
mov ecx, dword [ebp - 0x14]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
push 0
push dword [ebx]
call fcn.0042914c
test eax, eax
je 0x4042f6
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x404304
push 0
push dword [ebx]
push 3
call fcn.004172ac
add esp, 0xc
push esi
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00403bf9
push dword [0x476228]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00405ff2
mov ecx, dword [edi]
inc esi
cmp esi, dword [ecx + 0x38]
jl 0x404229
mov eax, dword [0x476208]
cmp dword [0x476200], 0
je 0x404348
and dword [0x476208], 0
mov eax, str.Uninstallation_complete.
jmp 0x40435f
test eax, eax
je 0x404353
mov eax, str.Installation_aborted
jmp 0x40435f
mov ecx, edi
call fcn.00402474
mov eax, str.Installation_complete.
push eax
call fcn.004182da
pop ecx
call fcn.0042791c
ret 4
Function at 0x405f93
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 0x405fed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405fed
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x405fdd
cmp esi, ecx
jae 0x405fed
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x405fcb
cmp esi, ecx
jae 0x405fed
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x405fef
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4064fe
Capabilities:
Load windows common language runtime

Disassembly:
push 0xc
mov eax, 0x455fc4
call fcn.0042794e
mov dword [ebp - 0x14], ecx
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x406553
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x10]
call fcn.004014dd
and dword [ebp - 4], 0
push 0x40
push dword [eax]
call esi
push eax
call fcn.004172ac
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
push str.CorBindToRuntimeEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4065a6
call esi
push edi
mov esi, eax
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x18]
call fcn.004014dd
push 0x49
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
add esi, 8
push esi
push 0x45a4dc
push 0x45a4cc
push 2
push 0
push str.v4.0.30319
call eax
test eax, eax
jns 0x40661f
push esi
push 0x45a4dc
push 0x45a4cc
push 2
push 0
push str.v2.0.50727
call dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x406619
push edi
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x10]
call fcn.004014dd
push 0x57
push dword [eax]
mov dword [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.004172ac
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x40666a
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
and dword [esi], 0
push edi
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x14]
call fcn.004014dd
push 0x64
push dword [eax]
mov dword [ebp - 4], 3
push dword [ebp - 0x18]
call fcn.004172ac
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.0040538e
push edi
call ebx
call fcn.0042791c
ret
Function at 0x406673
Capabilities:
Load windows common language runtime

Disassembly:
push 0x10
mov eax, 0x456006
call fcn.0042794e
mov dword [ebp - 0x14], ecx
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4066c8
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x10]
call fcn.004014dd
and dword [ebp - 4], 0
push 0x73
push dword [eax]
call esi
push eax
call fcn.004172ac
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
push str.CorBindToRuntimeEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40671b
call esi
push edi
mov esi, eax
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x18]
call fcn.004014dd
push 0x7c
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
add esi, 8
push esi
push 0x45a4dc
push 0x45a4cc
push 2
push 0
push str.v2.0.50727
call eax
test eax, eax
jns 0x406793
push esi
push 0x45a4dc
push 0x45a4cc
push 2
push 0
push str.v4.0.30319
call dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x406799
push edi
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x14]
call fcn.004014dd
push 0x8b
push dword [eax]
mov dword [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.004172ac
mov ecx, dword [ebp - 0x14]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
jmp 0x406799
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x4067e7
mov ecx, dword [esi]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
and dword [esi], 0
push edi
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x1c]
call fcn.004014dd
push 0x98
push dword [eax]
mov dword [ebp - 4], 3
push dword [ebp - 0x18]
call fcn.004172ac
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.0040538e
push edi
call ebx
call fcn.0042791c
ret
Function at 0x40be8f
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4566f6
call fcn.0042794e
and dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004015de
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00405176
push ebx
mov ecx, edi
mov esi, eax
call fcn.004058e5
push ebx
push esi
push 0x45a240
call fcn.00428b77
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.004053a6
mov ebx, str.D:_source_aprelSibSiblSiblEnvTools.cpp
test esi, esi
je 0x40bf1a
push ebx
lea ecx, [ebp - 0x14]
call fcn.004014dd
push 0x11e
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.0040538e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [edi]
call fcn.00429073
mov esi, eax
test esi, esi
je 0x40bf5c
push ebx
lea ecx, [ebp - 0x14]
call fcn.004014dd
push 0x123
push dword [eax]
mov dword [ebp - 4], 2
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040538e
mov eax, edi
call fcn.0042791c
ret
Function at 0x40c059
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x5c
mov eax, 0x456748
call fcn.00427981
mov ebx, ecx
mov edi, 0x474008
lea ecx, [ebp - 0x5c]
call fcn.004015de
and dword [ebp - 4], 0
cmp dword [edi], 0xffffffff
jne 0x40c0e9
push dword [edi - 8]
lea ecx, [ebp - 0x68]
call fcn.00401534
push str.Temp
push dword [eax]
call fcn.00405c8e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040538e
test esi, esi
jne 0x40c0ae
push 0x476228
jmp 0x40c0e1
push dword [edi - 8]
lea ecx, [ebp - 0x64]
call fcn.00401534
push str.PkgDir
push dword [eax]
call fcn.00405c8e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040538e
test esi, esi
jne 0x40c217
push 0x476224
lea ecx, [ebp - 0x5c]
call fcn.004016cc
cmp dword [edi], 0
lea ecx, [ebp - 0x5c]
push 0x104
jne 0x40c11b
call fcn.00405176
push 0x104
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.004058e5
push 0x104
push esi
push dword [edi - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40c13d
call fcn.00405176
push 0x104
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.004058e5
push esi
xor eax, eax
push eax
push eax
push dword [edi]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x5c]
call fcn.004053a6
push 0x4598b4
lea ecx, [ebp - 0x5c]
call fcn.00405e3f
lea ecx, [ebp - 0x5c]
call fcn.00405eb8
mov ecx, eax
call fcn.00405d73
push 0x4598f4
push dword [ebp - 0x5c]
call fcn.00405c8e
pop ecx
pop ecx
test eax, eax
je 0x40c1ef
push 0x4598b4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004017d1
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040b886
mov ecx, dword [ebp - 0x60]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0040538e
push dword [edi - 8]
lea ecx, [ebp - 0x58]
call fcn.0040b886
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x40]
call fcn.0040b857
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0x1c]
call fcn.0040a7ed
lea ecx, [ebp - 0x40]
call fcn.0040c68c
lea ecx, [ebp - 0x58]
call fcn.0040c68c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040c68c
cmp dword [edi], 0xffffffff
je 0x40c217
push dword [edi - 8]
lea ecx, [ebp - 0x28]
call fcn.0040b886
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 0x28]
call fcn.0040a81b
lea ecx, [ebp - 0x28]
call fcn.0040c68c
mov ecx, dword [ebp - 0x5c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040538e
add edi, 0x10
cmp edi, 0x474228
jl 0x40c06c
push dword [ebx + 0x2c]
lea edi, [ebx + 0x28]
push dword [edi]
call fcn.0040b75c
mov esi, dword [ebx + 0x2c]
lea eax, [ebp - 0x60]
push esi
push dword [edi]
push eax
call fcn.0040b79a
add esp, 0x14
mov ecx, edi
push esi
push dword [eax]
lea eax, [ebp - 0x64]
push eax
call fcn.0040c762
push dword [ebp - 0x60]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
push 0x30
pop ecx
cdq
idiv ecx
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call fcn.0040b4d5
add esp, 0x10
call fcn.00427930
ret
Function at 0x40c386
Capabilities:
Access the windows event log

Disassembly:
push 4
mov eax, 0x456533
call fcn.0042794e
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 0xc], edi
je 0x40c40f
push 0x45b59c
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40c40f
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
setne bl
add ebx, 0x6d7
cmp dword [ebp + 0x10], edi
je 0x40c3ca
inc edi
jmp 0x40c3d3
cmp dword [ebp + 0x14], edi
push 4
pop eax
cmovne edi, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40c3ea
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00402fbf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0
push eax
push 0
push 1
call fcn.0040bf64
push eax
push ebx
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.0042791c
ret

Function at 0x40c82d
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4746fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
and dword [ebp - 0x38], 0
xor eax, eax
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
push dword [ebp + 0xc]
lea edi, [ebp - 0x14]
movlpd qword [ebp - 0x28], xmm0
stosd dword es:[edi], eax
or ebx, 0xffffffff
push 0x45a6fc
push 0x10
movlpd qword [ebp - 0x20], xmm0
stosd dword es:[edi], eax
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 6
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040cf54
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40c90a
mov esi, dword [ebp - 0x18]
jmp 0x40c8e0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40c8e6
push dword [esi + 0x10]
push dword [esi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40c8eb
call fcn.0042fb84
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
or ebx, 0xffffffff
test esi, esi
jne 0x40c8a7
jmp 0x40c8eb
call fcn.0042fb84
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp ebx, 0xffffffff
je 0x40c90a
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042790e
leave
ret
call fcn.0043b87e
int3