joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427670
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
je 0x4276c1
cmp dword [edi + 0x30], 8
lea esi, [edi + 0x1c]
mov eax, esi
jb 0x427687
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4276d7
shr eax, 4
test al, 1
je 0x4276ab
cmp dword [esi + 0x14], 8
jb 0x4276a2
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4276ba
cmp dword [esi + 0x14], 8
jb 0x4276b3
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4276d7
pop edi
pop esi
ret
push 0
push 0x160
push 0x671c3e
push str.__path.empty__
call fcn.0042ced0
lea eax, [edi + 4]
push eax
call fcn.00426b60
int3

Function at 0x4276f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd438
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6877f0]
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 edi, ecx
cmp dword [edi + 0x14], 0
lea esi, [edi + 4]
mov ebx, dword [ebp + 8]
je 0x4277c6
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.004266a0
add esp, 8
lea ecx, [ebp - 0x28]
test byte [ebp + 0xc], 1
lea eax, [edi + 0x1c]
je 0x42777d
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x42776d
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4277dc
jmp 0x427791
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x42778d
mov eax, dword [eax]
push 1
jmp 0x42776f
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004068b0
push ebx
mov ecx, edi
call fcn.004277f0
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.00574c7a
mov esp, ebp
pop ebp
ret 8
push 0
push 0x133
push 0x671c3e
push str.__path.empty__
call fcn.0042ced0
push esi
call fcn.00426b60
int3
Function at 0x429320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd762
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], 0
push 0
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0xe0], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x4294a7
xor ecx, ecx
mov dword [ebp - 0x38], esi
mov edx, 2
mov dword [ebp - 0x34], esi
mul edx
mov byte [ebp - 0x2c], 1
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00575163
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
push edi
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x42949b
cmp eax, esi
ja 0x42949b
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00440390
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 8
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x42940c
push 1
push 0x671d44
lea ecx, [ebp - 0x28]
call fcn.0040a150
push edi
call fcn.00574c8b
add esp, 4
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0xdc]
call fcn.00428330
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 4
call fcn.00429200
lea ecx, [ebp - 0xdc]
mov esi, eax
call fcn.004285d0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x42947e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x429474
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4294d7
push edx
push ecx
call fcn.00575155
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.0041aba0
push str.Cannot_get_current_directory
lea ecx, [ebp - 0x40]
call fcn.00406f50
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x6c]
call fcn.0042e730
push 0x67d604
lea eax, [ebp - 0x6c]
push eax
call fcn.0058d023
call fcn.0059b248
int3
Function at 0x42a9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd961
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0
push 0xfffe
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 0x7fff
mov dword [ebp - 0x68], 0x7fff
mov byte [ebp - 0x60], 1
call fcn.00575163
mov edi, eax
add esp, 4
mov dword [ebp - 0x64], edi
push 0x7fff
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42aad4
push 0x7fff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x42aae7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push esi
push edi
mov dword [ebp - 0x58], 1
call fcn.00440390
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x42aa99
mov eax, dword [esi]
cmp byte [eax + ecx - 1], 0x5c
je 0x42aaae
push 1
push 0x671d44
mov ecx, esi
call fcn.0040a150
push edi
call fcn.00574c8b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x28]
call fcn.00406f50
mov byte [ebp - 4], 3
jmp 0x42aaf8
push str.Cannot_get_system_directory_long_path_name
lea ecx, [ebp - 0x28]
call fcn.00406f50
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042e730
push 0x67d604
lea eax, [ebp - 0x54]
push eax
call fcn.0058d023
int3
Function at 0x42ab40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd961
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0
push 0xfffe
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 0x7fff
mov dword [ebp - 0x68], 0x7fff
mov byte [ebp - 0x60], 1
call fcn.00575163
mov edi, eax
add esp, 4
mov dword [ebp - 0x64], edi
push edi
push 0x7fff
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42ac34
push 0x7fff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x42ac47
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push esi
push edi
mov dword [ebp - 0x58], 1
call fcn.00440390
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x42abf9
mov eax, dword [esi]
cmp byte [eax + ecx - 1], 0x5c
je 0x42ac0e
push 1
push 0x671d44
mov ecx, esi
call fcn.0040a150
push edi
call fcn.00574c8b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
push str.Cannot_get_temporary_directory_path
lea ecx, [ebp - 0x28]
call fcn.00406f50
mov byte [ebp - 4], 3
jmp 0x42ac58
push str.Cannot_get_temporary_directory_long_path_name
lea ecx, [ebp - 0x28]
call fcn.00406f50
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042e730
push 0x67d604
lea eax, [ebp - 0x54]
push eax
call fcn.0058d023
int3
Function at 0x42aca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd9b7
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6877f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x42acf8
mov dword [esi], 0x5c98c8
mov dword [esi + 0x88], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [esi]
lea edi, [esi + 8]
push 8
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], edi
mov dword [esi + eax], vtable.Poco::FileIOS.0
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00574e8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42ad36
push 1
mov dword [ebp - 4], 1
call fcn.005730b4
add esp, 4
mov dword [ebx + 4], eax
jmp 0x42ad38
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
push 0x1000
mov dword [ebp - 4], 2
mov dword [edi], vtable.Poco::BasicBufferedBidirectionalStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [edi + 0x38], 0x1000
mov dword [edi + 0x3c], 0
call fcn.00575163
push dword [edi + 0x38]
mov dword [edi + 0x40], eax
call fcn.00575163
mov ecx, dword [edi + 0x40]
add esp, 8
mov dword [edi + 0x44], eax
add ecx, 4
mov eax, dword [edi + 0xc]
mov dword [edi + 0x48], 3
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x44]
mov dword [eax], ecx
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov eax, dword [edi + 0x30]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [edi], vtable.Poco::FileStreamBuf.0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0xf
mov byte [edi + 0x50], 0
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [esi + 0x80], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42b8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x42b921
mov ecx, dword [esi + 0x48]
test cl, 1
je 0x42b921
test cl, 2
je 0x42b8e6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi + 0x68]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42b910
lea eax, [esi + 0x50]
push eax
call fcn.00426b50
add esp, 4
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42bbf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x42bc95
mov ecx, dword [esi + 0x48]
test cl, 2
je 0x42bc95
test cl, 8
je 0x42bc5a
push 2
lea ecx, [ebp - 8]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x42bc4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42bc4b
lea eax, [esi + 0x50]
push eax
call fcn.00426b50
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x68]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42bc84
lea eax, [esi + 0x50]
push eax
call fcn.00426b50
add esp, 4
mov eax, dword [ebp - 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
mov esp, ebp
pop ebp
ret 0xc
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x438080
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be939
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6877f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call fcn.00406fb0
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
call fcn.00406fb0
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 1
mov dword [esi + 0x30], eax
call fcn.004278c0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xf
mov byte [esi + 0x48], 0
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.00438540
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x440b60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf6b9
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6877f0]
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 ebx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.0043ff30
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x440c7e
xor edi, edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], edi
mov byte [ebp - 0x5c], 1
test esi, esi
je 0x440c14
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00575163
mov edi, eax
add esp, 4
mov dword [ebp - 0x60], edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
push ebx
lea ecx, [esi - 1]
mov dword [ebp - 0x58], 1
push ecx
push edi
call fcn.00440460
push edi
call fcn.00574c8b
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.004068b0
mov eax, ebx
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.00574c7a
mov esp, ebp
pop ebp
ret
push 0
push edi
lea ecx, [ebp - 0x54]
call fcn.0042dfa0
push 0x67b3c8
lea eax, [ebp - 0x54]
push eax
call fcn.0058d023
int3

Function at 0x440ca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0043ff30
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [ebp - 0x14]
test eax, eax
setne bl
cmp edx, 8
jb 0x440d41
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x440d37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x440d5d
push edx
push ecx
call fcn.00575155
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
call fcn.0059b248
int3
Function at 0x440d70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf731
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6877f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x78], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x440e07
lea eax, [ebp - 0x30]
mov dword [esi + 0x10], 0
push esi
mov dword [esi + 0x14], 0xf
push eax
mov byte [esi], 0
mov dword [ebp - 0x7c], 2
call fcn.00440390
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00574c7a
mov esp, ebp
pop ebp
ret
push str.Cannot_get_computer_name
lea ecx, [ebp - 0x48]
call fcn.00406f50
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x74]
call fcn.0042e730
push 0x67d604
lea eax, [ebp - 0x74]
push eax
call fcn.0058d023
int3
Function at 0x4449f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bffa0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6877f0]
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 esi, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 4], 0
test eax, eax
je 0x444a4e
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x444a4e
cmp dword [ebp - 0x58], 0x103
je 0x444b67
lea eax, [ebp + 8]
or ebx, 0xffffffff
cmp eax, esi
je 0x444aa6
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x444a6b
mov eax, 1
lock xadd dword [ecx], eax
mov edx, dword [esi + 4]
mov dword [esi + 4], edi
mov edi, dword [esi]
mov dword [esi], ecx
test edi, edi
je 0x444aa6
mov eax, ebx
lock xadd dword [edi], eax
add eax, 0xffffffff
jne 0x444aa6
test edx, edx
je 0x444a90
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
test edi, edi
je 0x444aa6
mov ecx, edi
call fcn.00406510
push 4
push edi
call fcn.00575155
add esp, 8
lea eax, [ebp - 0x58]
push eax
push 0
push esi
push 0x4448a0
push dword [esi + 0x14]
push 0
call fcn.0059e4fe
mov ecx, dword [ebp - 0x58]
mov edx, eax
add esp, 0x18
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test edx, edx
jne 0x444ae4
push str.cannot_create_thread
lea ecx, [ebp - 0x28]
call fcn.00406f50
mov byte [ebp - 4], 2
jmp 0x444b78
mov eax, dword [esi + 0x10]
test eax, eax
je 0x444b0a
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x444b0a
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x28]
call fcn.00406f50
mov byte [ebp - 4], 3
jmp 0x444b78
mov eax, dword [ebp + 8]
test eax, eax
je 0x444b49
lock xadd dword [eax], ebx
lea eax, [ebx - 1]
test eax, eax
jne 0x444b49
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x444b29
mov eax, dword [ecx]
push 1
call dword [eax]
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x444b49
mov ecx, esi
call fcn.00406510
push 4
push esi
call fcn.00575155
add esp, 8
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.00574c7a
mov esp, ebp
pop ebp
ret 8
push str.thread_already_running
lea ecx, [ebp - 0x28]
call fcn.00406f50
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54]
call fcn.0042e730
push 0x67d604
lea eax, [ebp - 0x54]
push eax
call fcn.0058d023
int3

Function at 0x444f40
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444f50

Function at 0x4451d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004451e0
Function at 0x45ac8f
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.0048a710
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0058cc90
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x45ad09
call fcn.00463e30
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00463f30
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.00463fe0
add esp, 0x14
call fcn.0059c5b9
cmp dword [eax], 2
je 0x45acd9
call fcn.0059c5b9
cmp dword [eax], 6
je 0x45acd9
mov esi, 0x80002
mov edi, 0x4d
jmp 0x45ace1
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00463e30
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00463f30
push 0
push esi
push 0x20
call fcn.00463fe0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5ef980
call fcn.0045b5b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x45ad2b
push edi
call fcn.00596d80
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0045ae90
push edi
push ebx
push 0x6a
push esi
call fcn.0045aec0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x461c70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
lea edx, [eax - 1]
not eax
shr edx, 0x1f
shr eax, 0x1f
and edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
dec edx
xor eax, ecx
mov dword [esp + 0xc], edx
and eax, edx
xor ecx, eax
mov dword [ebp + 4], ecx
xor dword [ebx + 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
xor eax, ecx
movd xmm0, edx
and eax, edx
pshufd xmm4, xmm0, 0
xor ecx, eax
mov dword [ebp + 0xc], ecx
xor dword [ebx + 0xc], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
xor eax, ecx
and eax, edx
mov edx, dword [esp + 0x18]
and eax, 4
xor ecx, eax
mov dword [ebp + 0x10], ecx
xor dword [ebx + 0x10], eax
xor eax, eax
test edx, edx
jle 0x461da7
push esi
push edi
cmp edx, 4
jb 0x461d7d
mov esi, dword [ebp]
lea ecx, [edx - 1]
mov edi, dword [ebx]
lea ebp, [edx - 1]
lea ebp, [esi + ebp*4]
cmp edi, ebp
lea ecx, [edi + ecx*4]
mov ebp, dword [esp + 0x18]
ja 0x461d08
cmp ecx, esi
jae 0x461d7d
cmp edi, ebx
ja 0x461d10
cmp ecx, ebx
jae 0x461d7d
cmp edi, ebp
ja 0x461d18
cmp ecx, ebp
jae 0x461d7d
lea ecx, [edx - 1]
lea ecx, [esi + ecx*4]
cmp esi, ebx
ja 0x461d26
cmp ecx, ebx
jae 0x461d7d
cmp esi, ebp
ja 0x461d2e
cmp ecx, ebp
jae 0x461d7d
mov ecx, edx
and ecx, reloc.WS2_32.dll_closesocket
jns 0x461d3d
dec ecx
or ecx, 0xfffffffc
inc ecx
mov dword [esp + 0x18], edx
sub dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
nop dword [eax]
movups xmm3, xmmword [edi + eax*4]
movups xmm2, xmmword [esi + eax*4]
movaps xmm1, xmm3
pxor xmm1, xmm2
pand xmm1, xmm4
movaps xmm0, xmm1
pxor xmm1, xmm3
pxor xmm0, xmm2
movups xmmword [esi + eax*4], xmm0
movups xmmword [edi + eax*4], xmm1
add eax, 4
cmp eax, ecx
jl 0x461d50
cmp eax, edx
jge 0x461da5
mov ecx, dword [ebp]
mov edx, dword [ecx + eax*4]
lea esi, [ecx + eax*4]
mov ecx, dword [ebx]
mov edi, dword [ecx + eax*4]
xor edi, edx
and edi, dword [esp + 0x14]
xor edx, edi
mov dword [esi], edx
mov ecx, dword [ebx]
xor dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x20]
jl 0x461d81
pop edi
pop esi
pop ebp
pop ebx
ret