joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404890
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4048c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.00421b00
mov dword [esp + 0xc], eax
test esi, esi
jne 0x4048c9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x42da28
lea ecx, [esp + 8]
call fcn.00404720
int3

Function at 0x404aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422280
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x43153c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0040f657
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004037c0
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x404b2a
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
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 0x406920
Capabilities:
Check for sandbox and av modules
Check for sandbox username or hostname
Get common file path
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
test ecx, ecx
je 0x406958
push str._vim
push ecx
call fcn.00410c41
add esp, 8
test eax, eax
je 0x406958
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
push 0x104
push 0x434f58
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
test esi, esi
je 0x406b25
cmp esi, 0x104
ja 0x406b25
push 0x434f58
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + 0x434f57], 0x5c
je 0x4069af
push 0x42de54
push 0x434f58
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x434f58
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x406b25
push str.sbiedll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x406b25
lea eax, [ebp - 8]
push eax
push 0x434f58
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x406b25
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.CurrentUser
push 0x434f58
call esi
test eax, eax
je 0x406b25
push str.Sandbox
push 0x434f58
call esi
test eax, eax
je 0x406b25
lea eax, [ebp - 8]
push eax
push 0x434f58
mov dword [ebp - 8], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x406b25
push str.SANDBOX
push 0x434f58
call esi
test eax, eax
je 0x406b25
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0xc]
push eax
push str.HARDWAREDESCRIPTIONSystem
push 0x80000002
mov dword [ebp - 0xc], 0
call esi
test eax, eax
jne 0x406b25
lea edx, [ebp - 0xc]
mov ecx, str.SystemBiosVersion
call fcn.00405df0
test al, al
je 0x406b25
mov ecx, str.VBOX
call fcn.004060a0
test al, al
jne 0x406b25
lea eax, [ebp - 0xc]
push eax
push str.HARDWAREDESCRIPTIONSystem
push 0x80000002
mov dword [ebp - 0xc], 0
call esi
test eax, eax
jne 0x406b25
lea edx, [ebp - 0xc]
mov ecx, str.VideoBiosVersion
call fcn.00405df0
test al, al
je 0x406b25
mov ecx, str.VirtualBox
call fcn.004060a0
test al, al
jne 0x406b25
lea eax, [ebp - 0xc]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 0xc], 0
call esi
test eax, eax
jne 0x406b25
lea edx, [ebp - 0xc]
mov ecx, str.SystemBiosVersion
call fcn.00405df0
test al, al
je 0x406b25
call fcn.00406c50
test al, al
jne 0x406b25
call fcn.00406ba0
test al, al
jne 0x406b25
call fcn.00406b40
test al, al
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
Function at 0x406d40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 4]
test eax, eax
je 0x406dcb
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x432c68]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x432c68]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x432c68]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x432c68]
xor edx, edi
dec ecx
jne 0x406d66
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
mov ebx, dword [ebp - 0x10]
and ebx, 3
je 0x406e08
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
nop
movzx ecx, byte [esi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x432c68]
inc esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], esi
dec ebx
jne 0x406de0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov edx, ecx
shr edx, 8
sub dl, 0x2b
lea eax, [ecx + 7]
or dl, al
mov eax, ecx
shr eax, 0x10
and dl, al
and dl, 0x55
shr ecx, 0x18
xor dl, cl
xor eax, eax
test edi, edi
je 0x406e64
test esi, esi
je 0x406e5f
xor byte [eax + edi], dl
lea ecx, [eax + edi]
add dl, al
inc eax
cmp eax, esi
jb 0x406e52
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x406e70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406ebb
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x406edd
push edi
call fcn.0040e4a4
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x406ef6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
je 0x406f24
lea ecx, [ecx]
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406f24
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, edi
jb 0x406f00
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp esi, edi
pop esi
jae 0x406f4e
push eax
call fcn.0040fdaf
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040e58c
mov esp, ebp
pop ebp
ret

Function at 0x407120
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov esi, ecx
call fcn.00412190
push esi
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.0040f581
lea ecx, [ebp - 0x414]
add esp, 0x18
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407172
sub ecx, esi
sar ecx, 1
mov ebx, 0x5c
je 0x4071c3
jmp 0x407190
cmp word [ebp + edx*2 - 0x414], 0x2f
jne 0x4071a3
mov word [ebp + edx*2 - 0x414], bx
lea eax, [ebp - 0x414]
inc edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4071b0
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x407190
lea eax, [ebp - 0x40e]
push 0x4292f0
push eax
call fcn.00410c41
mov esi, eax
add esp, 8
test esi, esi
je 0x40720e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [esi + 2]
push 0x4292f0
push eax
mov word [esi], bx
call fcn.00410c41
mov esi, eax
add esp, 8
test esi, esi
jne 0x4071e4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
Function at 0x407230
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov edx, ebx
push edi
xor edi, edi
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407250
sub edx, esi
sar edx, 1
push 0x42df68
lea esi, [ebx + edx*2]
push 0x104
push esi
mov dword [ebp - 0x260], esi
call fcn.0040f581
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov dword [ebp - 0x25c], eax
mov word [esi], cx
cmp eax, 0xffffffff
jne 0x4072b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4072c0
mov ecx, 0x4292f4
lea eax, [ebp - 0x22c]
jmp 0x4072d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4072f6
test dx, dx
je 0x4072f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4072f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4072d0
xor eax, eax
jmp 0x4072fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40739a
mov ecx, 0x4292f8
lea eax, [ebp - 0x22c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407336
test dx, dx
je 0x407332
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407336
add eax, 4
add ecx, 4
test dx, dx
jne 0x407310
xor eax, eax
jmp 0x40733b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40739a
lea eax, [ebp - 0x22c]
push eax
push 0x104
push dword [ebp - 0x260]
call fcn.0040f581
add esp, 0xc
test byte [ebp - 0x258], 0x10
je 0x40737e
push 0x4292f0
push 0x104
push ebx
call fcn.0041015f
add esp, 0xc
mov ecx, ebx
call fcn.00407230
jmp 0x407394
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407396
call esi
mov edi, eax
test edi, edi
jne 0x4073c1
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4072c0
call esi
mov edi, eax
xor eax, eax
cmp edi, 0x12
cmove edi, eax
mov eax, dword [ebp - 0x260]
push dword [ebp - 0x25c]
xor ecx, ecx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x4073eb
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4073eb
call esi
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
Function at 0x407570
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00412190
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x42d860
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x214], 0
call fcn.0040f94e
mov ecx, dword [ebp - 0x214]
add esp, 0xc
test ecx, ecx
je 0x4077a2
test eax, eax
jne 0x4077a2
push ebx
push esi
push eax
push eax
push ecx
call fcn.00410801
push dword [ebp - 0x214]
call fcn.00410bd9
push 2
push 0
push dword [ebp - 0x214]
mov esi, eax
call fcn.00410801
push dword [ebp - 0x214]
call fcn.00410bd9
mov ebx, eax
sub ebx, esi
add esp, 0x20
cmp ebx, 0x88
jb 0x40777f
push 0
push 0x80
push dword [ebp - 0x214]
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], 0
call fcn.00410801
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push 4
push 1
push eax
call fcn.0040fc20
push dword [ebp - 0x214]
lea eax, [ebp - 0x218]
push 4
push 1
push eax
call fcn.0040fc20
mov eax, dword [ebp - 0x218]
add eax, dword [ebp - 0x210]
add esp, 0x2c
cmp eax, ebx
ja 0x40777f
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x21c], 0
jb 0x4076b3
mov edi, dword [edi]
push 0x42df6c
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.0040f94e
add esp, 0xc
cmp dword [ebp - 0x21c], 0
je 0x40777f
test eax, eax
jne 0x40777f
push dword [ebp - 0x218]
call fcn.0040e4a4
push dword [ebp - 0x218]
mov esi, eax
push 0
push esi
call fcn.00412190
push 0
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.00410801
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push 1
push esi
call fcn.0040fc20
mov edx, dword [ebp - 0x218]
add esp, 0x2c
test esi, esi
je 0x40774d
xor ecx, ecx
test edx, edx
je 0x40774d
mov al, byte [ecx + esi]
test al, al
je 0x407742
cmp al, 0x5a
je 0x407742
xor al, 0x5a
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x407732
mov edx, dword [ebp - 0x218]
push dword [ebp - 0x21c]
push 1
push edx
push esi
call fcn.00412ca1
push dword [ebp - 0x21c]
call fcn.0040fd38
add esp, 0x14
mov al, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x214]
call fcn.0040fd38
add esp, 4
xor al, al
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop edi
call fcn.0040e58c
mov esp, ebp
pop ebp
ret 4
Function at 0x4078c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, 0x1000
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x14], edi
neg ecx
or ecx, eax
push ecx
call fcn.0040e4a4
push 0x2000
mov esi, eax
push 0
push esi
call fcn.00412190
add esp, 0x10
push 0xfff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4079d4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e4a4
lea ecx, [ebx + ebx]
push ecx
mov edi, eax
push 0
push edi
call fcn.00412190
add esp, 0x10
push edi
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4079c9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4292f0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4079c9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str._d._d._d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp word [esi], 0
jne 0x4079a9
xor ecx, ecx
jmp 0x4079bf
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4079b0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x14]
push esi
call fcn.004035b0
push edi
call fcn.0040fdaf
add esp, 4
jmp 0x4079e2
push 7
push str.1.0.0.0
mov ecx, edi
call fcn.004035b0
push esi
call fcn.0040fdaf
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
Function at 0x408560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x4085cf
mov dword [edi], 0
mov edx, 0x400000
lea esp, [esp]
push 0
lea eax, [ebp - 8]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push ebx
push dword [ecx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4085e2
test ecx, ecx
je 0x4085cf
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x408590
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e58c
mov esp, ebp
pop ebp
ret

Function at 0x408600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x43153c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x40866f
mov dword [edi], 0
mov edx, 0x400000
lea esp, [esp]
push 0
lea eax, [ebp - 8]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push ebx
push dword [ecx]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x408682
test ecx, ecx
je 0x40866f
mov ecx, dword [ebp - 0xc]
mov edx, 0x400000
test esi, esi
jne 0x408630
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e58c
mov esp, ebp
pop ebp
ret
Function at 0x40b1e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x40b1f0
mov edx, eax
and edx, 1
dec edx
not edx
and edx, 0xedb88320
mov ecx, eax
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov dword [eax*4 + 0x4364a0], ecx
inc eax
cmp eax, 0x100
jb 0x40b1f0
cmp eax, 0x800
jae 0x40b2c3
lea esp, [esp]
mov edx, dword [eax*4 + 0x4360a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4364a0]
inc eax
mov dword [eax*4 + 0x43649c], edx
cmp eax, 0x800
jb 0x40b2a0
lea ecx, [ebp - 0x20]
mov dword [0x434f48], 0x40c120
call fcn.0040c1d0
test eax, eax
je 0x40b378
mov edi, dword [ebp - 0x10]
mov esi, edi
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor ecx, ecx
mov eax, 0x433078
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x40b317
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x40b317
cmp dword [eax], ebx
je 0x40b326
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x40b300
or ecx, 0xffffffff
sub ecx, 0
je 0x40b35f
dec ecx
je 0x40b34e
dec ecx
jne 0x40b378
cmp esi, 6
jb 0x40b378
jne 0x40b36e
cmp edi, 0xf
jb 0x40b378
mov dword [0x434f48], 0x40c1c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x40b378
jne 0x40b36e
cmp edi, 6
jb 0x40b378
cmp edi, 0xa
jmp 0x40b36c
cmp esi, 6
jb 0x40b378
jne 0x40b36e
cmp edi, 0x100c
je 0x40b378
mov dword [0x434f48], 0x40c1c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
mov esi, dword [esi]
mov eax, ecx
xor edi, edi
and esi, 7
mov dword [ebp - 4], eax
cmp edx, 5
jae 0x40c734
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [edx - 4]
or ebx, 0xffffffff
add ecx, eax
mov dword [ebp - 8], ecx
lea edx, [edi + eax]
cmp edx, ecx
jae 0x40c757
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x40c754
inc edx
cmp edx, ecx
jb 0x40c747
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
cmp edx, ecx
mov ecx, edi
jae 0x40c85f
sub ecx, ebx
cmp ecx, 3
jbe 0x40c78f
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x40c7cc
cmp al, 0xff
je 0x40c7cc
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x40c740
dec ecx
shl esi, cl
and esi, 7
je 0x40c76e
movzx eax, byte [esi + 0x42d7d0]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x42d7c8], 0
mov al, byte [ecx + 4]
je 0x40c7b6
test al, al
je 0x40c7b6
cmp al, 0xff
jne 0x40c76e
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
and esi, 3
add esi, esi
mov ebx, edi
or esi, 1
inc edi
jmp 0x40c740
movzx ecx, byte [edx + 3]
movzx eax, al
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
lea ebx, [ebx]
sub eax, edi
lea ebx, [eax - 5]
test esi, esi
je 0x40c82d
movzx eax, byte [esi + 0x42d7d0]
shl eax, 3
mov ecx, 0x18
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x40c819
cmp al, 0xff
jne 0x40c82d
mov ecx, 0x20
sub ecx, dword [ebp - 0xc]
mov eax, 1
shl eax, cl
dec eax
xor eax, ebx
jmp 0x40c7f0
mov ecx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
shr eax, 8
mov byte [edx + 2], al
mov eax, dword [ebp - 4]
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x10]
add edi, 5
jmp 0x40c740
sub ecx, ebx
pop ebx
cmp ecx, 3
jbe 0x40c876
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
dec ecx
shl esi, cl
and esi, 7
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret