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

Disassembly:
push 0x20
mov eax, 0x57abff
call fcn.0054d3c4
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401fc2
lea ecx, [ebp - 0x1c]
call fcn.00401fc2
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 0x404da2
mov ecx, dword [ebx]
lea eax, [ebp - 0x20]
add ecx, 0x58
push eax
call fcn.00404155
mov ebx, dword [eax]
mov eax, dword [ebp + 8]
cmp dword [ebx + 8], eax
jne 0x404d95
mov eax, dword [ebx + 0x10]
sub eax, 0x10
push eax
call fcn.00403470
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.00403470
pop ecx
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
push dword [0x5eac54]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push str.PkgDir
call fcn.0040635c
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push str.PkgDir
call fcn.0040635c
cmp dword [ebx + 0xc], 0
mov esi, dword [ebp - 0x18]
push 0
push esi
je 0x404cee
call fcn.0054ed5e
jmp 0x404d7e
call fcn.0054ed5e
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x404d33
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x28]
call fcn.00401e70
push 0xf3
push dword [eax]
mov byte [ebp - 4], 5
push dword [ebp - 0x24]
call fcn.00418676
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00406137
push dword [ebx + 4]
mov edi, str._s_s
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push edi
push eax
call fcn.00403c75
push dword [ebx + 4]
lea eax, [ebp - 0x1c]
push esi
push edi
push eax
call fcn.00403c75
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 0x404d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push edi
push eax
call fcn.00418676
add esp, 0xc
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406137
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 2
call fcn.00406137
cmp dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x2c]
jne 0x404c6b
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406137
lea ecx, [edi - 0x10]
call fcn.00406137
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00406137
call fcn.0054d392
ret 8
Function at 0x404dc8
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x57ac29
call fcn.0054d3c4
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [edi], eax
mov ecx, str.Starting_Installation.
cmp dword [0x5eac30], ebx
mov eax, str.Starting_Uninstallation.
mov dword [ebp - 0x10], ebx
cmove eax, ecx
push eax
call fcn.0041955c
pop ecx
call fcn.00406def
push 0xffffffffffffffff
mov ecx, edi
call fcn.004049d5
push ebx
push dword [0x5eac58]
mov esi, 0x5eac40
mov ecx, esi
call fcn.004072ce
push 0x4193de
push ebx
push dword [0x5eac60]
mov ecx, esi
push str.InitSession
call fcn.00407928
cmp dword [0x5eac30], ebx
jne 0x404e6e
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.00403470
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp + 8]
pop ecx
push eax
call fcn.0040617b
pop ecx
pop ecx
xor ecx, ecx
mov eax, dword [eax]
inc ecx
cmp dword [eax - 0xc], ebx
je 0x404e71
mov bl, cl
jmp 0x404e71
mov ecx, dword [ebp - 0x10]
test cl, 1
je 0x404e81
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00406137
test bl, bl
je 0x404eb1
push ecx
mov ecx, esp
push str.cond_pkg
call fcn.00401ed2
mov ecx, edi
call fcn.00403371
test eax, eax
jne 0x404eb1
mov dword [0x5eac3c], 1
mov eax, str.Installation_canceled.
jmp 0x404ff4
mov ecx, dword [edi]
xor esi, esi
cmp dword [ecx + 0x38], esi
jle 0x404fc1
mov eax, dword [0x5eac38]
test eax, eax
jne 0x404fc6
add ecx, 0x30
push esi
call fcn.004039fd
cmp dword [0x5eac30], 0
mov dword [ebp - 0x10], eax
je 0x404ee6
cmp dword [eax + 0x10], 1
jmp 0x404eea
cmp dword [eax + 0x10], 0
jne 0x404fb5
cmp dword [eax + 0x14], 0
jne 0x404fb5
push dword [eax + 4]
push str.Action:__s...
call fcn.0041955c
push esi
push dword [0x5eac58]
lea ebx, [edi + 4]
push 0x58c458
push ebx
call fcn.00403c75
mov ecx, dword [edi]
add esp, 0x18
push esi
call fcn.00408e2a
test al, al
je 0x404f99
mov eax, dword [edi]
cmp dword [eax + 0x18], 0
je 0x404f72
push 0
push dword [ebx]
call fcn.0054ed5e
mov dword [ebp + 8], eax
test eax, eax
je 0x404f72
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x14]
call fcn.00401e70
and dword [ebp - 4], 0
push 0x62
push dword [eax]
push dword [ebp + 8]
call fcn.00418676
mov ecx, dword [ebp - 0x14]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
push 0
push dword [ebx]
call fcn.0054ee37
test eax, eax
je 0x404f8b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x404f99
push 0
push dword [ebx]
push 3
call fcn.00418676
add esp, 0xc
push esi
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040488d
push dword [0x5eac58]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00406def
mov ecx, dword [edi]
inc esi
cmp esi, dword [ecx + 0x38]
jl 0x404ebe
mov eax, dword [0x5eac38]
cmp dword [0x5eac30], 0
je 0x404fdd
and dword [0x5eac38], 0
mov eax, str.Uninstallation_complete.
jmp 0x404ff4
test eax, eax
je 0x404fe8
mov eax, str.Installation_aborted
jmp 0x404ff4
mov ecx, edi
call fcn.00402efe
mov eax, str.Installation_complete.
push eax
call fcn.0041955c
pop ecx
call fcn.0054d392
ret 4
Function at 0x406a0b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x406a1d
push 0xd
pop eax
jmp 0x406a4f
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x406a26
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x406d90
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 0x406dea
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406dea
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 0x406dda
cmp esi, ecx
jae 0x406dea
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x406dc8
cmp esi, ecx
jae 0x406dea
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x406dec
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4072ff
Capabilities:
Load windows common language runtime

Disassembly:
push 0xc
mov eax, 0x57af3a
call fcn.0054d3c4
mov dword [ebp - 0x14], ecx
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x407352
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x10]
call fcn.00401e70
and dword [ebp - 4], edi
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x40
push esi
push eax
call fcn.00418676
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
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 0x4073a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x18]
call fcn.00401e70
push 0x49
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
add esi, 8
push esi
push 0x58cbe4
push 0x58cbd4
push 2
push 0
push str.v4.0.30319
call eax
test eax, eax
jns 0x407422
push esi
push 0x58cbe4
push 0x58cbd4
push 2
push 0
push str.v2.0.50727
call dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x40741c
push edi
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x10]
call fcn.00401e70
push 0x57
push dword [eax]
mov dword [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.00418676
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
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 0x40746d
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.00401e70
push 0x64
push dword [eax]
mov dword [ebp - 4], 3
push dword [ebp - 0x18]
call fcn.00418676
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00406137
push edi
call ebx
call fcn.0054d392
ret
Function at 0x407476
Capabilities:
Load windows common language runtime

Disassembly:
push 0x10
mov eax, 0x57af7c
call fcn.0054d3c4
mov dword [ebp - 0x14], ecx
push str.mscoree.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x4074c9
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x10]
call fcn.00401e70
and dword [ebp - 4], edi
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x73
push esi
push eax
call fcn.00418676
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
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 0x407520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x18]
call fcn.00401e70
push 0x7c
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
add esi, 8
push esi
push 0x58cbe4
push 0x58cbd4
push 2
push 0
push str.v2.0.50727
call eax
test eax, eax
jns 0x407598
push esi
push 0x58cbe4
push 0x58cbd4
push 2
push 0
push str.v4.0.30319
call dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
jns 0x40759e
push edi
call ebx
push str.D:_source_aprelSibSiblSiblClrHost.cpp
lea ecx, [ebp - 0x14]
call fcn.00401e70
push 0x8b
push dword [eax]
mov dword [ebp - 4], 2
push dword [ebp - 0x18]
call fcn.00418676
mov ecx, dword [ebp - 0x14]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
jmp 0x40759e
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 0x4075ec
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.00401e70
push 0x98
push dword [eax]
mov dword [ebp - 4], 3
push dword [ebp - 0x18]
call fcn.00418676
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00406137
push edi
call ebx
call fcn.0054d392
ret
Function at 0x40cfa5
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x57b6a7
call fcn.0054d3c4
and dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401fc2
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00405e6c
push ebx
mov ecx, edi
mov esi, eax
call fcn.00406699
push ebx
push esi
push 0x58c948
call fcn.0054e862
push 0xffffffffffffffff
mov ecx, edi
mov esi, eax
call fcn.0040614f
mov ebx, str.D:_source_aprelSibSiblSiblEnvTools.cpp
test esi, esi
je 0x40d030
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401e70
push 0x11e
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00406137
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [edi]
call fcn.0054ed5e
mov esi, eax
test esi, esi
je 0x40d072
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401e70
push 0x123
push dword [eax]
mov dword [ebp - 4], 2
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00406137
mov eax, edi
call fcn.0054d392
ret
Function at 0x40d175
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0x60
mov eax, 0x57b6f9
call fcn.0054d3f7
mov ebx, ecx
mov dword [ebp - 0x60], ebx
mov edi, 0x5e5008
lea ecx, [ebp - 0x5c]
call fcn.00401fc2
and dword [ebp - 4], 0
cmp dword [edi], 0xffffffff
jne 0x40d209
push dword [edi - 8]
lea ecx, [ebp - 0x6c]
call fcn.00401ed2
push str.Temp
push eax
call fcn.00402189
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
mov bl, al
add ecx, 0xfffffff0
call fcn.00406137
test bl, bl
je 0x40d1cc
push 0x5eac58
jmp 0x40d1fe
push dword [edi - 8]
lea ecx, [ebp - 0x68]
call fcn.00401ed2
push str.PkgDir
push eax
call fcn.00402189
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov bl, al
add ecx, 0xfffffff0
call fcn.00406137
test bl, bl
je 0x40d335
push 0x5eac54
lea ecx, [ebp - 0x5c]
call fcn.004020eb
mov ebx, dword [ebp - 0x60]
cmp dword [edi], 0
lea ecx, [ebp - 0x5c]
push 0x104
jne 0x40d23b
call fcn.00405e6c
push 0x104
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00406699
push 0x104
push esi
push dword [edi - 4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40d25d
call fcn.00405e6c
push 0x104
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.00406699
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.0040614f
mov esi, 0x58bf8c
lea ecx, [ebp - 0x5c]
push esi
call fcn.00406c3c
lea ecx, [ebp - 0x5c]
call fcn.00406cb5
mov ecx, eax
call fcn.00406b70
lea eax, [ebp - 0x5c]
push 0x58c00c
push eax
call fcn.004021e3
pop ecx
pop ecx
test al, al
je 0x40d30d
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040228d
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040c91b
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00406137
push dword [edi - 8]
lea ecx, [ebp - 0x58]
call fcn.0040c91b
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c8ed
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0x1c]
call fcn.0040b884
lea ecx, [ebp - 0x40]
call fcn.0040d7ad
lea ecx, [ebp - 0x58]
call fcn.0040d7ad
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040d7ad
cmp dword [edi], 0xffffffff
je 0x40d335
push dword [edi - 8]
lea ecx, [ebp - 0x28]
call fcn.0040c91b
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 0x28]
call fcn.0040b8b2
lea ecx, [ebp - 0x28]
call fcn.0040d7ad
mov ecx, dword [ebp - 0x5c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00406137
mov ebx, dword [ebp - 0x60]
add edi, 0x10
cmp edi, 0x5e5228
jl 0x40d18b
push dword [ebx + 0x2c]
lea edi, [ebx + 0x28]
push dword [edi]
call fcn.0040c7f2
mov esi, dword [ebx + 0x2c]
lea eax, [ebp - 0x64]
push esi
push dword [edi]
push eax
call fcn.0040c830
add esp, 0x14
mov ecx, edi
push esi
push dword [eax]
lea eax, [ebp - 0x68]
push eax
call fcn.0040d8b9
push dword [ebp - 0x64]
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.0040c56b
add esp, 0x10
call fcn.0054d3a6
ret
Function at 0x40d4a9
Capabilities:
Access the windows event log

Disassembly:
push 4
mov eax, 0x57b4e4
call fcn.0054d3c4
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 0xc], edi
je 0x40d532
push 0x58dcac
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40d532
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
setne bl
add ebx, 0x6d7
cmp dword [ebp + 0x10], edi
je 0x40d4ed
inc edi
jmp 0x40d4f6
cmp dword [ebp + 0x14], edi
push 4
pop eax
cmovne edi, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x40d50d
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00403c07
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0
push eax
push 0
push 1
call fcn.0040d07a
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.00406137
call fcn.0054d392
ret

Function at 0x40d9a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5e61a0]
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 0x58cdfc
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.0040e0cc
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 0x40da7d
mov esi, dword [ebp - 0x18]
jmp 0x40da53
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 0x40da59
push dword [esi + 0x10]
push dword [esi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40da5e
call fcn.005558bd
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
or ebx, 0xffffffff
test esi, esi
jne 0x40da1a
jmp 0x40da5e
call fcn.005558bd
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp ebx, 0xffffffff
je 0x40da7d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054d384
leave
ret
call fcn.0055f89d
int3
Function at 0x40dc47
Capabilities:
Initialize winsock library
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0x198
mov eax, 0x57b802
call fcn.0054d3f7
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1a4]
call fcn.00401fc2
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 1
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40dc8a
mov ecx, dword [ebp - 0x1a4]
add ecx, 0xfffffff0
jmp 0x40dd00
mov eax, dword [ebp + 8]
push eax
push dword [eax - 0xc]
lea eax, [ebp - 0x1a4]
push str.POST__collect_HTTP_1.1_r_nContent_Type:_application_x_www_form_urlencoded_r_nHost:_www.google_analytics.com_r_nContent_Length:__d_r_n_r_n_s
push eax
call fcn.00409b8b
mov esi, dword [ebp - 0x1a4]
push 0x50
push str.www.google_analytics.com
mov ebx, dword [esi - 0xc]
call fcn.0040d9a0
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x40dcea
cmp dword [esi - 4], 1
jle 0x40dcdb
push dword [esi - 0xc]
lea ecx, [ebp - 0x1a4]
call fcn.00403b9b
mov esi, dword [ebp - 0x1a4]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
je 0x40dcf0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esi - 0x10]
call fcn.00406137
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406137
call fcn.0054d3a6
ret

Function at 0x40dd16
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x57ac53
call fcn.0054d3c4
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov edi, dword [eax - 0xc]
lea eax, [edi + 1]
push eax
call fcn.0041a210
pop ecx
mov ecx, dword [ebp + 8]
mov esi, eax
cmp dword [ecx - 4], 1
mov ebx, dword [ecx - 0xc]
jle 0x40dd50
push ebx
lea ecx, [ebp + 8]
call fcn.00403b9b
mov ecx, dword [ebp + 8]
push ebx
push ecx
push esi
call fcn.00552020
add esp, 0xc
xor eax, eax
mov byte [esi + edi], al
push eax
push eax
push esi
push 0x40dd81
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00406137
call fcn.0054d392
ret
Function at 0x416348
Capabilities:
Compress data via winapi

Disassembly:
push 0xc
mov eax, 0x57c5b6
call fcn.0054d3c4
mov edi, ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x41639b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00401e70
and dword [ebp - 4], ebx
push 0x21
push dword [eax]
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCompressBuffer
push ebx
call esi
push str.RtlGetCompressionWorkSpaceSize
push ebx
mov dword [edi], eax
call esi
push str.RtlDecompressBuffer
push ebx
mov dword [edi + 4], eax
call esi
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
lea ecx, [edi + 0x18]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
push ecx
push 2
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x416412
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00401e70
push 0x2d
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
push 4
push 0x3000
push dword [edi + 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x41645f
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00401e70
push 0x35
push dword [eax]
mov dword [ebp - 4], 2
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
push 4
push 0x3000
push 0x5c00000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x4164ae
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00401e70
push 0x3c
push dword [eax]
mov dword [ebp - 4], 3
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00406137
push 4
push 0x3000
push 0x6000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4164f9
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00401e70
push 0x44
push dword [eax]
mov dword [ebp - 4], 4
push esi
call fcn.00418676
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00406137
call fcn.0054d392
ret
Function at 0x4177a9
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x57c7b8
call fcn.0054d3c4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041670c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4177f1
mov eax, dword [ebp - 0x14]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.0040b83b
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
push 0x4164ff
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041670c
lea ecx, [ebp - 0x2c]
call fcn.00413a17
mov eax, dword [ebp + 8]
call fcn.0054d392
ret