joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456290
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b199c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x63afd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x54], 0
mov dword [esi], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 6
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0xf
mov byte [esi + 0x54], 0
mov dword [esi + 0x6c], 0
lea ecx, [esi + 0x74]
mov dword [ebp - 4], 0
mov dword [esi + 0x70], 0
mov dword [ebp - 0x14], ecx
call fcn.00461530
push 0x7c
mov byte [ebp - 4], 1
mov dword [esi + 0x7c], vtable.mars::comm::Thread.0
mov dword [esi + 0x80], 0
mov byte [esi + 0x84], 0
call fcn.0057d4a0
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
test edi, edi
je 0x4563be
push 0xc
call fcn.0057d4a0
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4563b2
push eax
mov ecx, edi
mov dword [eax], vtable.detail::RunnableFunctor_class_mars_boost::_bi::bind_t_void__class_mars_boost::_mfi::mf0_void__class_mars::xlog::XloggerAppender___class_mars_boost::_bi::list1_class_mars_boost::_bi::value_class_mars::xlog::XloggerAppender_____.0
mov dword [eax + 4], 0x458f50
mov dword [eax + 8], esi
call fcn.004561e0
jmp 0x4563c0
xor eax, eax
mov ecx, edi
push eax
call fcn.004561e0
jmp 0x4563c0
xor eax, eax
mov dword [esi + 0x80], eax
lea ecx, [ebp - 0x18]
push 1
add eax, 0x70
push eax
call fcn.00455c10
mov eax, dword [esi + 0x80]
inc dword [eax + 4]
cmp byte [ebp - 0x14], 0
je 0x4563ee
mov eax, dword [ebp - 0x18]
xor ecx, ecx
xchg dword [eax], ecx
mov byte [ebp - 0x14], 0
lea eax, [esi + 0x88]
push 2
push eax
call fcn.00566d2a
lea eax, [esi + 0xb8]
push 2
push eax
call fcn.00566d2a
mov dword [esi + 0xe8], 0
lea eax, [esi + 0x11c]
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov word [esi + 0xf8], 0x100
push 2
push eax
mov dword [esi + 0xfc], 0
mov dword [esi + 0x100], 0
mov dword [esi + 0x104], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x118], 0
call fcn.00566d2a
mov dword [esi + 0x14c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push 0x400
mov dword [esi + 0x150], eax
lea eax, [esi + 0x170]
push 0
push eax
mov byte [ebp - 4], 6
mov dword [esi + 0x154], ecx
mov dword [esi + 0x158], 0xd2f00
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0
call fcn.0057fb60
add esp, 0x24
mov ecx, esi
push dword [ebp + 8]
call fcn.004575f0
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 0xc
Function at 0x458760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esi + 0xfc]
mov dword [esi], eax
call fcn.0045d380
cmp dword [esi], 0
jne 0x45882f
mov eax, dword [esi + 0x80]
cmp byte [eax + 0xd], 0
je 0x45882f
push 1
add eax, 0x70
lea ecx, [ebp - 8]
push eax
call fcn.00455c10
mov eax, dword [esi + 0x80]
cmp byte [eax + 0xd], 0
je 0x458822
mov byte [eax + 0xd], 0
mov ecx, dword [esi + 0x80]
mov al, byte [esi + 0x84]
push edi
push 0
mov byte [ecx + 0xc], al
mov eax, dword [esi + 0x80]
push 0
inc dword [eax + 4]
mov edi, dword [esi + 0x80]
push edi
push 0x45d970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4587ec
mov dword [edi + 8], eax
jmp 0x458821
push str.thrd_success__ret
push 0x62130f
push 0xcc
push str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
call sym.WeChatPlayer.exe___ASSERT
mov eax, dword [esi + 0x80]
add esp, 0x10
mov byte [eax + 0xd], 1
lea eax, [ebp - 8]
mov ecx, dword [esi + 0x80]
push eax
call fcn.00458620
pop edi
cmp byte [ebp - 4], 0
je 0x45882f
mov eax, dword [ebp - 8]
xor ecx, ecx
xchg dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45d8a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [ebp - 8]
push edi
push 1
mov eax, dword [esi + 4]
add eax, 0x70
push eax
call fcn.00455c10
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
je 0x45d94d
mov dword [eax + 0x6c], 0
mov eax, dword [esi + 4]
push 0
push 0
mov byte [eax + 0x18], 0
mov eax, dword [esi + 4]
mov byte [eax + 0xd], 0
mov ecx, dword [esi + 4]
mov al, byte [esi + 8]
mov byte [ecx + 0xc], al
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 4]
inc dword [eax + 4]
mov edi, dword [esi + 4]
push edi
push 0x45d9a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x45d94a
push str.thrd_success__ret
push 0x62130f
push 0x103
push str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
or edi, 0xffffffff
call sym.WeChatPlayer.exe___ASSERT
mov eax, dword [esi + 4]
add esp, 0x10
mov byte [eax + 0xd], 1
mov eax, dword [esi + 4]
mov dword [eax + 0x10], edi
lea eax, [ebp - 8]
mov ecx, dword [esi + 4]
push eax
call fcn.00458620
jmp 0x45d94f
mov dword [edi + 8], eax
xor edi, edi
cmp byte [ebp - 4], 0
je 0x45d95c
mov ecx, dword [ebp - 8]
xor edx, edx
xchg dword [ecx], edx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x461c90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2dad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63afd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 2
mov edi, 0xc0000000
mov eax, dword [ebp + 0x20]
mov ecx, closesocket
setne bl
mov dword [ebp - 4], 0
cmovne edi, ecx
or eax, dword [ebp + 0x24]
je 0x461ce6
mov edx, 2
test bl, bl
je 0x461ceb
mov edx, 3
test bl, bl
mov eax, 1
push 0
mov ecx, 0x100
cmovne ecx, eax
cmp byte [ebp + 0x60], 0
push ecx
push edx
push 0
push eax
push edi
je 0x461d1c
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x461d2e
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esi + 0x70], ecx
cmp ecx, 0xffffffff
jne 0x461d42
push str.failed_opening_file
jmp 0x461e21
mov edx, dword [ebp + 0x20]
mov eax, edx
mov edi, dword [ebp + 0x24]
or eax, edi
je 0x461d89
test bl, bl
jne 0x461d89
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x461d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x461d7f
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x461d89
push str.failed_setting_file_size
jmp 0x461e21
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x5bad50
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x70]
test eax, eax
je 0x461de0
lea edx, [ebp - 0x14]
push edx
push ecx
call eax
test eax, eax
je 0x461e1c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
cdq
mov edx, dword [ebp + 0x18]
cmp edx, 0xffffffff
je 0x461dd1
test eax, eax
jg 0x461dcd
jl 0x461dd1
cmp ecx, edx
jb 0x461dd1
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], ecx
jmp 0x461e28
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x461e1c
mov edx, dword [ebp + 0x18]
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x10]
cmp edx, 0xffffffff
je 0x461e0d
test eax, eax
jg 0x461e09
jl 0x461e0d
cmp ecx, edx
jb 0x461e0d
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], ecx
jmp 0x461e28
push str.failed_querying_file_size
mov ecx, esi
call fcn.004616d0
lea ecx, [ebp + 0x30]
call fcn.004615b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x60
Function at 0x463f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x463f75
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x463f9b
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
push eax
call fcn.00463da0
add esp, 0xc
mov eax, dword [eax]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x463fb1
mov dword [edi], 0
call fcn.0045ed70
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x463fe8
push esi
call fcn.00463730
add esp, 4
test al, al
je 0x463fdd
test bl, 0x10
mov eax, 4
mov ecx, 0xb
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464240
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 1
jne 0x46426c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4642f2
mov dword [esi], 0
call fcn.0045ed70
mov dword [esi + 4], eax
xor al, al
pop edi
pop esi
pop ebp
ret
cmp eax, 3
je 0x46428c
cmp eax, 0xb
je 0x46428c
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x464283
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4642a0
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x464299
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4642da
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x4642da
cmp eax, 3
je 0x4642da
cmp eax, 0x7b
je 0x4642da
cmp eax, 0xf
je 0x4642da
cmp eax, 0x15
je 0x4642da
cmp eax, 0x57
je 0x4642da
cmp eax, 0xa1
je 0x4642da
cmp eax, 0x35
je 0x4642da
call edi
jmp 0x4642dc
xor eax, eax
push str.mars_boost::filesystem::remove
push dword [ebp + 0x10]
push esi
push eax
call fcn.00463560
add esp, 0x10
test al, al
je 0x4642f8
pop edi
xor al, al
pop esi
pop ebp
ret
pop edi
mov al, 1
pop esi
pop ebp
ret
Function at 0x464380
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x464393
mov ecx, dword [eax]
push str.mars_boost::filesystem::space
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
neg eax
sbb eax, eax
inc eax
push eax
call fcn.00463560
mov edx, dword [ebp + 8]
add esp, 0x10
test al, al
jne 0x4643fc
mov ecx, dword [ebp - 4]
xor eax, eax
add eax, dword [ebp - 8]
mov dword [edx + 8], eax
adc ecx, 0
xor eax, eax
add eax, dword [ebp - 0x10]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0xc]
adc ecx, 0
mov dword [edx + 0x10], eax
xor eax, eax
mov dword [edx + 0x14], ecx
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, 0
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [edx + 0x10], 0
movlpd qword [ebp - 0x18], xmm0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edx + 0x14], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx], eax
mov eax, edx
mov dword [edx + 4], ecx
mov esp, ebp
pop ebp
ret
Function at 0x464440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b32ad
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x63afd4]
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 edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
cmp dword [edi + 0x14], 8
jb 0x464481
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x4644a0
push esi
push edi
push ebx
call fcn.00463da0
add esp, 0xc
jmp 0x4645e6
test eax, 0x400
je 0x4645b5
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x4644b5
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4644d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403c20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x464550
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464546
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x464604
push edx
push ecx
call fcn.0057d721
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x464578
push dword [ebp - 0x2c]
push edi
push ebx
call fcn.00463da0
add esp, 0xc
jmp 0x4645e6
push edi
call fcn.00463730
add esp, 4
test al, al
jne 0x4645a4
mov eax, dword [ebp - 0x30]
push eax
push edi
call fcn.00463a40
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4645e6
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x4645c7
mov dword [esi], 0
call fcn.0045ed70
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
mov esi, eax
push eax
push edi
call fcn.00463a40
xor ecx, ecx
mov dword [ebx + 4], eax
add esp, 8
and esi, 0x10
setne cl
add ecx, 2
mov dword [ebx], ecx
mov eax, ebx
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.0057d277
mov esp, ebp
pop ebp
ret
call fcn.005875f7
int3
Function at 0x465b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b33bd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63afd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x63a094]
cmp eax, 0xffffffff
jne 0x465bc4
xor ebx, ebx
jmp 0x465bcd
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x465cb6
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x465bf0
cmp dword [ebx + 0xc], 0
je 0x465c6f
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x465c3c
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x465c22
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x465bf7
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x465be6
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x465c59
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x465c59
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea ecx, [ebx + 0x14]
call fcn.00464ba0
cmp dword [ebx + 0x18], 0
jne 0x465c40
xor eax, eax
jmp 0x465be2
push 0x465190
push 0x63f1f0
call fcn.00464fc0
mov eax, dword [0x63a094]
add esp, 8
cmp eax, 0xffffffff
je 0x465c94
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x465cb6
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4678c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3520
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x63afd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x40
push 0
push esi
call fcn.0057fb60
lea ecx, [esi + 0x40]
add esp, 0xc
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x60], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x10], eax
movzx eax, byte [ebp + 0x1c]
push 0x200
mov dword [ebp - 4], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov byte [esi + 0x64], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x38], eax
call fcn.00427830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x474880
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x47488c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004748a0
Function at 0x475d10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
test eax, eax
push ebx
mov ebx, 0xb
cmovne ebx, eax
mov dword [ebp - 0x18], ebx
push esi
cmp ebx, 5
jb 0x475efd
cmp ebx, 0xc
jbe 0x475d41
pop esi
mov eax, 0xffffffd4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
bsr eax, eax
bsr ecx, esi
add eax, 2
mov dword [ebp + 0xc], 0
inc ecx
mov dword [ebp + 0xc], 0
cmp ecx, eax
cmovb eax, ecx
cmp ebx, eax
jb 0x475efd
push edi
push 0
push esi
mov edi, 0x3e
push 0x40000000
sub edi, ebx
push 0
mov dword [ebp - 0x14], edi
call fcn.0057e2a0
xor ecx, ecx
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], eax
lea eax, [edi - 0x14]
mov dword [ebp - 0x10], 0
bts ecx, eax
mov dword [ebp + 0xc], 0
cmp eax, 0x20
mov edi, 1
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
mov dword [ebp - 0x28], ecx
mov ecx, ebx
mov dword [ebp - 0x24], edx
shl edi, cl
mov edx, esi
shr edx, cl
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x2c], edx
mov ecx, dword [ecx + ebx*4]
cmp ecx, esi
je 0x475ef4
test ecx, ecx
jne 0x475de9
xor edx, edx
jmp 0x475e90
cmp ecx, edx
ja 0x475df6
dec edi
or edx, 0xffffffff
jmp 0x475e8d
mov eax, dword [ebp - 0x1c]
mul ecx
mov esi, eax
mov eax, dword [ebp - 0x20]
mul ecx
mov ecx, dword [ebp - 0x14]
add esi, edx
mov dword [ebp - 8], eax
mov edx, esi
mov dword [ebp - 4], esi
call fcn.0057e310
movzx esi, ax
cmp si, 8
jge 0x475e60
mov ecx, dword [ebp - 0x14]
movsx edi, si
mov eax, edi
cdq
call fcn.0057dae0
sub dword [ebp - 8], eax
mov ecx, dword [edi*4 + 0x5bf1a8]
sbb dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
mul ecx
mov edi, eax
mov eax, dword [ebp - 0x28]
mul ecx
add edi, edx
cmp dword [ebp - 4], edi
jb 0x475e59
ja 0x475e52
cmp dword [ebp - 8], eax
jbe 0x475e59
mov eax, 1
jmp 0x475e5b
xor eax, eax
mov edi, dword [ebp - 0xc]
add esi, eax
movsx eax, si
sub edi, eax
movzx ecx, si
cmp si, word [ebp + 0xc]
mov eax, ebx
movzx edx, si
cmovle eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
movzx eax, ax
cmovle ecx, eax
movzx eax, cx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 8]
mov word [ecx + ebx*2], dx
inc ebx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x10]
cmp ebx, eax
jbe 0x475dd3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ebx, word [eax + ecx*2]
lea edx, [eax + ecx*2]
movsx ecx, bx
mov eax, edi
sar ecx, 1
neg eax
cmp eax, ecx
jl 0x475ee2
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x18]
push esi
push dword [ebp + 8]
call fcn.00475f10
add esp, 0x14
cmp eax, 0xffffff88
jbe 0x475eeb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
lea ecx, [ebx + edi]
mov word [edx], cx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5882ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x642be8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5882ec
cmp byte [ebx], 0xa
jne 0x5882ec
or byte [eax + edi + 0x28], 4
jmp 0x5882f1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5883ef
mov al, byte [edx]
cmp al, 0x1a
je 0x5883d1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x588320
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x588345
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x58834f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x588302
jmp 0x5883ef
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5883cc
cmp dword [ebp - 0xc], 0
je 0x5883cc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x642be8]
test byte [eax + edi + 0x28], 0x48
je 0x5883a6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x588391
mov byte [esi], dl
jmp 0x5883a2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x642be8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5883ef
cmp byte [ebp - 1], 0xa
jne 0x5883b5
cmp esi, ebx
jne 0x5883b5
mov byte [esi], 0xa
jmp 0x5883ee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0058824e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5883ef
mov byte [esi], 0xd
jmp 0x5883ee
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x642be8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5883eb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5883ef
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret