joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432130
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
push 4
push edi
push 3
push 0x12019f
push eax
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xdc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43223f
push 0xc4
lea eax, [ebp - 0xd0]
push edi
push eax
mov dword [ebp - 0xd4], edi
call fcn.004982c0
add esp, 0xc
push edi
lea ecx, [ebp - 0xdc]
push ecx
push 0xc8
lea edx, [ebp - 0xd4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432238
mov eax, 0xc8
cmp dword [ebp - 0xdc], eax
jne 0x432238
cmp dword [ebp - 0xd4], 0x5148534c
jne 0x432238
cmp dword [ebp - 0xd0], eax
jne 0x432238
push edi
call fcn.00494daa
add esp, 4
push edi
push edi
push edi
push esi
mov dword [ebp - 0xc4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x432238
push edi
lea eax, [ebp - 0xd8]
push eax
push 0xc8
lea ecx, [ebp - 0xd4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432238
cmp dword [ebp - 0xd8], 0xc8
jne 0x432238
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret 4
Function at 0x4323e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push str..log2
lea esi, [eax + 0x430]
push str.New360_tmp_
xor ecx, ecx
push esi
lea edx, [ebp - 0x418]
mov word [ebx], cx
push str._s_s_s
push edx
mov ecx, 0x104
mov dword [ebp - 0x670], esi
call fcn.00423fe0
add esp, 0x14
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
je 0x43255a
test byte [ebp - 0x668], 0x10
jne 0x432531
lea edx, [ebp - 0x63c]
push edx
push esi
lea eax, [ebp - 0x210]
push str._s_s
push eax
mov ecx, 0x104
call fcn.00423fe0
mov ecx, dword [ebp - 0x650]
mov edx, dword [ebp - 0x654]
add esp, 0x10
push ecx
push edx
call fcn.00432350
test eax, eax
je 0x432531
lea eax, [ebp - 0x210]
push eax
lea edi, [ebp - 0x674]
call fcn.00431e50
test eax, eax
je 0x432531
lea esi, [ebp - 0x210]
mov edx, 0x104
mov eax, ebx
sub esi, ebx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4324e2
movzx ecx, word [esi + eax]
test cx, cx
je 0x4324e2
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4324c2
jmp 0x4324e6
test edx, edx
jne 0x4324e9
sub eax, 2
xor edx, edx
lea esi, [ebp - 0x674]
mov word [eax], dx
call fcn.00431ec0
mov eax, dword [ebp - 0x64c]
push 1
push 0
push 0
push eax
call fcn.0049a3a0
mov ecx, dword [ebp - 0x648]
xor esi, esi
add eax, ecx
adc edx, esi
test eax, eax
jne 0x43254d
test edx, edx
jne 0x43254d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x670]
xor edx, edx
mov word [ebx], dx
mov ecx, dword [ebp - 0x66c]
lea eax, [ebp - 0x668]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x432454
mov edx, dword [ebp - 0x66c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00491db1
mov esp, ebp
pop ebp
ret 8
Function at 0x432580
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400e8
call fcn.004a87d0
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0xc4
push eax
mov dword [ebp - 0x400e0], eax
mov dword [ebp - 0x400d4], eax
lea eax, [ebp - 0x400d0]
push eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x400e4], ebx
call fcn.004982c0
add esp, 0xc
push str..log2
push 0
call fcn.00494daa
add esp, 4
push eax
push str.New360_tmp_
push str.up2.
add edi, 0x430
push edi
push str._s_s_s_d_s
push esi
mov ecx, 0x104
call fcn.00423fe0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x1c
push 0
push 0
push 4
push 0
push 3
push 0x12019f
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x43273e
push 0
push 0
push 3
push 0
push 1
push 0x120089
push ebx
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x432641
xor edi, edi
jmp 0x43272a
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x400d8]
push ecx
push 0xc8
lea edx, [ebp - 0x400d4]
push edx
push edi
call ebx
test eax, eax
je 0x43272a
cmp dword [ebp - 0x400d8], 0xc8
jne 0x43272a
push 0
lea eax, [ebp - 0x400dc]
push eax
push 0xc8
lea ecx, [ebp - 0x400d4]
push ecx
push esi
mov dword [ebp - 0x400c0], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43272a
cmp dword [ebp - 0x400dc], 0xc8
jne 0x43272a
push 0
lea edx, [ebp - 0x400d8]
push edx
push 0x40000
lea eax, [ebp - 0x4000c]
push eax
push edi
call ebx
test eax, eax
je 0x432720
lea ecx, [ecx]
mov eax, dword [ebp - 0x400d8]
test eax, eax
je 0x432720
push 0
lea ecx, [ebp - 0x400dc]
push ecx
push eax
lea edx, [ebp - 0x4000c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43272a
mov eax, dword [ebp - 0x400dc]
cmp eax, dword [ebp - 0x400d8]
jne 0x43272a
push 0
lea ecx, [ebp - 0x400d8]
push ecx
push 0x40000
lea edx, [ebp - 0x4000c]
push edx
push edi
call ebx
test eax, eax
jne 0x4326d0
mov dword [ebp - 0x400e0], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x432737
push esi
call ebx
test edi, edi
je 0x43273e
push edi
call ebx
mov eax, dword [ebp - 0x400e4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x400e0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491db1
mov esp, ebp
pop ebp
ret 4

Function at 0x432920
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x1c], 0
jne 0x432930
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push edi
test eax, eax
je 0x432943
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x432946
mov edi, dword [ebp - 4]
cmp dword [esi + 0x24], 0
jne 0x43296d
push 0
push 0
push esi
push 0x432840
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa48], eax
mov dword [esi + 0x24], 1
test edi, edi
je 0x432978
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x432ab0
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, eax
call fcn.00424a20
test eax, eax
je 0x432ac3
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x432ace
xor eax, eax
pop edi
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SmartUploadCreate
push eax
call edi
mov dword [esi + 4], eax
test eax, eax
je 0x432aca
mov eax, dword [esi + 0x20]
push str.SmartUploadWithExtInfo
push eax
call edi
mov dword [esi + 8], eax
test eax, eax
je 0x432aca
mov ecx, dword [esi + 0x20]
push str.SmartUploadCancel
push ecx
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x432aca
mov edx, dword [esi + 0x20]
push str.SmartUploadClose
push edx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x432aca
mov eax, dword [esi + 0x20]
push str.SmartUploadSetNetTimeout
push eax
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x432aca
mov ecx, dword [esi + 0x20]
push str.SmartUploadSetOption
push ecx
call edi
mov edx, dword [esi + 0x20]
push str.SmartUploadGetError
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, 1
pop edi
ret

Function at 0x433a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x4f223c], 0
je 0x433a58
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
push str.AVEnable
push str.SOFTWARE360Safe_filemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x433a9f
mov dword [ebp - 4], 1
call fcn.00433290
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 1
jne 0x433aae
call fcn.00433290
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x437a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bbd70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x4ea688]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.004439c0
lea ecx, [esp + 0x24]
xor edi, edi
push ecx
mov dword [esp + 0x4c], edi
call fcn.004439c0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 4
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x58], 1
call fcn.004359b0
mov esi, dword [esp + 0x1c]
sub esi, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
sar esi, 2
cmp eax, edi
je 0x437ace
push eax
call fcn.00491da6
add esp, 4
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00491da6
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, edi
je 0x437af8
push eax
call fcn.00491da6
add esp, 4
mov eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.00491da6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x439ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4ea688]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0043b190
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x70], 0
call fcn.0043b1f0
add esp, 0x10
push 0x4dbcdc
lea eax, [esp + 0x30]
push eax
call fcn.004985bb
int3
Function at 0x442720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bccd4
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x4ea688]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4f21b4
call esi
push 0x4f219c
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x4ec354], eax
call esi
push 0x4f045e
push 0x20
mov dword [0x4ec350], eax
call fcn.00493709
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x44279d
push esi
call fcn.00442f80
jmp 0x44279f
xor esi, esi
push 0x4f045e
push 0x20
mov dword [0x4f2260], esi
call fcn.00493709
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x4427f6
mov ecx, 1
call fcn.0041d1a0
cmp eax, ebx
je 0x4427e4
mov dword [eax], esi
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x4427f8
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
jmp 0x4427f8
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push 0x442420
push ebx
push ebx
mov dword [0x4f2264], esi
mov dword [ebp - 0x10], ebx
call fcn.00492b82
or ecx, 0xffffffff
add esp, 0x18
mov dword [0x4ec358], eax
cmp eax, ecx
je 0x442854
cmp dword [0x4ec354], ecx
je 0x442854
cmp dword [0x4ec350], ecx
je 0x442854
mov byte [0x4f225d], 1
mov byte [0x4f225c], bl
lea eax, [ecx + 2]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442910
Capabilities:
Terminate thread

Disassembly:
cmp byte [0x4f225d], 0
mov byte [0x4f225c], 1
je 0x442971
mov eax, dword [0x4ec354]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x4ec358]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x442954
mov edx, dword [0x4ec358]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4ec358]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ec358], 0xffffffff
mov byte [0x4f225d], 0
ret
Function at 0x443780
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4badb1
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x650], edi
mov dword [ebp - 0x64c], edi
lea ecx, [ebp - 0x62c]
push ecx
push 0xf003f
push edi
push 0x4d0a6c
mov dword [ebp - 4], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x62c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x443844
mov esi, dword [ebp - 0x62c]
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x654]
push edx
lea eax, [ebp - 0x630]
push eax
push edi
push edi
push edi
push esi
mov dword [ebp - 0x650], esi
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x630], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x630]
cmp eax, edi
jne 0x44384e
cmp esi, edi
je 0x44383a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x443992
mov eax, 0x80004005
jmp 0x443992
xor ebx, ebx
mov dword [ebp - 0x638], ebx
cmp eax, edi
jbe 0x443985
mov edi, edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x214]
push edx
push ebx
push esi
mov dword [ebp - 0x634], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
jne 0x443972
mov ecx, dword [ebp - 0x634]
xor eax, eax
mov word [ebp + ecx*2 - 0x214], ax
xor ebx, ebx
lea edx, [ebp - 0x628]
push edx
push 0xf003f
push edi
lea eax, [ebp - 0x214]
push eax
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x628], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x443951
mov ebx, dword [ebp - 0x628]
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x63c], edi
push ecx
lea edi, [ebp - 0x628]
lea esi, [ebp - 0x624]
mov dword [ebp - 0x640], ebx
mov dword [ebp - 0x628], 0x208
call fcn.004442c0
test eax, eax
jne 0x443949
mov eax, dword [ebp - 0x628]
mov ecx, esi
xor edx, edx
push ecx
mov word [ebp + eax*2 - 0x624], dx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x644], esi
test esi, esi
je 0x4439b0
mov edi, dword [ebp - 0x648]
lea edx, [ebp - 0x644]
push edx
mov byte [ebp - 4], 2
call fcn.00443a80
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x62c]
xor edi, edi
mov byte [ebp - 4], 0
cmp ebx, edi
je 0x443966
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x640], edi
mov ebx, dword [ebp - 0x638]
mov dword [ebp - 0x63c], edi
inc ebx
mov dword [ebp - 0x638], ebx
cmp ebx, dword [ebp - 0x630]
jb 0x443860
cmp esi, edi
je 0x443990
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x14]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.00425ad0
int3
Function at 0x4442c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x4442d2
push 0x80004005
call fcn.00425ad0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edi
push esi
lea eax, [ebp - 4]
push eax
push 0
push str.ImagePath
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x444357
mov ecx, dword [edi]
test ecx, ecx
jbe 0x444352
mov edx, dword [ebp - 4]
test edx, edx
jbe 0x44435d
cmp edx, 2
jbe 0x44433e
cmp edx, 7
jne 0x44435d
test cl, 1
jne 0x44432e
shr ecx, 1
cmp ecx, 1
jb 0x44432e
cmp word [esi + ecx*2 - 2], 0
jne 0x44432e
cmp ecx, 1
jbe 0x444357
cmp word [esi + ecx*2 - 4], 0
je 0x444357
xor eax, eax
mov word [esi], ax
mov eax, 0xd
mov esp, ebp
pop ebp
ret 4
test cl, 1
jne 0x44434d
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x444357
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
mov esp, ebp
pop ebp
ret 4
xor edx, edx
mov word [esi], dx
lea eax, [edx + 0xd]
mov esp, ebp
pop ebp
ret 4

Function at 0x4452f0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bad2b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x4ea688]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xa3c], eax
test esi, esi
je 0x445429
xor ecx, ecx
push ebx
lea eax, [ebp - 0xa38]
mov word [ebp - 0x420], cx
xor edx, edx
push str.___s__
push eax
mov ecx, 0x104
mov word [ebp - 0x218], dx
call fcn.00423fe0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0xa38]
push edx
push esi
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
test eax, eax
je 0x445429
lea edi, [ebp - 0x218]
lea esi, [ebp - 0x420]
call fcn.00445180
push 0x104
lea eax, [ebp - 0x830]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [ebp - 0x628]
lea esi, [ebp - 0x830]
call fcn.00445180
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, ebx
lea eax, [ebp - 0xa58]
call fcn.00411e00
mov ecx, dword [ebp - 0xa3c]
lea edx, [ebp - 0xa58]
push edx
add ecx, 0x28
mov dword [ebp - 4], 0
call fcn.00412d20
mov ecx, edi
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4453f3
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x628]
push ecx
mov esi, eax
call fcn.00411ed0
cmp dword [ebp - 0xa40], 8
jb 0x445429
mov edx, dword [ebp - 0xa54]
push edx
call fcn.00491da6
add esp, 4
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.00491db1
mov esp, ebp
pop ebp
ret 8
Function at 0x445450
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
push ebx
push esi
mov esi, dword [eax + 0x28]
push edi
mov edi, dword [ecx]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
lea ebx, [ebx]
mov ebx, dword [eax + 0x40]
mov eax, dword [eax + 0x28]
test esi, esi
je 0x44547e
cmp esi, eax
je 0x445483
call fcn.00493a81
cmp edi, ebx
je 0x4454ee
test esi, esi
jne 0x4454a7
call fcn.00493a81
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x44549c
call fcn.00493a81
cmp dword [edi + 0x40], 8
jb 0x4454ab
mov ebx, dword [edi + 0x2c]
jmp 0x4454ae
mov eax, dword [esi]
jmp 0x445492
lea ebx, [edi + 0x2c]
test esi, esi
jne 0x4454cc
call fcn.00493a81
cmp edi, dword [esi + 0x18]
jne 0x4454c1
call fcn.00493a81
cmp dword [edi + 0x24], 8
jb 0x4454d0
mov edi, dword [edi + 0x10]
jmp 0x4454d3
mov esi, dword [esi]
jmp 0x4454b7
add edi, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea esi, [ebp - 0xc]
call fcn.004168c0
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
jmp 0x445470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4458e0
Capabilities:
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffff9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x44591d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret
push 0x4d0bac
push esi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x44590b
lea ecx, [ebp - 0x668]
push ecx
lea edx, [ebp - 0x418]
push edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4459d6
inc edi
cmp word [ebp - 0x63c], 0x2e
jne 0x44597c
mov ax, word [ebp - 0x63a]
test ax, ax
je 0x4459b5
cmp ax, 0x2e
jne 0x44597c
cmp word [ebp - 0x638], 0
je 0x4459b5
test byte [ebp - 0x668], 2
je 0x4459b5
lea eax, [ebp - 0x63c]
push eax
push esi
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x4459b5
mov edx, dword [ebp - 0x668]
and edx, 0xfffffff9
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x668]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4459cf
cmp edi, 0x1388
jl 0x445955
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x445b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004982c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x4d0bb0
lea eax, [ebp - 0x20c]
push eax
call esi
push str.psapi.dll
lea ecx, [ebp - 0x20c]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [ebp - 0x20c]
push edx
call edi
test eax, eax
jne 0x445bfd
push 0x4d0bc4
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x4d0bc4
lea ecx, [ebp - 0x20c]
push ecx
call esi
push str.psapi.dll
lea edx, [ebp - 0x20c]
push edx
call esi
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00491db1
mov esp, ebp
pop ebp
ret
Function at 0x445d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x802]
push ecx
mov dword [ebp - 0x808], 1
mov word [ebp - 0x804], ax
call fcn.004982c0
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x808]
push ecx
push str.ImagePath
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor al, al
cmp word [ebp - 0x804], 0x22
jne 0x445ddd
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret

Function at 0x445df0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x4ea688]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xc12]
push ecx
mov word [ebp - 0xc14], ax
call fcn.004982c0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x414]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc14]
push str.__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x800
lea edx, [ebp - 0xc14]
push edx
push 1
push str.ImagePath
push str.SYSTEMCurrentControlSet_servicesQHActiveDefense
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491db1
mov esp, ebp
pop ebp
ret