joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a95ae
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x673200]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x818], 0
je 0x4a9696
test edi, edi
je 0x4a9696
lea ecx, [esi + 0x814]
push eax
call fcn.004a9716
cmp dword [eax], 0
je 0x4a9696
test dword [esi + 4], ebx
je 0x4a9696
cmp dword [esi + 0x810], 0
jne 0x4a9625
push dword [esi + 0x80c]
mov dword [esi + 0x810], 1
call fcn.0051b2b3
pop ecx
push edi
call fcn.00505bb3
pop ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp ebx, 0x80
mov eax, 0x81
push edi
cmovle eax, ebx
push dword [eax*4 + 0x631290]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
lea edi, [esi + 0xc]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push str.__02d:_02d:_02d__03d__tId_d__s_s
push edi
call fcn.0047172c
mov ebx, eax
add esp, 0x24
cmp ebx, 0xffffffff
je 0x4a9696
push dword [ebp - 0x18]
lea ecx, [esi + 0x814]
call fcn.004a9716
push ebx
push edi
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 0xc

Function at 0x4aaa42
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x28], 0
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 8], xmm0
je 0x4aaa65
xor esi, esi
push esi
push dword [ecx + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x4aaa6b
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, esi
pop esi
leave
ret

Function at 0x4aaf32
Capabilities:
Read file on windows

Disassembly:
push 0x818
mov eax, 0x604651
call fcn.004db4be
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x28], ebx
je 0x4aaf9b
mov eax, dword [edi]
call dword [eax + 0x10]
test al, al
je 0x4aafa5
mov eax, dword [0x673200]
test byte [eax + 4], 1
je 0x4aaf9b
push ecx
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x824]
call fcn.004a9820
push ebx
push str.End_of_file
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], ebx
call fcn.004a9b63
mov ecx, eax
call fcn.004a9bc0
xor ecx, ecx
mov edx, eax
inc ecx
call fcn.004a96a7
pop ecx
xor eax, eax
call fcn.004db46d
ret 8
push dword [edi + 0x28]
push dword [ebp + 0xc]
push 1
push esi
call fcn.0050722a
add esp, 0x10
mov esi, eax
mov ecx, edi
push ebx
push esi
call fcn.004aa1f5
mov eax, esi
jmp 0x4aaf9d
Function at 0x4ab593
Capabilities:
Clear file content

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4ab5a9
cmp dword [esi + 0x14], edi
je 0x4ab5bb
call fcn.00430e6c
cmp dword [esi + 0x14], edi
je 0x4ab5bb
mov eax, dword [esi + 0x18]
xor edx, edx
add eax, dword [esi + 8]
adc edx, dword [esi + 0xc]
jmp 0x4ab5c2
mov ecx, esi
call fcn.00438736
push ecx
push edx
push eax
mov ecx, esi
call fcn.00430dab
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
jne 0x4ab5d9
xor eax, eax
jmp 0x4ab5ed
push dword [esi]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ecx
ret

Function at 0x4abb9f
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edx
lea ecx, [esi + 0x6c]
mov dword [esi + 0x68], ebx
call fcn.00430fb5
cmp dword [esi + 0x70], ebx
je 0x4abbd8
push dword [esi + 0x70]
call fcn.00505e8b
mov dword [esi + 0x74], eax
pop ecx
test eax, eax
jne 0x4abbd2
mov eax, 0x8007000e
jmp 0x4abc3a
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ebx
push ebx
push 0x6751d4
lea ecx, [esi + 4]
call fcn.0041d837
test eax, eax
jne 0x4abbf1
mov eax, 0x80004014
jmp 0x4abc3a
push edi
push dword [ebp + 0x10]
lea edi, [esi + 0x60]
mov dword [esi + 0x64], ebx
push dword [ebp + 0xc]
mov ecx, esi
mov dword [edi], ebx
push ebx
call fcn.004abded
test eax, eax
js 0x4abc39
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
push edi
push 0x20000005
push dword [esi + 0x58]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov ecx, 0x80040065
cmp dword [edi], ebx
cmove eax, ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4aca40
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x70], 4
mov ecx, dword [ebp + 0xc]
mov esi, SysReAllocString
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], edi
push ecx
push 0x20000005
push eax
mov dword [ebp - 0x74], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x74]
test eax, eax
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
cmove ecx, esi
xor esi, esi
mov dword [ebp - 0x74], ecx
call ebx
mov dword [ebp - 0x7c], eax
mov ecx, edi
jmp 0x4acaca
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
jne 0x4acac0
call ebx
mov ecx, dword [ebp - 0x78]
sub eax, dword [ebp - 0x7c]
mov dword [ecx], eax
add esi, edi
cmp esi, dword [ebp - 0x74]
jae 0x4acaeb
mov ecx, dword [ebp - 0x80]
push 0xea60
push 0
push 0x64
pop eax
cmp dword [ebp - 0x70], eax
cmovb eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00422636
mov edi, eax
test edi, edi
jne 0x4acaae
call ebx
mov ecx, dword [ebp - 0x84]
sub eax, dword [ebp - 0x7c]
mov dword [ecx], eax
test edi, edi
jne 0x4acb05
or eax, 0xffffffff
cmp esi, dword [ebp - 0x74]
cmovb esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 0x10

Function at 0x4acb18
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 4], esi
jne 0x4acb68
push esi
push esi
push 3
push esi
push esi
push 0x50
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 4], eax
test eax, eax
je 0x4acb68
push edi
push 0x84400200
push esi
push dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push 0x640a1c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 8], eax
test eax, eax
jne 0x4acba7
mov ecx, edi
call fcn.0041d9b7
mov esi, 0x80004005
mov ecx, dword [ebp + 8]
mov edi, 0x668010
add ecx, 0xfffffff4
cmp ecx, edi
je 0x4acb81
call fcn.00407965
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, edi
je 0x4acb90
call fcn.00407965
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff4
cmp ecx, edi
je 0x4acb9f
call fcn.00407965
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
push esi
push esi
push 0xffffffffffffffff
push esi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4acbed
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov edx, 0x3e5
cmp eax, edx
setne cl
jne 0x4acbe5
mov eax, dword [edi + 0x18]
xor edx, edx
push 0xc
pop ecx
div ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb ecx, ecx
neg ecx
test ecx, ecx
jne 0x4acb61
mov ecx, edi
call fcn.0041d9b7
jmp 0x4acb6d
Function at 0x4b4856
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x100c], 4
mov ecx, SysReAllocString
push 0
mov dword [ebp - 0x1010], ecx
lea ecx, [ebp - 0x100c]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, dword [ebp - 0x1010]
test eax, eax
mov eax, SysReAllocString
mov ecx, 0x2000
cmove edx, eax
mov eax, dword [0x668294]
mov dword [esi], eax
cmp edx, 0x7fffffff
mov dword [ebp - 0x1010], edx
lea eax, [edx + 1]
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.0040cccd
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cc99
jmp 0x4b4925
cmp eax, 0x1001
jae 0x4b4965
mov byte [ebp + eax - 0x1008], 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00505070
pop ecx
lea ecx, [ebp - 0x1008]
push ecx
push eax
mov ecx, esi
call fcn.0042aaaa
mov eax, dword [esi]
mov eax, dword [eax - 8]
cmp eax, dword [ebp - 0x1010]
jge 0x4b4952
mov ecx, 0x1000
cmp dword [ebp - 0x100c], ecx
mov eax, ecx
push 0xea60
cmovb eax, dword [ebp - 0x100c]
mov ecx, edi
push ebx
push eax
lea eax, [ebp - 0x1008]
push eax
call fcn.00422636
test eax, eax
jne 0x4b48ed
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret 0xc
call fcn.004dafb4
int3

Function at 0x4b730e
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test byte [edi + 0x10], 1
jne 0x4b738e
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, dword [edi + 4]
cmp eax, 0x80000000
jae 0x4b7340
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4b7374
test ebx, ebx
je 0x4b7353
push ebx
call fcn.00505bb3
inc eax
pop ecx
cmp eax, 0x3fffffff
jle 0x4b7357
xor eax, eax
jmp 0x4b736d
lea esi, [eax + eax]
mov eax, esi
call fcn.0053eb10
mov ecx, esp
mov edx, ebx
push 3
push esi
call fcn.00497fb3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4b738e
mov eax, dword [edi + 0x10]
test cl, 1
je 0x4b7388
and eax, 0xfffffffb
jmp 0x4b738b
or eax, 4
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x10]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da623
leave
ret

Function at 0x4bec51
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
lea ecx, [esi + 0x54]
call fcn.004bf96c
lea ecx, [esi + 8]
pop esi
jmp fcn.004bfab7
Function at 0x4bfbc9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea edi, [esi + 8]
push edi
push ebx
push esi
push 0x4bf77e
push ebx
push ebx
call fcn.00504891
add esp, 0x18
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
mov eax, dword [0x673200]
jne 0x4bfc54
test byte [eax + 4], 1
je 0x4bfc50
push ecx
push ecx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x818]
call fcn.004a9820
call fcn.005051ae
push ebx
lea ecx, [ebp - 0x818]
push dword [eax]
push str._beginthread_failed__error
call fcn.004a9b63
mov ecx, eax
call fcn.004a9930
mov ecx, eax
call fcn.004a9bc0
xor ecx, ecx
mov edx, eax
inc ecx
call fcn.004a96a7
pop ecx
xor al, al
jmp 0x4bfc9c
test byte [eax + 4], 0x10
je 0x4bfc9a
push ecx
push ecx
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x818]
call fcn.004a9820
push ebx
push dword [edi]
lea ecx, [ebp - 0x818]
push str.start_thread:
call fcn.004a9b63
mov ecx, eax
call fcn.004a998c
mov ecx, eax
call fcn.004a9bc0
push 0x10
mov edx, eax
pop ecx
call fcn.004a96a7
pop ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret

Function at 0x4bfe48
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
mov byte [ebp - 0x104], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4bfeaa
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4bfeaa
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x108]
push eax
call fcn.004dd610
mov eax, dword [ebp - 0x108]
add esp, 0xc
jmp 0x4bfeaf
mov eax, 0x100007f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004da623
leave
ret

Function at 0x4c0725
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 4], 0
mov dword [ecx + 0xc], 0x67452301
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
mov dword [ecx + 0x1c], 0xc3d2e1f0
ret
Function at 0x4c63fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x1a
push ebx
mov byte [esi], bl
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4c6466
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4c6466
cmp byte [esi], bl
je 0x4c6466
push esi
call fcn.004c6009
mov dword [esp], str.WinRAR
push esi
call fcn.00516f90
push ebx
push esi
call fcn.004cd4ee
add esp, 0x10
test al, al
jne 0x4c647a
push ebx
push ebx
push ebx
push esi
call fcn.004cd70a
add esp, 0x10
test eax, eax
je 0x4c647a
push 0x400
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.004c6ce0
pop ecx
mov eax, dword [ebp - 8]
push dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
pop esi
pop ebx
leave
ret

Function at 0x4c663b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareWinRARPaths
push reloc.wspcomm.dll_Ordinal_1
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c668c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x400
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push str.AppData
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], bl
je 0x4c669d
push ebx
push esi
call fcn.004cd4ee
pop ecx
pop ecx
test al, al
jne 0x4c66a4
push esi
call fcn.004c63fb
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x4c7cf3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 1
jne 0x4c7d1d
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0x4e20
mov dword [esi + 4], eax
cmp ebx, ecx
mov eax, ecx
cmovbe eax, ebx
mov ebx, eax
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c7d6f
mov ecx, esi
call fcn.004c7e05
test al, al
je 0x4c7d55
mov eax, 0x4e20
cmp ebx, eax
jbe 0x4c7d55
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004c7cf3
jmp 0x4c7d72
cmp dword [esi + 0xc], 1
jne 0x4c7d6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb eax, eax
jmp 0x4c7d72
or eax, 0xffffffff
jmp 0x4c7d72
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4c7e24
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0x10]
push ebx
movzx ebx, byte [ebp + 0x14]
push esi
mov esi, ecx
add ebx, 2
xor ecx, ecx
shl ebx, 0x1e
inc ecx
push edi
and dword [esi + 0xc18], 0
cmp byte [esi + 0x16], 0
cmove ecx, eax
movzx eax, cl
xor ecx, ecx
cmp byte [esi + 0x15], cl
lea eax, [eax*2 + 1]
mov dword [ebp + 0x10], eax
mov eax, 0x8000000
cmovne eax, ecx
mov dword [ebp + 0x14], eax
call fcn.004ce8e6
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4c7e93
xor eax, eax
test edi, edi
je 0x4c7e95
cmp word [edi], ax
je 0x4c7e95
push eax
push dword [ebp + 0x14]
push 3
push eax
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4c7ea9
xor eax, eax
push eax
push dword [ebp + 0x14]
push 3
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4c7ec5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4c7ec5
mov dword [esi + 0xc18], 1
xor eax, eax
cmp ebx, 0xffffffff
mov byte [esi + 0x12], al
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], al
setne al
mov byte [ebp + 0x17], al
je 0x4c7f2a
mov dword [esi + 4], ebx
lea eax, [esi + 0x418]
test edi, edi
je 0x4c7ef3
push edi
push eax
call fcn.004c5b7c
pop ecx
pop ecx
jmp 0x4c7ef8
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 8], 0
lea eax, [esi + 0x17]
je 0x4c7f0e
push dword [ebp + 8]
push eax
call fcn.00516f80
pop ecx
pop ecx
jmp 0x4c7f1d
push 0x1000000
push eax
push edi
call fcn.004c5931
add esp, 0xc
push dword [esi + 4]
mov ecx, esi
call fcn.004c7a9b
mov al, byte [ebp + 0x17]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4c83bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
je 0x4c84b9
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4c83ee
sub eax, 1
je 0x4c83e3
sub eax, 1
jne 0x4c83ee
push 0xfffffffffffffff4
jmp 0x4c83e5
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
and dword [ebp + 0xc], 0
cmp dword [esi + 0xc], 0
je 0x4c8437
xor ebx, ebx
test edi, edi
je 0x4c8457
push 0
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
sub ecx, ebx
mov eax, 0x4000
cmp ecx, eax
cmovb eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete cl
jne 0x4c8453
add ebx, 0x4000
cmp ebx, edi
jb 0x4c83ff
jmp 0x4c8453
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [eax - 1]
neg ecx
sbb cl, cl
inc cl
test cl, cl
jne 0x4c84b4
cmp byte [esi + 0x14], 0
je 0x4c84b4
cmp dword [esi + 0xc], 0
jne 0x4c84b4
push 0
lea ebx, [esi + 0x17]
mov ecx, 0x66d780
push ebx
call fcn.004cca0b
test al, al
je 0x4c84a7
cmp dword [ebp + 0xc], edi
jae 0x4c83ef
cmp dword [ebp + 0xc], 0
jbe 0x4c83ef
push 0
mov ecx, esi
call fcn.004c82e9
sub eax, dword [ebp + 0xc]
mov ecx, esi
sbb edx, 0
push edx
push eax
call fcn.004c81ba
jmp 0x4c83ef
push ebx
push 0
mov ecx, 0x66d780
call fcn.004ccb6d
mov byte [esi + 8], 1
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x4cd4ee
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004ce8e6
test eax, eax
je 0x4cd510
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4cd510
cmp word [eax], 0
je 0x4cd510
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x4cd519
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4cd521
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004ce8e6
test eax, eax
je 0x4cd543
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4cd543
cmp word [eax], 0
je 0x4cd543
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x4cd70a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004ce8e6
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
je 0x4cd72f
test esi, esi
je 0x4cd72f
cmp word [esi], cx
je 0x4cd72f
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4cd739
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4cd756
cmp byte [ebp + 0x10], 0
je 0x4cd752
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004cd9ce
add esp, 0xc
xor eax, eax
jmp 0x4cd76e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x4cd76e
xor eax, eax
cmp ecx, 3
sete al
inc eax
pop esi
pop ebp
ret
Function at 0x4cd9ce
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004ce8e6
test eax, eax
je 0x4cd9f3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4cd9f3
cmp word [eax], 0
je 0x4cd9f3
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4cd9ff
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
pop ebp
ret
Function at 0x4ce6f5
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6061f3
mov eax, dword fs:[0]
push eax
mov eax, 0x24c4
call fcn.004db570
mov eax, dword [0x667710]
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 + 8]
lea ecx, [ebp - 0x24d0]
mov esi, dword [ebp + 0xc]
call fcn.004c2aba
xor ebx, ebx
lea eax, [ebp - 0x24d0]
push ebx
push eax
push esi
push edi
call fcn.004cdb8d
add esp, 0x10
test al, al
je 0x4ce8ca
cmp byte [ebp - 0x24d0], bl
je 0x4ce8ca
cmp byte [ebp - 0x1850], bl
je 0x4ce8ca
lea eax, [ebp - 0x1850]
push eax
lea eax, [ebp - 0x24d0]
push eax
call fcn.004c6c23
pop ecx
push eax
call fcn.004c731f
pop ecx
pop ecx
test eax, eax
je 0x4ce8ca
lea eax, [ebp - 0x1850]
push eax
push edi
call fcn.004c6c23
pop ecx
push eax
call fcn.004c731f
pop ecx
pop ecx
test eax, eax
jne 0x4ce8ca
mov esi, ebx
push 0x400
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.004c73b5
add esp, 0xc
lea eax, [ebp - 0x410]
push esi
push str.rtmp_d
push eax
call fcn.004c6c23
pop ecx
push eax
call fcn.00445d79
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004cd4ee
add esp, 0x14
test al, al
je 0x4ce7fd
add esi, 0x7b
cmp esi, 0x2710
jl 0x4ce7b0
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004cd4ee
pop ecx
pop ecx
test al, al
jne 0x4ce8ca
push 0x400
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.004c73b5
lea eax, [ebp - 0x24d0]
push eax
call fcn.004c6c23
add esp, 0x10
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.004c6c23
pop ecx
push eax
call fcn.00516f80
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x410]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
call esi
test eax, eax
je 0x4ce8ca
lea ecx, [ebp - 0x1430]
call fcn.004c79a8
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.004cd4ee
pop ecx
pop ecx
test al, al
jne 0x4ce891
push 1
push ebx
push edi
lea ecx, [ebp - 0x1430]
call fcn.004c7bff
mov bl, al
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
test bl, bl
je 0x4ce8bb
lea ecx, [ebp - 0x1430]
call fcn.004c7ac5
lea ecx, [ebp - 0x1430]
call fcn.004c7cc1
lea ecx, [ebp - 0x1430]
call fcn.004c79e3
mov al, 1
jmp 0x4ce8cc
xor al, al
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.004da623
leave
ret
Function at 0x4d3cda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x66d794], 0
jne 0x4d3ceb
call fcn.004d3dc7
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
je 0x4d3d18
test bl, 7
je 0x4d3d18
movzx ecx, byte [ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x66d790]
inc ebx
sub esi, 1
jne 0x4d3cfb
cmp esi, 8
jb 0x4d3da2
mov edi, esi
shr edi, 3
xor edx, dword [ebx]
sub esi, 8
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x66d790]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x66d790]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x66d790]
mov ecx, edx
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x66d790]
xor edx, dword [ebx + 4]
add ebx, 8
xor edx, ecx
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x66d790]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x66d790]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x66d790]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x66d790]
sub edi, 1
jne 0x4d3d26
xor edi, edi
test esi, esi
je 0x4d3dc0
movzx ecx, byte [edi + ebx]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x66d790]
inc edi
cmp edi, esi
jb 0x4d3da8
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x4d3dc7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push 8
mov edi, esi
pop ebx
mov edx, edi
mov ecx, edi
shr edx, 1
mov eax, edx
mov edi, edx
xor eax, 0xedb88320
test cl, 1
cmovne edi, eax
sub ebx, 1
jne 0x4d3dd1
mov dword [esi*4 + 0x66d790], edi
inc esi
cmp esi, 0x100
jl 0x4d3dcc
pop edi
pop esi
pop ebx
ret