joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4230d7
Capabilities:
Check if file exists
Delete file
Move file
Write file on windows

Disassembly:
push 0x188
mov eax, 0x52acb0
call fcn.004e4a40
mov eax, ecx
mov dword [ebp - 0xa0], eax
mov edi, dword [ebp + 8]
push ecx
push dword [eax + 8]
lea ecx, [ebp - 0x60]
call fcn.0045c8f0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00459e3a
test al, al
je 0x4233b7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0042669f
mov esi, str..orig
mov byte [ebp - 4], 2
push esi
call fcn.0042655b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00424c0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov byte [ebp - 0x91], bl
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x423198
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x423198
push str.Upgrade___DeleteFile_failed
lea ecx, [ebp - 0xb4]
call fcn.0040ea4b
push 0x5dbd98
lea eax, [ebp - 0xb4]
push eax
call fcn.004fda0a
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x4231d7
push str.Upgrade___MoveFile_failed
lea ecx, [ebp - 0xc0]
call fcn.0040ea4b
push 0x5dbd98
lea eax, [ebp - 0xc0]
jmp 0x423192
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
mov byte [ebp - 0x91], 1
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
jne 0x423230
push str.Upgrade___CreateFile_failed
lea ecx, [ebp - 0xcc]
call fcn.0040ea4b
push 0x5dbd98
lea eax, [ebp - 0xcc]
jmp 0x423192
cmp dword [edi + 0x14], 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x98], eax
jb 0x423241
mov edi, dword [edi]
push ebx
lea ecx, [ebp - 0x9c]
push ecx
push dword [eax]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4232ab
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
cmp dword [ebp - 0x9c], eax
jne 0x4232ab
push esi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
test eax, eax
jne 0x423292
push str.Upgrade___FlushFileBuffers_failed
lea ecx, [ebp - 0xd8]
call fcn.0040ea4b
push 0x5dbd98
lea eax, [ebp - 0xd8]
jmp 0x423192
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xa0]
mov byte [eax + 0x2ec], 1
jmp 0x4233ac
push str.Upgrade___WriteFile_failed
lea ecx, [ebp - 0xe4]
call fcn.0040ea4b
push 0x5dbd98
lea eax, [ebp - 0xe4]
jmp 0x423192
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00427ba9
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00427ba9
lea ecx, [ebp - 0x60]
call fcn.0045c98b
call fcn.004e498d
ret 4
Function at 0x42381c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, 0x5dfe10
mov dword [0x5dfe0c], 0x5e8330
xor esi, esi
cmp dword [ebp + 8], ecx
je 0x423841
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
call fcn.00416c90
mov eax, dword [0x5e861c]
test eax, eax
je 0x423856
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4238a1
push esi
push esi
push 0x5dfe0c
push 0x4238a6
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x5e861c], eax
test eax, eax
jne 0x4238a1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ConnectionManager::SendFeedback
push str._s:_CreateThread_failed___d_
push esi
push esi
call fcn.0043a0a0
add esp, 0x14
push esi
push esi
push 0x466
push dword [0x5e77b0]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 4
Function at 0x42bb24
Capabilities:
Get file version info

Disassembly:
push 0x98
mov eax, 0x52b99d
call fcn.004e49d2
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x84], edi
mov eax, dword fs:[0x2c]
xor esi, esi
mov dword [ebp - 0x94], esi
mov ecx, dword [eax]
mov eax, dword [0x5ea57c]
cmp eax, dword [ecx + 0x139c]
jle 0x42bba8
push 0x5ea57c
call fcn.004e3f82
cmp dword [0x5ea57c], 0xffffffff
pop ecx
jne 0x42bba8
mov dword [ebp - 4], esi
mov dword [0x5ea580], esi
mov dword [0x5ea584], esi
call fcn.00430925
push 0x53b590
mov dword [0x5ea580], eax
call fcn.004e45f2
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x5ea57c
call fcn.004e3f43
pop ecx
push ebx
lea eax, [ebp - 0x7c]
mov ecx, 0x5ea580
push eax
call fcn.0042f53d
mov esi, dword [ebp - 0x7c]
cmp esi, dword [0x5ea580]
je 0x42bbd4
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.004146f4
shr eax, 0x1f
test al, al
je 0x42bbda
mov esi, dword [0x5ea580]
cmp esi, dword [0x5ea580]
je 0x42bbf2
add esi, 0x28
mov ecx, edi
push esi
call fcn.0042669f
jmp 0x42bd24
cmp dword [ebx + 0x14], 0x10
jb 0x42bbfc
mov eax, dword [ebx]
jmp 0x42bbfe
mov eax, ebx
lea ecx, [ebp - 0x98]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x42bd18
push eax
call fcn.004e461a
mov esi, eax
mov dword [ebp - 0x84], esi
pop ecx
test esi, esi
jne 0x42bc4b
push str.GetDLLVersion:324:_memory_allocation_failed
lea ecx, [ebp - 0xa4]
call fcn.0040ea4b
push 0x5dbd98
lea eax, [ebp - 0xa4]
push eax
call fcn.004fda0a
push esi
lea ecx, [ebp - 0x7c]
call fcn.0041ffcf
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
jb 0x42bc68
mov eax, dword [ebx]
jmp 0x42bc6a
mov eax, ebx
push esi
push dword [ebp - 0x78]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x42bd0b
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x88]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42bd0b
mov ecx, dword [ebp - 0x80]
xor esi, esi
test ecx, 0xfffffffc
jbe 0x42bd0b
mov eax, dword [ebp - 0x88]
movzx edx, word [eax + esi*4]
cmp dl, 9
jne 0x42bd01
movzx eax, word [eax + esi*4 + 2]
push eax
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x74]
push 0x32
push eax
call fcn.00431c6c
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x8c]
and dword [ebp - 0x8c], 0
add esp, 0x14
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x84]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x42bd2c
mov ecx, dword [ebp - 0x80]
mov eax, ecx
inc esi
shr eax, 2
cmp esi, eax
jb 0x42bcab
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x7c]
call fcn.004e3e1e
pop ecx
push 0x5acd24
mov ecx, edi
call fcn.00426582
mov eax, edi
call fcn.004e497c
ret
mov edi, dword [ebp - 0x78]
mov ecx, 0x5ea580
push ebx
call fcn.0042f1d6
push edi
mov esi, eax
call fcn.0042655b
pop ecx
push eax
push edi
mov ecx, esi
call fcn.004264e2
push dword [ebp - 0x78]
mov ecx, dword [ebp - 0x90]
call fcn.00426582
push dword [ebp - 0x7c]
call fcn.004e3e1e
mov eax, dword [ebp - 0x90]
pop ecx
jmp 0x42bd26
Function at 0x430a11
Capabilities:
Print debug messages

Disassembly:
push 0xa4
mov eax, 0x52c38e
call fcn.004e49d2
mov edi, edx
mov esi, ecx
push 7
lea ecx, [ebp - 0xb0]
call fcn.004112f7
xor ebx, ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.0045bbdb
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.004264be
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x98], esp
push eax
call fcn.0041140f
push str.timestamp__timestamp
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.004126d5
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041163b
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00427ba9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push esi
call fcn.004113dd
push 0x5af810
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.004126d5
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0041163b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push edi
call fcn.00411451
push str.data
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.004126d5
mov ecx, eax
call fcn.0041163b
lea ecx, [ebp - 0x48]
call fcn.0041343f
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041345e
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov esi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
push 0x550680
call esi
push ecx
push dword [0x5e8150]
lea ecx, [ebp - 0x94]
call fcn.0045c8f0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 8
push eax
mov ecx, 0x5e8158
call fcn.0041272d
lea ecx, [ebp - 0x94]
call fcn.0045c98b
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
lea ecx, [ebp - 0x48]
call fcn.0040f5b8
lea ecx, [ebp - 0xb0]
call fcn.0041159b
call fcn.004e497c
ret
Function at 0x430b85
Capabilities:
Print debug messages

Disassembly:
push 0xa4
mov eax, 0x52c38e
call fcn.004e49d2
mov edi, edx
mov esi, ecx
push 7
lea ecx, [ebp - 0xb0]
call fcn.004112f7
xor ebx, ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call fcn.0045bbdb
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.004264be
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x98], esp
push eax
call fcn.0041140f
push str.timestamp__timestamp
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.004126d5
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041163b
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.00416ab1
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00427ba9
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push esi
call fcn.004113dd
push 0x5af810
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 4
call fcn.004126d5
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0041163b
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
push dword [edi]
call fcn.004112f7
push str.data
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 5
call fcn.004126d5
mov ecx, eax
call fcn.0041163b
lea ecx, [ebp - 0x48]
call fcn.0041343f
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041345e
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov esi, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
push 0x550680
call esi
push ecx
push dword [0x5e8150]
lea ecx, [ebp - 0x94]
call fcn.0045c8f0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 8
push eax
mov ecx, 0x5e8158
call fcn.0041272d
lea ecx, [ebp - 0x94]
call fcn.0045c98b
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
lea ecx, [ebp - 0x48]
call fcn.0040f5b8
lea ecx, [ebp - 0xb0]
call fcn.0041159b
call fcn.004e497c
ret
Function at 0x433c5c
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x28
mov eax, 0x52a4aa
call fcn.004e49d2
mov esi, ecx
push ecx
push dword [esi + 8]
lea ecx, [ebp - 0x2c]
call fcn.0045c8f0
and dword [ebp - 4], 0
cmp dword [esi + 0x24], 0
je 0x433ccf
and dword [ebp - 0x34], 0
lea edi, [esi + 0x14]
xor bl, bl
cmp dword [edi + 0x14], 0x10
jb 0x433c93
mov eax, dword [edi]
jmp 0x433c95
mov eax, edi
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push 1
push dword [esi + 0x24]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x433ce3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x2d2
movzx eax, byte [esi + 4]
push str.HTTPSRequest::ValidateServerCert:_d___CryptStringToBinaryA_failed___d_
push eax
push 0
call fcn.0043a0a0
add esp, 0x14
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.0045c98b
mov al, bl
call fcn.004e497c
ret 4
push 0x5e6266
push dword [ebp - 0x34]
call fcn.004e46bb
mov dword [ebp - 0x30], eax
pop ecx
pop ecx
test eax, eax
jne 0x433d0f
movzx eax, byte [esi + 4]
push str.ValidateServerCert:_memory_allocation_failed
push eax
push 0
call fcn.0043a0a0
add esp, 0xc
jmp 0x433ccf
cmp dword [edi + 0x14], 0x10
jb 0x433d17
mov edi, dword [edi]
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push eax
push 1
push dword [esi + 0x24]
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x433d41
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x2e2
jmp 0x433cbb
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp dword [eax + 8], edx
jne 0x433d75
xor edi, edi
mov bl, 1
test edx, edx
je 0x433d75
mov eax, dword [eax + 4]
mov ecx, esi
sub eax, esi
mov dword [ebp - 0x30], eax
mov al, byte [eax + ecx]
cmp al, byte [ecx]
jne 0x433d73
mov eax, dword [ebp - 0x30]
inc edi
inc ecx
cmp edi, edx
jb 0x433d61
jmp 0x433d75
xor bl, bl
push 1
push esi
call fcn.004e460c
pop ecx
pop ecx
jmp 0x433cd1

Function at 0x435fea
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax + 0x3c], 0
je 0x436050
add eax, 0x2c
cmp dword [eax + 0x14], 8
jb 0x436000
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x436050
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esi]
add eax, 0x2c
cmp dword [eax + 0x14], 8
jb 0x436023
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x436050
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0xed
push str.LocalProxy::Cleanup::_lambda_52991c160c154cbdad19d351afea2101_::operator___
push str._s:_d___DeleteFile_failed:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x18
mov eax, dword [esi]
and dword [eax + 0x3c], 0
add eax, 0x2c
pop esi
cmp dword [eax + 0x14], 8
jb 0x436062
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
ret
Function at 0x436332
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
cmp dword [esi + 0x24], ecx
je 0x436528
mov ebx, dword [ebp + 8]
cmp byte [esi + 0xa8], cl
jne 0x43635e
test bl, bl
jne 0x43635e
mov eax, ecx
jmp 0x436361
xor eax, eax
inc eax
mov byte [esi + 0xa8], al
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x74], ecx
jne 0x43637b
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x74], eax
xor ecx, ecx
push ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
push ecx
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x4363ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1d0
push str.LocalProxy::ProcessStatsAndStatus
push str._s:_d___PeekNamedPipe_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x18
xor al, al
jmp 0x43652a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x436419
inc eax
push eax
call fcn.004e461a
and dword [esp + 0x18], 0
mov edi, eax
pop ecx
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push edi
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x436402
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1db
push str.LocalProxy::ProcessStatsAndStatus
push str._s:_d___ReadFile_failed___d_
jmp 0x4363a7
mov eax, dword [esp + 0x14]
mov ecx, esi
push edi
mov byte [eax + edi], 0
call fcn.0043686a
push edi
call fcn.004e3e1e
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
cmp edi, dword [esi + 0x74]
jae 0x43642a
and dword [esi + 0x74], 0
test bl, bl
jne 0x436451
mov eax, dword [esi + 0x74]
add eax, dword [0x5dfde4]
cmp eax, edi
jb 0x436451
mov eax, dword [0x5dfde0]
cmp dword [esi + 0x7c], eax
jae 0x436451
cmp dword [esi + 0x84], eax
jb 0x436528
mov ecx, str.non_final
test bl, bl
mov eax, str.final
cmove eax, ecx
push eax
push str.LocalProxy::ProcessStatsAndStatus
push str._s:_Sending__s_stats.
push 1
push 0
call fcn.0043a0a0
mov ecx, dword [esi + 0x24]
lea edx, [esi + 0x80]
add esp, 0x14
mov eax, dword [ecx]
push dword [esi + 0x8c]
push dword [esi + 0x88]
push edx
lea edx, [esi + 0x78]
push edx
push ebx
call dword [eax]
push str.LocalProxy::ProcessStatsAndStatus
test al, al
je 0x436503
push str._s:_Stats_send_success
push 1
push 0
call fcn.0043a0a0
lea eax, [esp + 0x24]
mov dword [0x5dfde0], 0x3e8
mov ebx, 0x493e0
push eax
mov dword [0x5dfde4], ebx
call fcn.0050cc97
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x78]
xor edx, edx
add esp, 0x14
div ebx
add dword [0x5dfde4], edx
call fcn.00436b96
lea ecx, [esi + 0x80]
call fcn.00436b96
and dword [esi + 0x88], 0
and dword [esi + 0x8c], 0
mov dword [esi + 0x74], edi
jmp 0x436528
push str._s:_Stats_send_failure
push 1
push 0
call fcn.0043a0a0
add dword [0x5dfde4], 0x493e0
add esp, 0x10
add dword [0x5dfde0], 0x3e8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x447414
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
cmp byte [eax + 0x54], 0
je 0x447480
cmp dword [eax + 0x14], 0
je 0x447480
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x447430
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x447480
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esi]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x447453
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x447480
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0xc5
push str.Subprocess::Cleanup::_lambda_5ed04fa8ad92d91e84339a33e4714cf7_::operator___
push str._s:_d___DeleteFile_failed:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x18
mov eax, dword [esi]
and dword [eax + 0x14], 0
add eax, 4
pop esi
cmp dword [eax + 0x14], 8
jb 0x447492
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
ret
Function at 0x447498
Capabilities:
Read file on windows
Read pipe

Disassembly:
push 0x64
mov eax, 0x52f757
call fcn.004e49d2
mov edi, ecx
push ecx
push dword [edi + 0x4c]
lea ecx, [ebp - 0x5c]
call fcn.0045c8f0
xor ecx, ecx
lea eax, [ebp - 0x60]
push ecx
push eax
push ecx
push ecx
mov dword [ebp - 4], ecx
push ecx
push dword [edi + 0x30]
mov dword [ebp - 0x60], ecx
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4474f3
call ebx
push eax
push 0x11f
push str.Subprocess::ConsumeSubprocessOutput
push str._s:_d___PeekNamedPipe_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x18
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x447616
inc eax
push eax
call fcn.004e461a
mov esi, eax
pop ecx
mov dword [ebp - 0x70], esi
push 0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 1
and dword [ebp - 0x68], 0
push eax
push dword [ebp - 0x60]
push esi
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x447548
call ebx
push eax
push 0x12d
push str.Subprocess::ConsumeSubprocessOutput
push str._s:_d___ReadFile_failed___d_
push 0
push 0
call fcn.0043a0a0
add esp, 0x18
mov eax, dword [ebp - 0x68]
lea ebx, [edi + 0x34]
push esi
mov byte [eax + esi], 0
call fcn.0040eb01
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.00416d86
and dword [ebp - 0x64], 0
push 0x550680
call fcn.0040eb01
pop ecx
push eax
push 0
push 0x550680
mov ecx, ebx
call fcn.004344c8
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
je 0x4475e4
mov esi, dword [ebp - 0x64]
sub eax, esi
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00433d84
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, dword [edi + 0x50]
push edx
mov eax, dword [ecx]
call dword [eax]
mov esi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x28]
push 0
push 1
inc esi
mov byte [ebp - 4], 1
call fcn.00416ab1
push 0x550680
call fcn.0040eb01
pop ecx
push eax
push esi
push 0x550680
mov ecx, ebx
call fcn.004344c8
mov dword [ebp - 0x6c], eax
cmp eax, 0xffffffff
jne 0x44758b
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x70]
push 0xffffffffffffffff
push dword [ebp - 0x64]
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00433d84
push eax
mov ecx, ebx
call fcn.00414765
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00416ab1
test esi, esi
je 0x447616
push 1
push esi
call fcn.004e460c
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.0045c98b
call fcn.004e497c
ret

Function at 0x44775c
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push 0
push eax
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x44777b
xor al, al
jmp 0x4477ba
mov edx, dword [ebp - 4]
mov eax, edx
shr eax, 6
mov ecx, edx
push ebx
xor ebx, ebx
shr ecx, 5
inc ebx
and al, bl
and cl, bl
mov byte [esi], al
mov eax, edx
shr eax, 1
and al, bl
mov byte [esi + 3], cl
mov byte [esi + 1], al
mov ecx, edx
mov al, dl
shr ecx, 2
and al, bl
shr edx, 4
and cl, bl
mov byte [esi + 2], al
and dl, bl
mov byte [esi + 4], cl
mov al, bl
mov byte [esi + 5], dl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44b107
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push 0x1c
mov eax, 0x530157
call fcn.004e49d2
mov eax, dword fs:[0x2c]
or edi, 0xffffffff
mov esi, dword [eax]
mov eax, dword [0x5ea554]
cmp eax, dword [esi + 0x139c]
jle 0x44b16f
mov ebx, 0x5ea554
push ebx
call fcn.004e3f82
pop ecx
cmp dword [0x5ea554], edi
jne 0x44b16f
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x550335
call fcn.004147d9
mov byte [ebp - 4], 1
call fcn.004d425d
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
push ebx
mov dword [ebp - 4], edi
call fcn.004e3f43
pop ecx
mov eax, dword [0x5ea550]
mov ebx, 0x5e91c8
cmp eax, dword [esi + 0x139c]
jle 0x44b1be
mov esi, 0x5ea550
push esi
call fcn.004e3f82
pop ecx
cmp dword [0x5ea550], edi
jne 0x44b1be
mov dword [ebp - 4], 2
call fcn.004d425d
push 0x6c078965
push eax
mov ecx, ebx
mov dword [0x5ea54c], edi
call fcn.0044b2d5
push esi
mov dword [ebp - 4], edi
call fcn.004e3f43
pop ecx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], edi
call fcn.0044b409
pop ecx
call fcn.004e497c
ret

Function at 0x44b2d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x44b2ec
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x44b5f4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x44b5fd
pop esi
ret