joyce8/EMBER2024-capa huggingface dataset:
Function at 0x770aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c2b5e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov al, byte [ebx + 8]
mov byte [edi + 8], al
and dword [edi + 8], 0xfffffeff
mov edx, dword [edi + 8]
mov dword [edi + 0xc], 0
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
movsx eax, dl
cmp eax, 7
ja case.default.0x770afa
jmp dword [eax*4 + 0x770c44]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
jmp case.default.0x770afa
mov eax, dword [ebx]
mov dword [ebp + 8], eax
test eax, eax
je 0x770b8a
mov esi, eax
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x770b20
sub esi, ecx
mov eax, SysReAllocString
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x770b6b
push str.in_Json::Value::duplicateStringValue__:_Failed_to_allocate_string_value_buffer
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [eax + esi], 0
or dword [edi + 8], 0x100
mov dword [edi], eax
jmp case.default.0x770afa
mov dword [edi], 0
jmp case.default.0x770afa
push 8
call fcn.0076d2e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x770bbb
lea eax, [ebp + 0xb]
mov ecx, esi
push eax
push dword [ebx]
call fcn.0076fbc0
jmp 0x770bbd
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [edi], esi
cmp dword [ebx + 0xc], 0
je 0x770c2d
push 0x10
call fcn.0078f0da
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x770c03
push 0x7711d0
push 0x7708f0
push 3
lea esi, [eax + 4]
mov dword [eax], 3
push 4
push esi
call fcn.0078f141
jmp 0x770c05
xor esi, esi
mov dword [edi + 0xc], esi
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebx + 0xc]
mov eax, dword [esi + eax]
test eax, eax
je 0x770c25
mov ecx, dword [edi + 0xc]
push eax
add ecx, esi
call fcn.00773430
add esi, 4
cmp esi, 0xc
jl 0x770c10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x770df0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea ecx, [esi + 1]
mov byte [edi + 8], 4
or dword [edi + 8], 0x100
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x770e20
sub esi, ecx
mov eax, SysReAllocString
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x770e6a
push str.in_Json::Value::duplicateStringValue__:_Failed_to_allocate_string_value_buffer
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
push dword [ebp + 8]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov dword [edi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x7713b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jns 0x7713da
push str.in_Json::Value::operator___int_index_:_index_cannot_be_negative
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.007713f0

Function at 0x771570
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
test eax, eax
jns 0x77159d
push str.in_Json::Value::operator___int_index__const:_index_cannot_be_negative
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp byte [ecx + 8], 6
je 0x7715ae
mov eax, dword [0x83c938]
mov esp, ebp
pop ebp
ret 4
push esi
mov esi, dword [ecx]
mov ecx, esi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 8], 0
push eax
call fcn.007725a0
mov eax, dword [eax]
cmp eax, dword [esi]
pop esi
je 0x7715a3
add eax, 0x18
mov esp, ebp
pop ebp
ret 4

Function at 0x771e20
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
cmp eax, 5
ja case.0x771e2c.0
jmp dword [eax*4 + 0x771eb4]
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
ret
call fcn.00772920
test al, al
jne case.0x771e2c.1
push str.LargestUInt_out_of_Int64_range
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov edx, SysReAllocString
xor ecx, ecx
call fcn.0078f510
movsd xmm1, qword [esi]
comisd xmm1, xmm0
jb 0x771e99
mov edx, SysReAllocString
or ecx, 0xffffffff
call fcn.0078f510
movsd xmm1, qword [esi]
comisd xmm0, xmm1
jb 0x771e99
movaps xmm0, xmm1
pop esi
jmp fcn.0078f3bf
push str.double_out_of_Int64_range
jmp 0x771e48
xor eax, eax
cmp byte [esi], al
pop esi
setne al
xor edx, edx
ret
xor eax, eax
xor edx, edx
pop esi
ret
Function at 0x771ed0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
cmp eax, 5
ja case.0x771edc.0
jmp dword [eax*4 + 0x771f58]
call fcn.00772980
test al, al
jne 0x771f0c
push str.LargestInt_out_of_Int_range
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [esi]
pop esi
ret
call fcn.00772980
test al, al
jne 0x771f0c
push str.LargestUInt_out_of_Int_range
jmp 0x771ef1
movsd xmm1, qword [esi]
comisd xmm1, xmmword [0x7cb0b0]
jb 0x771f42
movsd xmm0, qword [0x7e1650]
comisd xmm0, xmm1
jb 0x771f42
cvttsd2si eax, xmm1
pop esi
ret
push str.double_out_of_Int_range
jmp 0x771ef1
xor eax, eax
cmp byte [esi], al
pop esi
setne al
ret
xor eax, eax
pop esi
ret

Function at 0x771ee3
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
cmp eax, 5
ja case.0x771edc.0
jmp dword [eax*4 + 0x771f58]
call fcn.00772980
test al, al
jne 0x771f0c
push str.LargestInt_out_of_Int_range
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [esi]
pop esi
ret
call fcn.00772980
test al, al
jne 0x771f0c
push str.LargestUInt_out_of_Int_range
jmp 0x771ef1
movsd xmm1, qword [esi]
comisd xmm1, xmmword [0x7cb0b0]
jb 0x771f42
movsd xmm0, qword [0x7e1650]
comisd xmm0, xmm1
jb 0x771f42
cvttsd2si eax, xmm1
pop esi
ret
push str.double_out_of_Int_range
jmp 0x771ef1
xor eax, eax
cmp byte [esi], al
pop esi
setne al
ret
xor eax, eax
pop esi
ret

Function at 0x771f10
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
cmp eax, 5
ja case.0x771edc.0
jmp dword [eax*4 + 0x771f58]
call fcn.00772980
test al, al
jne 0x771f0c
push str.LargestInt_out_of_Int_range
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [esi]
pop esi
ret
call fcn.00772980
test al, al
jne 0x771f0c
push str.LargestUInt_out_of_Int_range
jmp 0x771ef1
movsd xmm1, qword [esi]
comisd xmm1, xmmword [0x7cb0b0]
jb 0x771f42
movsd xmm0, qword [0x7e1650]
comisd xmm0, xmm1
jb 0x771f42
cvttsd2si eax, xmm1
pop esi
ret
push str.double_out_of_Int_range
jmp 0x771ef1
xor eax, eax
cmp byte [esi], al
pop esi
setne al
ret
xor eax, eax
pop esi
ret
Function at 0x771f70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
cmp eax, 5
ja case.0x771f86.0
jmp dword [eax*4 + 0x772024]
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00772920
test al, al
jne case.0x771f86.1
push str.LargestUInt_out_of_Int64_range
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov edx, SysReAllocString
xor ecx, ecx
call fcn.0078f510
movsd xmm1, qword [esi]
comisd xmm1, xmm0
jb 0x771ffa
mov edx, SysReAllocString
or ecx, 0xffffffff
call fcn.0078f510
movsd xmm1, qword [esi]
comisd xmm0, xmm1
jb 0x771ffa
movaps xmm0, xmm1
call fcn.0078f3bf
pop esi
mov esp, ebp
pop ebp
ret
push str.double_out_of_Int64_range
jmp 0x771fa5
xor eax, eax
cmp byte [esi], al
pop esi
setne al
xor edx, edx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x772040
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
cmp eax, 5
ja case.0x772052.0
jmp dword [eax*4 + 0x7720e4]
call fcn.00772af0
test al, al
jne case.0x772052.2
push str.LargestInt_out_of_UInt64_range
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
mov esp, ebp
pop ebp
ret
movsd xmm0, qword [esi]
comisd xmm0, xmmword [0x7e1550]
jb 0x7720bc
or edx, 0xffffffff
or ecx, 0xffffffff
call fcn.0078f4d0
movsd xmm1, qword [esi]
comisd xmm0, xmm1
jb 0x7720bc
movaps xmm0, xmm1
call fcn.0078f3b0
pop esi
mov esp, ebp
pop ebp
ret
push str.double_out_of_UInt64_range
jmp 0x772067
xor eax, eax
cmp byte [esi], al
pop esi
setne al
xor edx, edx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x7723f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x77240c
mov esi, dword [ebp + 8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x772403
sub esi, ecx
mov eax, SysReAllocString
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x77244d
push str.in_Json::Value::duplicateStringValue__:_Failed_to_allocate_string_value_buffer
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
push dword [ebp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x773430
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [eax]
test eax, eax
je 0x773449
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov al, byte [ebx]
test al, al
je 0x773479
cmp al, 0x2f
je 0x773479
push str.in_Json::Value::setComment__:_Comments_must_start_with__
push 0x29a
push 0x29a
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x773480
sub esi, ecx
mov eax, SysReAllocString
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x7734b1
push str.in_Json::Value::duplicateStringValue__:_Failed_to_allocate_string_value_buffer
jmp 0x77345e
push esi
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [edi + esi], 0
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x779500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7bd9a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable._.64.0
mov dword [esi + 4], vtable._.65.0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x779564
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x779575
push 0x48
push esi
call fcn.0076d313
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x55f56bac
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x436b3efc
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x5f0a20], ecx
inc edx
cmp edx, 0x100
jb 0x403972
cmp edx, 0x800
jae 0x403a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x5f0620]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5f0a20]
inc edx
mov dword [edx*4 + 0x5f0a1c], eax
cmp edx, 0x800
jb 0x403a20
mov dword [0x5ecb60], 0x404490
call fcn.00404660
test eax, eax
jne 0x403a66
mov dword [0x5ecb60], 0x404540
ret
Function at 0x406410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x406429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x406450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40646d
jmp 0x406460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40646d
inc edi
cmp edi, edx
jb 0x406460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x406582
cmp ecx, 3
jbe 0x4064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x4064db
cmp cl, 0xff
je 0x4064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x406450
dec ecx
shl ebp, cl
and ebp, 7
je 0x406486
movzx ecx, byte [ebp + 0x57cd94]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x57cd8c], 0
mov cl, byte [ebx + 4]
je 0x4064c9
test cl, cl
je 0x4064c9
cmp cl, 0xff
jne 0x406486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x406450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x406514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x406554
movzx esi, byte [ebp + 0x57cd94]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406539
cmp dl, 0xff
jne 0x406550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x406595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x407790
Capabilities:
Copy file
Delete file
Get common file path
Link many functions at runtime
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x200
lea eax, [ebp - 0x408]
mov esi, ecx
push 0
push eax
call fcn.0043fcd0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x200
push 0
push eax
call fcn.0043fcd0
add esp, 0xc
lea eax, [ebp - 0x608]
push 0x200
push 0
push eax
call fcn.0043fcd0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
mov dword [ebp - 0x610], 0
push str.Wow64DisableWow64FsRedirection
push str.Kernel32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.Wow64RevertWow64FsRedirection
push str.Kernel32.dll
mov dword [0x5f0a00], eax
call edi
push eax
call ebx
mov dword [0x5f09fc], eax
lea eax, [ebp - 0x208]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ecx
call fcn.004070b0
add esp, 4
test eax, eax
jne 0x40784e
push str.JikeSnr.erf
jmp 0x40789a
push str.IsWow64Process
push str.kernel32
call edi
push eax
call ebx
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x60c], 0
test eax, eax
je 0x407895
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x614]
cmp dword [ebp - 0x60c], 0
je 0x407895
push str.JikeFnur.efx
jmp 0x40789a
push str.JikeFmor.efx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x408]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push str.driversJKSvarer.sys.bak
push eax
lea eax, [ebp - 0x608]
push str._s_s
push eax
call esi
push str.driversJKSvarer.sys
lea eax, [ebp - 0x208]
push eax
push str._s_s
push eax
call esi
add esp, 0x20
push str.IsWow64Process
push str.kernel32
call edi
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x60c], 0
test esi, esi
je 0x407928
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x60c], 0
je 0x407928
lea eax, [ebp - 0x610]
push eax
call dword [0x5f0a00]
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40797d
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x608]
push 1
push eax
lea eax, [ebp - 0x208]
push eax
call esi
push 4
push 0
lea eax, [ebp - 0x608]
push eax
call esi
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.IsWow64Process
push str.kernel32
call edi
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x60c], 0
test esi, esi
je 0x4079c1
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x60c], 0
je 0x4079c1
push dword [ebp - 0x610]
call dword [0x5f09fc]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004273c3
mov esp, ebp
pop ebp
ret
Function at 0x407d00
Capabilities:
Delete registry value
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x5e10a4]
xor eax, esp
mov dword [esp + 8], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00407790
xorps xmm0, xmm0
lea ecx, [esp + 0xc]
movq qword [esp + 0xc], xmm0
push str.SYSTEMControlSet001ServicesJKSvarer
mov dword [esp + 0x10], vtable.DRIVER::CRegistry.0
mov dword [esp + 0x14], reloc.WS2_32.dll_bind
call fcn.00409d40
mov edi, dword [esp + 0x10]
test eax, eax
je 0x407dab
test edi, edi
jne 0x407d66
push 0x4c
push str.Registry.cpp
push str.m_hKey
call fcn.0044dced
add esp, 0xc
push str.DeleteFlag
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
jne 0x407d8a
push 0x66
push str.Registry.cpp
push str.m_hKey
call fcn.0044dced
add esp, 0xc
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 4
push 0
push str.Start
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x407dfb
push ecx
call fcn.004079e0
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x407e00
push 0xf01ff
push str.JKSvarer
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x407de4
xor esi, esi
jmp 0x407e00
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov esi, 1
test edi, edi
je 0x407e0b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004273c3
mov esp, ebp
pop ebp
ret