joyce8/EMBER2024-capa huggingface dataset:
Function at 0x888d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x8d0e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
mov edx, dword [edi]
setne al
test al, al
je 0x888e8c
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x40
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x144], 0
push eax
call dword [edx + 0x30]
cmp dword [ebp - 0x148], 0x40
jne 0x888e8c
cmp dword [ebp - 0x144], 0
jne 0x888e8c
mov ax, word [ebp - 0x48]
mov ecx, 0x454e
cmp ax, cx
je 0x888e77
mov ecx, 0x454c
cmp ax, cx
je 0x888e77
mov ecx, 0x5a4d
cmp ax, cx
je 0x888de3
mov eax, 0xfffffffc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.008a28ee
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov esi, dword [edi]
push 0
cdq
push edx
push eax
call dword [esi + 0x1c]
mov eax, dword [edi]
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x148], 0xf8
push ecx
mov ecx, edi
mov dword [ebp - 0x144], 0
call dword [eax + 0x30]
cmp dword [ebp - 0x148], 0xf8
jne 0x888e8c
cmp dword [ebp - 0x144], 0
jne 0x888e8c
cmp dword [ebp - 0x140], 0x4550
jne 0x888dce
mov ax, word [ebp - 0x128]
mov ecx, 0x10b
cmp ax, cx
je 0x888e65
mov ecx, 0x20b
cmp ax, cx
je 0x888e65
mov ecx, 0x107
cmp ax, cx
jne 0x888dce
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.008a28ee
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffff7
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.008a28ee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xfffffff5
pop edi
xor ecx, ebp
pop esi
call fcn.008a28ee
mov esp, ebp
pop ebp
ret
Function at 0x88eb70
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
or eax, ecx
test al, 3
je 0x88eb92
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x10]
mov eax, ebx
shr eax, 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
test eax, eax
je 0x88ec46
mov eax, edi
lea ebx, [ecx + 4]
sub eax, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
nop dword [eax]
mov esi, dword [ebx - 4]
mov eax, 0xc6ef3720
mov edi, dword [ebx]
mov dword [ebp - 4], 0x20
mov ebx, dword [ebp + 0x14]
mov edx, esi
shr edx, 5
mov ecx, esi
shl ecx, 4
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
xor edx, ecx
sub esi, edx
sub dword [ebp - 4], 1
jne 0x88ebd1
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [eax + ecx*8], esi
inc ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov dword [eax + ebx], edi
add ebx, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], ebx
cmp ecx, eax
jb 0x88ebc0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea esi, [eax*8]
cmp ebx, esi
jbe 0x88ec77
push ecx
push dword [ebp + 0x14]
lea eax, [esi + ecx]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0088ec90
mov ecx, ebx
lea eax, [ebp - 0x18]
sub ecx, esi
push ecx
push eax
lea ecx, [esi + edi]
push ecx
call fcn.008a4ea0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x88ec90
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, 0xc6ef3720
mov dword [ebp + 0xc], 0x20
nop word [eax + eax]
mov ebx, dword [ebp + 0x10]
mov edx, esi
shr edx, 5
mov ecx, esi
shl ecx, 4
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
xor edx, ecx
sub esi, edx
sub dword [ebp + 0xc], 1
jne 0x88ecb0
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x891800
Capabilities:
Hash data using sha256

Disassembly:
push 0x40
lea eax, [ecx + 0x20]
mov dword [ecx + 0x14], 0
push 0
push eax
mov dword [ecx + 0x124], 0x6a09e667
mov dword [ecx + 0x128], 0xbb67ae85
mov dword [ecx + 0x12c], 0x3c6ef372
mov dword [ecx + 0x130], 0xa54ff53a
mov dword [ecx + 0x134], 0x510e527f
mov dword [ecx + 0x138], 0x9b05688c
mov dword [ecx + 0x13c], 0x1f83d9ab
mov dword [ecx + 0x140], 0x5be0cd19
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x120], 0
call fcn.008a54d0
add esp, 0xc
ret 4
Function at 0x89a710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x89a750]
jmp dword [eax*4 + 0x89a740]

Function at 0x89b6e0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x8d0e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor eax, eax
push esi
push edi
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x89b73c
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar_1]
inc eax
push 0
push 0
push eax
push ecx
push 0
push 0xfde9
call edi
mov esi, eax
lea eax, [esi + esi]
call fcn.008a2f90
mov eax, esp
push esi
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0xc]
inc eax
push eax
push dword [ebx + 4]
push 0
push 0xfde9
call edi
mov eax, dword [ebp - 8]
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW_1]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
cmp ebx, 0xffffffff
jne 0x89b77d
mov ecx, eax
call fcn.00896790
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.008a28ee
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebp + 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
mov dword [ebp - 8], eax
cmp esi, dword [ebp - 0x10]
jne 0x89b7b0
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jne 0x89b7b0
mov ecx, 1
jmp 0x89b7b2
xor ecx, ecx
and edi, ecx
je 0x89b7c9
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile_1]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
mov esi, eax
jmp 0x89b7cc
mov esi, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
test edi, edi
jne 0x89b7f2
mov ecx, esi
call fcn.00896790
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.008a28ee
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.008a28ee
mov esp, ebp
pop ebp
ret
Function at 0x89ec20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
movzx eax, word [edx + 8]
mov word [ecx + 8], ax
movzx eax, word [edx + 0xa]
mov word [ecx + 0xa], ax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x2c], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x30], eax
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [edx + 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [edx + 0x3c]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x48], eax
mov eax, dword [edx + 0x40]
mov dword [ecx + 0x40], eax
mov eax, dword [edx + 0x44]
mov dword [ecx + 0x44], eax
movzx eax, word [edx + 0x4c]
mov word [ecx + 0x4c], ax
movzx eax, word [edx + 0x4e]
mov word [ecx + 0x4e], ax
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x50], eax
mov eax, dword [edx + 0x54]
mov dword [ecx + 0x54], eax
mov eax, dword [edx + 0x58]
mov dword [ecx + 0x58], eax
mov eax, dword [edx + 0x5c]
mov dword [ecx + 0x5c], eax
mov eax, dword [edx + 0x60]
mov dword [ecx + 0x60], eax
mov eax, dword [edx + 0x64]
mov dword [ecx + 0x64], eax
mov eax, dword [edx + 0x68]
mov dword [ecx + 0x68], eax
mov eax, dword [edx + 0x6c]
mov dword [ecx + 0x6c], eax
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x70], eax
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x74], eax
mov eax, dword [edx + 0x78]
mov dword [ecx + 0x78], eax
mov eax, dword [edx + 0x7c]
mov dword [ecx + 0x7c], eax
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x80], eax
mov eax, dword [edx + 0x84]
mov dword [ecx + 0x84], eax
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x88], eax
mov eax, dword [edx + 0x8c]
mov dword [ecx + 0x8c], eax
mov eax, dword [edx + 0x90]
mov dword [ecx + 0x90], eax
pop ebp
ret 8
Function at 0x89ed40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
movzx eax, word [edx + 8]
mov word [ecx + 8], ax
movzx eax, word [edx + 0xa]
mov word [ecx + 0xa], ax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], 0
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], 0
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], 0
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], 0
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], 0
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x48], eax
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], 0
movzx eax, word [edx + 0x34]
mov word [ecx + 0x4c], ax
movzx eax, word [edx + 0x36]
mov word [ecx + 0x4e], ax
mov eax, dword [edx + 0x38]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], 0
mov eax, dword [edx + 0x3c]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], 0
mov eax, dword [edx + 0x40]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], 0
mov eax, dword [edx + 0x44]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], 0
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], 0
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], 0
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x80], eax
mov dword [ecx + 0x84], 0
mov eax, dword [edx + 0x54]
mov dword [ecx + 0x88], eax
mov dword [ecx + 0x8c], 0
mov eax, dword [edx + 0x58]
mov dword [ecx + 0x90], eax
pop ebp
ret 8

Function at 0x8b004c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.008afecb

Function at 0x8b32f2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.008b2fa0
Function at 0x404837
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x40649c
call fcn.00405674
cmp dword [0x40a01c], 0
mov esi, dword [ebp + 8]
jne 0x404856
mov al, 1
jmp 0x404926
test esi, esi
je 0x404924
xor ebx, ebx
cmp word [esi], bx
je 0x404924
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404924
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404924
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00403b55
pop ecx
pop ecx
and dword [ebp - 4], ebx
xor edi, edi
mov esi, dword [0x40a01c]
inc edi
cmp dword [ebp - 0x18], ebx
je 0x404911
lea eax, [ebp - 0x28]
push eax
call fcn.00403b55
pop ecx
test al, al
jne 0x404911
cmp dword [ebp - 0x18], esi
jbe 0x404911
cmp dword [0x40a020], 8
lea eax, [ebp - 0x28]
mov ecx, 0x40a00c
cmovae ecx, dword [0x40a00c]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404911
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404911
push 0x4075e0
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.00403b55
mov al, bl
jmp 0x404926
xor al, al
call fcn.00405632
ret
Function at 0x402425
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor eax, ecx
rol eax, 1
mov ecx, eax
push ebx
xor ecx, edx
and ecx, 0xaaaaaaaa
push esi
xor eax, ecx
push edi
xor ecx, edx
rol ecx, 1
push 0x3f
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
pop edi
mov ecx, dword [ebp + 0xc]
mov esi, eax
ror esi, 4
xor esi, dword [ecx]
add ecx, 8
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x420058]
or edx, dword [ebx*4 + 0x420258]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x420458]
mov dword [ebp + 0xc], ecx
and esi, edi
or edx, dword [esi*4 + 0x420658]
mov esi, dword [ecx - 4]
xor esi, eax
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x420158]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x420358]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x420558]
and esi, edi
or ecx, dword [esi*4 + 0x420758]
or ecx, edx
xor dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
ror esi, 4
xor esi, dword [ecx]
add ecx, 8
mov edx, esi
shr edx, 0x18
mov ebx, esi
shr ebx, 0x10
and ebx, edi
and edx, edi
mov edx, dword [edx*4 + 0x420058]
or edx, dword [ebx*4 + 0x420258]
mov ebx, esi
shr ebx, 8
and ebx, edi
or edx, dword [ebx*4 + 0x420458]
and esi, edi
or edx, dword [esi*4 + 0x420658]
mov esi, dword [ecx - 4]
xor esi, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov ecx, esi
shr ecx, 0x18
and ecx, edi
mov ecx, dword [ecx*4 + 0x420158]
mov ebx, esi
shr ebx, 0x10
and ebx, edi
or ecx, dword [ebx*4 + 0x420358]
mov ebx, esi
shr ebx, 8
and ebx, edi
or ecx, dword [ebx*4 + 0x420558]
and esi, edi
or ecx, dword [esi*4 + 0x420758]
or ecx, edx
xor eax, ecx
dec dword [ebp - 8]
jne 0x4024a0
ror eax, 1
mov edx, eax
xor edx, dword [ebp - 4]
pop edi
and edx, 0xaaaaaaaa
xor eax, edx
xor edx, dword [ebp - 4]
ror edx, 1
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
shl esi, 4
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor ecx, edx
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret
Function at 0x402716
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x420bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
xor ecx, ecx
movzx eax, byte [ecx + 0x4208c8]
mov esi, dword [ebp + 8]
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
and eax, 7
test byte [eax*2 + 0x420858], dl
setne al
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, 0x38
jl 0x402730
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], 0x1e
cmp word [ebp + 0xc], 1
jne 0x402778
mov eax, dword [ebp - 0xfc]
jmp 0x402780
mov eax, dword [ebp - 0xf8]
add eax, eax
lea ecx, [ebp + eax*4 - 0xf0]
lea esi, [ebp + eax*4 - 0xf4]
mov eax, dword [ebp - 0xf8]
movzx eax, byte [eax + 0x420900]
mov dword [ecx], ebx
mov dword [esi], ebx
xor edx, edx
mov edi, eax
cmp edi, 0x1c
jge 0x4027ae
mov bl, byte [ebp + edi - 0x74]
jmp 0x4027b5
mov bl, byte [ebp + edi - 0x90]
mov byte [ebp + edx - 0x3c], bl
inc edx
inc edi
cmp edx, 0x1c
jl 0x4027a3
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x4027d0
mov dl, byte [ebp + eax - 0x74]
jmp 0x4027d7
mov dl, byte [ebp + eax - 0x90]
mov byte [ebp + edi - 0x3c], dl
inc edi
inc eax
cmp edi, 0x38
jl 0x4027c5
xor ebx, ebx
xor eax, eax
movzx edi, byte [eax + 0x420910]
cmp byte [ebp + edi - 0x3c], bl
je 0x4027fc
mov edi, dword [eax*4 + 0x420868]
or dword [esi], edi
movzx edx, byte [eax + 0x420928]
cmp byte [ebp + edx - 0x3c], bl
je 0x402812
mov edx, dword [eax*4 + 0x420868]
or dword [ecx], edx
inc eax
cmp eax, 0x18
jl 0x4027e6
sub dword [ebp - 0xfc], 2
inc dword [ebp - 0xf8]
cmp dword [ebp - 0xfc], 0xfffffffe
jg 0x402769
lea eax, [ebp - 0xf4]
push eax
call fcn.0040265d
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040996f
leave
ret

Function at 0x4028ab
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x420bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push str.Wait_mutex
xor ebx, ebx
call fcn.00404e04
push esi
call fcn.00404e04
push esi
push str.mtxUUUU
lea eax, [ebp - 0x404]
push str._s_s
push eax
call fcn.004098eb
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
cmp eax, ebx
je 0x40292b
push 0x927c0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x402920
push str.Mutex_accured
call fcn.00404e04
mov bl, 1
jmp 0x40292a
push str.Mutex_wait_timeout
call fcn.00404e04
pop ecx
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040996f
leave
ret
Function at 0x404be7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x41a2a0
push dword [ebp + 8]
call fcn.0040bf40
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
and dword [ebp - 4], 0
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ebx, str.SOFTWAREMicrosoftCryptography
push ebx
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 8], 0x64
call esi
test eax, eax
jne 0x404c81
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.MachineGuid
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404c81
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push ebx
push edi
call esi
test eax, eax
jne 0x404c81
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.MachineGuid
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404cd4
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x420bf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x4d4], eax
lea eax, [ebp - 0x4cc]
push esi
push eax
call fcn.00404c86
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop ecx
lea eax, [ebp - 0x4cc]
push eax
mov byte [ebp - 0x4cd], 0
call esi
test eax, eax
je 0x404d23
mov byte [ebp - 0x4cd], 1
push edi
mov edi, str.c:logs
push edi
call esi
test eax, eax
jne 0x404d38
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
cmp byte [ebp - 0x4cd], 0
pop edi
je 0x404df6
push 0
call fcn.0040d628
mov dword [ebp - 0x4dc], eax
lea eax, [ebp - 0x4dc]
push eax
mov dword [ebp - 0x4d8], edx
call fcn.0040d601
mov esi, eax
push esi
push str._Y_m_d__H:_M:_S
lea eax, [ebp - 0x80]
push 0x32
push eax
call fcn.0040e3c4
push esi
push str.c:logs_soft_Y_m_d
lea eax, [ebp - 0x4c]
push 0x46
push eax
call fcn.0040e3c4
push ebx
lea eax, [ebp - 0xe4]
push 0x41ab30
push eax
call fcn.004098eb
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040bf50
lea eax, [ebp - 0x4c]
push str..log
push eax
call fcn.0040bf50
add esp, 0x44
lea eax, [ebp - 0x4c]
push 0x41ab24
push eax
call fcn.0040c5a9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x404df6
push dword [ebp - 0x4d4]
lea eax, [ebp - 0x80]
push eax
push str._s__s_n
push esi
call fcn.0040d85f
push esi
call fcn.0040d803
push esi
call fcn.0040c2a8
add esp, 0x18
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040996f
leave
ret
Function at 0x4064bf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x420bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x400
call fcn.0040c5c0
mov ebx, eax
pop ecx
xor eax, eax
mov esi, 0x3ff
mov byte [eax + ebx], al
inc eax
cmp eax, esi
jl 0x4064ec
push 0x41a2a0
push ebx
call fcn.0040bf40
pop ecx
pop ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push esi
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0040b900
push ebx
push edi
call fcn.0040bf40
lea eax, [ebp - 0x404]
push eax
push edi
call fcn.0040bf50
push 0x41ab60
push edi
call fcn.0040bf50
push 0x41af28
push edi
call fcn.0040bf50
push 0x41a6b8
push edi
call fcn.0040bf50
push str..exe
push edi
call fcn.0040bf50
push ebx
call fcn.0040c654
mov ecx, dword [ebp - 4]
add esp, 0x40
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040996f
leave
ret

Function at 0x4065df
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x420bf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x3ff
push esi
xor ebx, ebx
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.0040b900
lea eax, [ebp - 0x404]
push eax
call fcn.004064bf
add esp, 0x10
push esi
lea eax, [ebp - 0x804]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
mov dword [ebp - 0x808], 0x6272
call fcn.0040c5a9
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x406716
push edi
push 2
push ebx
push esi
call fcn.0040cea1
push esi
call fcn.0040cdb2
push ebx
push ebx
push esi
mov dword [ebp - 0x80c], eax
call fcn.0040cea1
push dword [ebp - 0x80c]
call fcn.0040c5c0
push esi
push dword [ebp - 0x80c]
mov dword [ebp - 0x814], eax
push 1
push eax
call fcn.0040cc01
add esp, 0x30
push 0x80
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov dword [ebp - 0x810], 4
xor edi, edi
cmp dword [ebp - 0x810], ebx
jle 0x4066e1
lea eax, [ebp - 0x404]
push 0x41a4f8
push eax
call fcn.0040c5a9
dec dword [ebp - 0x810]
pop ecx
pop ecx
push 0x3e8
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp edi, ebx
je 0x4066af
cmp edi, ebx
je 0x406702
push edi
push dword [ebp - 0x80c]
push 1
push dword [ebp - 0x814]
call fcn.0040c473
push edi
call fcn.0040c2a8
add esp, 0x14
push dword [ebp - 0x814]
call fcn.0040c654
push esi
call fcn.0040c2a8
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040996f
leave
ret

Function at 0x40678f
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret