joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43809f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4380e1
call fcn.00449359
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4380e1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4380d8
xor eax, eax
jmp 0x4380e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004380ef
pop edi
pop esi
pop ebx
ret 4

Function at 0x438e20
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x438e48
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043b0ab
pop esi
ret 4

Function at 0x4390f3
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x44cb18
call fcn.00423240
sub esp, 0x168
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x800
push 0x160
mov byte [eax], bl
lea eax, [ebp - 0x174]
push eax
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x439218
test byte [ebp - 0x16a], 1
je 0x439218
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x4503c0
push ebx
push 0x4503b0
call fcn.00438eca
test eax, eax
jl 0x439218
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x4503a0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x43920f
cmp edi, ebx
jne 0x439184
xor eax, eax
jmp 0x4391a5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00423f00
mov eax, esp
push esi
push edi
push eax
call fcn.00439b60
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x439206
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x4391bf
xor eax, eax
jmp 0x4391c2
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp + 0xc]
push 2
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
jl 0x439206
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00438ebc
push 1
pop eax
jmp 0x439226
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00438ebc
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x180]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x43ba94
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov eax, dword [esi]
push 1
je 0x43baac
push 0
jmp 0x43baaf
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x43babd
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x43bee8
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x44c99c
call fcn.00423240
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0043962b
test byte [ebp + 0xd], 0x10
je 0x43bfb9
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0043af4a
test eax, eax
je 0x43bfb9
lea ecx, [ebp - 0x10]
call fcn.00439555
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00439316
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43bf58
mov ebx, dword [ebp - 0x2c]
imul ebx, dword [ebp - 0x30]
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
add eax, eax
cmp ebx, eax
jle 0x43bfad
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x1c]
push 0x105
mov ecx, edi
and byte [eax], 0
call fcn.00439a1e
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x45030c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00439a6d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004396a0
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x43c076
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.00438b47
test eax, eax
je 0x43c076
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.004397e8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x43c027
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0043affc
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
je 0x43c071
push dword [ebp + 0xc]
call fcn.00438981
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 4
push dword [ebp + 8]
call esi
test eax, eax
je 0x43c06a
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.004389bd
pop ecx
push 1
pop eax
jmp 0x43c08d
mov ecx, edi
call fcn.0043962b
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00438b47
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x43e654
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x43e671
cmp dword [0x4608cc], edi
jne 0x43e7c3
cmp word [0x4608d8], di
mov dword [0x4608cc], 1
jne 0x43e6a3
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x4608d4], eax
mov word [0x4608d8], cx
cmp word [0x4608d8], 2
jne 0x43e6df
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x43e6df
mov ecx, dword [0x4608d4]
cmp ecx, edi
je 0x43e6df
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x4608d0], eax
jmp 0x43e7c8
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00423a60
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x4608d0], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x43e7c3
cmp dword [ebp - 0x8c], 1
je 0x43e733
cmp dword [ebp - 0x8c], 2
jne 0x43e7c3
cmp dword [ebp - 0x98], 4
jae 0x43e7a2
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43e7c3
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43e797
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00424a30
add esp, 0xc
mov dword [0x4608d0], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43e7c3
cmp dword [ebp - 0x8c], 2
jne 0x43e7c3
cmp dword [ebp - 0x98], 4
jb 0x43e7c3
push edi
push 0x4608d0
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x4608d0]
pop edi
leave
ret

Function at 0x44089f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x4408e3
push dword [ebp + 8]
call fcn.00449f0a
mov esi, eax
test esi, esi
je 0x44090e
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x44090e
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4513b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x441a2f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call fcn.0043639d
test eax, eax
jne 0x441c1e
mov edi, dword [ebx + 4]
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00421fbe
test byte [esi + 0x64], 0x20
mov dword [ebp - 0x10], eax
jne 0x441a75
cmp edi, 0x201
je 0x441a75
cmp edi, 0x202
jne 0x441bd4
cmp edi, 0x200
jb 0x441a85
cmp edi, 0x209
jbe 0x441a9d
cmp edi, 0xa0
jb 0x441bd4
cmp edi, 0xa9
ja 0x441bd4
call fcn.00449006
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x44]
pop edi
push edi
push 0
push eax
call fcn.00423a60
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov edi, dword [esi]
push eax
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [edi + 0x6c]
cmp dword [ebp - 0x20], 0xffffffff
mov dword [ebp + 8], eax
je 0x441af6
push dword [ebp - 0x20]
call fcn.00423c80
pop ecx
mov eax, 0x201
cmp dword [ebp - 4], eax
jne 0x441b0f
test byte [ebp - 0x3d], 0x80
je 0x441b0f
mov dword [ebp - 8], 1
jmp 0x441b13
and dword [ebp - 8], 0
cmp dword [ebp - 4], eax
je 0x441b31
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x441b31
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x441b9d
cmp dword [ebp - 8], 0
jne 0x441b9d
cmp dword [ebp - 4], 0x202
jne 0x441b5c
push 0xffffffffffffffff
mov ecx, esi
call dword [edi + 0xe4]
push 0xc8
push 0xe001
jmp 0x441b87
test byte [esi + 0x60], 8
jne 0x441b90
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x441b90
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x441bc8
push 0x12c
push 0xe000
mov ecx, esi
call fcn.004417f9
jmp 0x441bc8
push dword [ebp + 8]
mov ecx, esi
call dword [edi + 0xe4]
jmp 0x441bc8
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x441bb0
cmp dword [ebp - 8], 0
je 0x441bc8
push 0xffffffffffffffff
mov ecx, esi
call dword [edi + 0xe4]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.004371a4
test eax, eax
je 0x441be9
cmp dword [eax + 0x50], 0
je 0x441be9
xor eax, eax
jmp 0x441c17
cmp dword [ebp - 0x10], 0
je 0x441c0f
mov edi, dword [ebp - 0x10]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x441c1e
mov ecx, edi
call fcn.00437037
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x441bef
push ebx
mov ecx, esi
call fcn.0043827e
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x441c17
Function at 0x448c08
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x44c794
call fcn.00423240
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x448cc7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
lea eax, [ebp - 0x11c]
push ebx
push eax
push esi
push dword [ebp - 0x14]
call edi
mov esi, eax
test esi, esi
jne 0x448ca7
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0043970e
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.00448c08
mov esi, eax
xor eax, eax
test esi, esi
setne al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], al
call fcn.004396a0
cmp byte [ebp - 0xd], 0
jne 0x448ca7
lea eax, [ebp - 0x11c]
push ebx
push eax
push 0
push dword [ebp - 0x14]
jmp 0x448c51
cmp esi, 0x103
je 0x448cb7
cmp esi, 0x3f2
jne 0x448cc7
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x44916e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44ce46
call fcn.00423240
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00433912
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00433912
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.004333c9
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x438965
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x449b39
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x449b69
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x449bf3
cmp dword [esp + 0x14], ebx
je 0x449bf3
cmp esi, ebx
jne 0x449b8f
push 0x10
call fcn.00449956
cmp eax, ebx
je 0x449b7e
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x449b80
xor esi, esi
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004498f8
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x449ba6
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x449bb6
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x449bc2
call fcn.0043274f
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push ebx
lea eax, [ecx + eax*4]
push eax
call fcn.00423a60
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x449c29
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
mov ebx, ecx
pop edi
cmp dword [esi + 8], edi
mov dword [ebp - 4], edi
jle 0x449c7c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x449c5f
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + edi*8 + 4], eax
je 0x449c5f
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
je 0x449c76
and dword [ebp - 4], 0
jmp 0x449c76
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x449c6f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + edi*4], 0
inc edi
cmp edi, dword [esi + 8]
jl 0x449c40
cmp dword [ebp - 4], 0
je 0x449caa
push esi
lea ecx, [ebx + 0x14]
call fcn.0044990b
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x449ca0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44a397
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00423ac0
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
je 0x44a413
mov edi, 0x80000000
and byte [eax], 0
lea eax, [ebp + 8]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44a413
lea eax, [ebp - 0x108]
xor ebx, ebx
push 0x105
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x44a3f0
push 1
pop ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x44a413
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x5c
push esi
call fcn.00424f30
pop ecx
test eax, eax
pop ecx
jne 0x44a3be
push esi
call fcn.00423c80
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44b395
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
push edi
push 0x421f5d
mov ecx, 0x45ea7c
call fcn.00449dcc
mov edi, eax
cmp dword [edi + 0xc], 0
jne 0x44b3e6
mov esi, dword [ebp + 8]
test esi, esi
jne 0x44b3c4
lea esi, [ebp - 0x190]
push esi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x44b3f4
cmp byte [esi], 1
jne 0x44b3ef
mov al, byte [esi + 1]
cmp al, 1
jne 0x44b3ef
mov dword [edi + 0xc], 0x44b363
push 1
pop eax
pop edi
pop esi
leave
ret 4
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x44b3e9

Function at 0x44b3f8
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x10
lea eax, [ebp - 0x10]
push 0
mov esi, ecx
push eax
call fcn.00423a60
add esp, 0xc
cmp dword [ebp + 0x14], 0
mov word [ebp - 0x10], 2
jne 0x44b426
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
jmp 0x44b449
push dword [ebp + 0x14]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x44b44c
push dword [ebp + 0x14]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x44b473
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
push dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
mov word [ebp - 0xe], ax
mov eax, dword [esi]
push 0x10
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x44]
pop esi
leave
ret 0x14
push 0x2726
call sub.WSOCK32.dll_WSASetLastError
xor eax, eax
jmp 0x44b46e
Function at 0x10001b20
Capabilities:
Query environment variable

Disassembly:
push 0x25
push ebx
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 8
test eax, eax
jne 0x10001b3b
push ebx
call dword [sym.imp.pskalloc.dll_Pstrdup]
add esp, 4
ret
push esi
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
xor edi, edi
test esi, esi
jle 0x10001b6a
push edi
push esi
call dword [sym.imp.pskalloc.dll_Pmalloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x10001b6a
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1000d640
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push 0x104
lea eax, [ebp - 0x10c]
push eax
push str._programfiles_
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
push 2
push edx
mov esi, eax
call dword [sym.imp.libDeteven.dll_FlagsForDetection_GetValue]
add esp, 0xc
test eax, eax
js 0x1000d6b6
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000d6b6
lea ecx, [esi - 1]
cmp ecx, 0x102
ja 0x1000d6b6
mov eax, dword [eax]
dec esi
push esi
lea edx, [ebp - 0x10c]
push edx
push eax
call dword [sym.imp.pscr80.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1000d6b6
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10047d70
Capabilities:
Run powershell expression

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 2
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.libDeteven.dll_FlagsForDetection_GetValue]
add esp, 0xc
test eax, eax
js 0x10047fa0
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x10047fa0
mov ecx, dword [eax + 8]
mov esi, dword [sym.imp.msvcrt.dll__stricmp]
push str.PowerShell.exe
push ecx
call esi
add esp, 8
test eax, eax
je 0x10047dd3
mov edx, dword [edi + 0x1a4]
push str.PowerShell.exe
push edx
call esi
add esp, 8
test eax, eax
jne 0x10047fa0
mov eax, dword [edi + 0xec]
push ebx
mov ebx, dword [sym.imp.libDeteven.dll_wcsistr]
push 0x100d49f8
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov ecx, dword [edi + 0xec]
push 0x100c0c90
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov edx, dword [edi + 0xec]
push 0x100c0c9c
push edx
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov eax, dword [edi + 0xec]
push 0x100c0cc0
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov esi, dword [edi + 0xec]
call fcn.1007dc90
test eax, eax
jne 0x10047ed3
mov ecx, dword [edi + 0xec]
push str.GetResponseStream
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov edx, dword [edi + 0xec]
push str..OpenRead
push edx
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov eax, dword [edi + 0xec]
push str.DownloadFile
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov ecx, dword [edi + 0xec]
push str.wscript
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov edx, dword [edi + 0xec]
push str.cscript
push edx
call ebx
add esp, 8
test eax, eax
jne 0x10047ed3
mov eax, dword [edi + 0xec]
push 0x100d4a40
push eax
call ebx
add esp, 8
test eax, eax
je 0x10047f9f
mov ecx, dword [edi + 0xec]
push 0x100d4a60
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov edx, dword [edi + 0xec]
push str.docker_machine
push edx
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov eax, dword [edi + 0xec]
push str.tfsbuilds
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov ecx, dword [edi + 0xec]
push str.pypi.python.org
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov edx, dword [edi + 0xec]
push str.https:__pypi.io_packages_
push edx
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov eax, dword [edi + 0xec]
push 0x100d4af8
push eax
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov ecx, dword [edi + 0xec]
push str.https:__files.kde.org_
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov edx, dword [edi + 0xec]
push 0x100d4b70
push edx
call ebx
add esp, 8
test eax, eax
jne 0x10047f9f
mov esi, edi
call fcn.100014f0
mov dword [ebp - 8], 1
mov dword [edi + 0x1a0], 0x419
pop ebx
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret