joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov dword [0x86b9a0], 0x86b9a8
mov dword [0x86b9a4], 0x86b9b0
call fcn.00471140
test al, al
je 0x4711d0
lea ecx, [ebp - 0x18]
call fcn.004add30
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004ae490
mov ebx, eax
lea ecx, [ebp - 0x18]
call fcn.004adc90
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Unsupported_Windows_version
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 8]
mov ebx, 2
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebx
mov ecx, dword [esp + 8]
mov eax, 1
xor edx, edx
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x468], 0xffffffff
mov dword [ecx + 0x46c], 0xffffffff
mov dword [ecx + 0x30], 0x20
mov dword [ecx + 0x48], 4
mov word [ecx + 0x1d], ax
mov byte [ecx + 0x1f], 0
mov eax, edx
mov ebx, edx
and eax, 1
shr ebx, 1
neg eax
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
invalid

Function at 0x477df7
Capabilities:
Hash data with crc32

Disassembly:
ret

Function at 0x47a8f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov edx, eax
mov eax, dword [esp + 0x40]
mov dword [eax], edx
xor eax, eax
test edx, edx
je 0x47a940
add esp, 0x3c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 1
test eax, eax
cmove eax, edx
add esp, 0x3c
ret
Function at 0x4ade70
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov esi, edx
mov edi, ecx
sub esp, 0x5c
mov ebx, dword [0x86b9a4]
mov eax, dword [ebx]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], 0x7470dc
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [ebx]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str._Memory_
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, esi
mov edx, edi
lea ebx, [esp + 0x30]
add eax, 0xfffff
adc edx, 0
mov dword [esp + 8], ebx
shrd eax, edx, 0x14
shr edx, 0x14
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004b33e0
cmp byte [esp + 0x30], 0
je 0x4adfe0
xor edx, edx
jmp 0x4adf12
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4adf10
cmp eax, 6
ja 0x4adf7c
cmp edx, 5
mov byte [esp + 0x2f], 0x20
je 0x4adff4
add edx, 3
mov byte [esp + 0x2e], 0x20
cmp edx, 7
je 0x4adfc0
cmp edx, 6
mov byte [esp + 0x2d], 0x20
je 0x4ae000
cmp edx, 5
mov byte [esp + 0x2c], 0x20
je 0x4adfd0
cmp edx, 4
mov byte [esp + 0x2b], 0x20
je 0x4ae010
cmp edx, 3
mov byte [esp + 0x2a], 0x20
je 0x4ae019
lea ebx, [esp + 0x29]
mov byte [esp + 0x29], 0x20
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0x86b9a4]
mov eax, dword [eax]
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x7470eb
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esp + 0x2e]
jmp 0x4adf7c
lea ebx, [esp + 0x2c]
jmp 0x4adf7c
mov eax, 0x2020
mov edx, 2
mov word [esp + 0x2e], ax
jmp 0x4adf3f
lea ebx, [esp + 0x2f]
jmp 0x4adf7c
lea ebx, [esp + 0x2d]
jmp 0x4adf7c
lea ebx, [esp + 0x2b]
jmp 0x4adf7c
lea ebx, [esp + 0x2a]
jmp 0x4adf7c
Function at 0x4ba7b0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret

Function at 0x4ba7e0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov edx, eax
and edx, 0x3fff
test eax, 0xf0000000
cmovne eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret

Function at 0x4ba820
Capabilities:
Delete directory

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
setne al
add esp, 0x1c
ret

Function at 0x4ba840
Capabilities:
Move file

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret

Function at 0x4ba8d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret
Function at 0x4ba900
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.004bbed0
cmp eax, 0xffffffff
je 0x4ba91d
test al, 0x10
jne 0x4ba940
mov dword [esp], ebx
call fcn.004bf110
test al, al
mov edi, eax
je 0x4ba950
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov edi, 1
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call fcn.004bf240
lea ecx, [ebp - 0x68]
mov dword [esp], ebx
mov dword [ebp - 0x6c], eax
call fcn.00473fd0
lea ecx, [ebp - 0x68]
sub esp, 4
call fcn.00474b30
test eax, eax
js 0x4ba994
mov ecx, dword [ebp - 0x64]
lea edx, [ecx - 1]
cmp edx, eax
jne 0x4ba994
cmp ecx, 1
mov eax, dword [ebp - 0x68]
je 0x4bab20
xor ecx, ecx
mov dword [ebp - 0x64], edx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00474110
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
sub esp, 4
nop
lea esi, [esi]
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x4baa20
jmp 0x4baa30
lea eax, [eax + ebx*2 + 2]
mov dword [esp], eax
call fcn.004be890
lea ebx, [ebx + eax + 1]
test eax, eax
cmovs ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x68]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00474300
mov eax, dword [ebp - 0x68]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x4baa95
lea esi, [esi]
lea edi, [edi]
cmp dword [ebp - 0x58], ebx
mov eax, dword [ebp - 0x5c]
jg 0x4ba9d0
mov edi, 1
jmp 0x4baa98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4baac1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4baa95
lea ecx, [ebp - 0x68]
call fcn.00474b30
test eax, eax
mov ebx, eax
jle 0x4baa95
cmp eax, 1
je 0x4baa83
lea eax, [ebx + 1]
cmp eax, dword [ebp - 0x6c]
jbe 0x4baa95
cmp ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
jae 0x4ba9b0
xor eax, eax
mov dword [ebp - 0x64], ebx
mov word [esi + ebx*2], ax
jmp 0x4ba9b0
mov eax, dword [ebp - 0x68]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x4baa95
cmp ax, 0x2f
jne 0x4baa61
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4baaa4
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4ba92d
mov dword [esp], eax
call fcn.006febd0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.004bbe80
lea ecx, [ebp - 0x28]
call fcn.00473f00
lea ecx, [ebp - 0x50]
mov dword [esp], esi
call fcn.004bbef0
sub esp, 4
test al, al
mov edx, dword [ebp - 0x28]
jne 0x4bab00
test edx, edx
je 0x4baa41
mov dword [esp], edx
call fcn.006febd0
jmp 0x4baa41
mov esi, dword [ebp - 0x30]
and esi, 0x10
test edx, edx
je 0x4bab12
mov dword [esp], edx
call fcn.006febd0
test esi, esi
je 0x4baa41
jmp 0x4baa20
mov edi, 1
jmp 0x4baaa7
Function at 0x4bab70
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
call fcn.004bbed0
cmp eax, 0xffffffff
je 0x4bab8f
mov edx, eax
and edx, 0x11
cmp edx, 1
je 0x4baba5
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
setne al
add esp, 0x18
pop ebx
ret
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
jne 0x4bab8f
jmp 0x4baba0
Function at 0x4bb070
Capabilities:
Get common file path

Disassembly:
push edi
push esi
xor edx, edx
push ebx
xor ecx, ecx
sub esp, 0x220
mov esi, dword [esp + 0x230]
lea edi, [esp + 0x14]
mov eax, dword [esi]
mov dword [esi + 4], 0
mov word [eax], dx
mov word [esp + 0x14], cx
mov dword [esp + 4], edi
mov dword [esp], 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
mov ebx, eax
mov ecx, esi
mov dword [esp], edi
sub ebx, 1
call fcn.004741d0
sub esp, 4
cmp ebx, 0x103
setbe al
add esp, 0x220
pop ebx
pop esi
pop edi
ret

Function at 0x4bbed0
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
add esp, 0x1c
ret
Function at 0x4bd170
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x1c]
sub esp, 0x2c
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
cmp eax, 0xffffffff
mov ebx, eax
je 0x4bd1c0
mov esi, dword [ebp - 0x1c]
mov ecx, ebx
xor eax, eax
xor ebx, ebx
add eax, ecx
mov ecx, dword [ebp + 8]
mov edx, esi
adc edx, ebx
mov dword [ecx], eax
mov eax, 1
mov dword [ecx + 4], edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4bd195
xor eax, eax
jmp 0x4bd1b1

Function at 0x4bd600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [esp + 0xc], edx
mov edx, 0x400000
cmp eax, 0x400000
cmova eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
sub esp, 0x14
test eax, eax
setne al
mov dword [edx], ecx
leave
ret 0xc

Function at 0x4bd670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
jmp 0x4bd69a
test edx, edx
je 0x4bd6f0
add esi, edx
sub ebx, edx
je 0x4bd6f0
lea eax, [ebp - 0x1c]
cmp ebx, 0x400000
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, 0x400000
cmovbe eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
add dword [edi], edx
test eax, eax
jne 0x4bd690
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x4bda80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
jmp 0x4bdaaa
test edx, edx
je 0x4bdb00
add esi, edx
sub ebx, edx
je 0x4bdb00
lea eax, [ebp - 0x1c]
cmp ebx, 0x400000
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, 0x400000
cmovbe eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
add dword [edi], edx
test eax, eax
jne 0x4bdaa0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4be670
Capabilities:
Get common file path

Disassembly:
push edi
push esi
mov esi, eax
push ebx
xor edx, edx
xor ecx, ecx
sub esp, 0x220
mov eax, dword [eax]
mov dword [esi + 4], 0
lea edi, [esp + 0x14]
mov word [eax], dx
mov word [esp + 0x14], cx
mov dword [esp + 4], edi
mov dword [esp], 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
mov ebx, eax
mov ecx, esi
mov dword [esp], edi
sub ebx, 1
call fcn.004741d0
sub esp, 4
cmp ebx, 0x103
setbe al
add esp, 0x220
pop ebx
pop esi
pop edi
ret

Function at 0x4c0e90
Capabilities:
Get system information on windows

Disassembly:
push ebx
sub esp, 0x48
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
sub esp, 0xc
test eax, eax
je 0x4c0ef0
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4c0ef0
xor eax, eax
xor ecx, ecx
lea esi, [esi]
lea edi, [edi]
mov edx, ebx
shr edx, cl
add ecx, 1
and edx, 1
add eax, edx
cmp ecx, 0x20
jne 0x4c0ed0
add esp, 0x48
pop ebx
ret
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
sub esp, 4
mov eax, dword [esp + 0x30]
add esp, 0x48
pop ebx
ret
Function at 0x4c33b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
jmp 0x4c345d
test edi, edi
je 0x4c3582
mov eax, dword [edi]
mov dword [ebp - 0x2c], edx
mov dword [esp], edi
call dword [eax + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
test edx, edx
jne 0x4c3582
xor esi, esi
cmp byte [ebx + 0xf], 0
mov eax, dword [ebx + 0x28]
je 0x4c3408
mov edx, dword [ebx + 0x2c]
mov ecx, eax
shl ecx, 4
add ecx, dword [edx + 0x58]
mov edx, dword [ebx + 0x10]
not edx
cmp dword [ecx + 8], edx
setne cl
movzx ecx, cl
lea esi, [ecx + ecx*2]
mov edx, dword [ebx + 8]
test edx, edx
je 0x4c3424
mov eax, dword [edx]
mov dword [esp], edx
call dword [eax + 8]
mov eax, dword [ebx + 0x28]
sub esp, 4
mov dword [ebx + 8], 0
mov edx, dword [ebx + 0x20]
mov byte [ebx + 0xe], 0
test edx, edx
je 0x4c3566
cmp dword [edx], eax
je 0x4c3560
add eax, 1
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x30]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
test eax, eax
mov edx, eax
jne 0x4c3582
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x4c3580
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov esi, eax
shl esi, 4
add esi, dword [edx + 0x58]
mov edx, dword [esi + 4]
or edx, dword [esi]
jne 0x4c3580
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4c3570
cmp eax, dword [edx]
mov dword [ebp - 0x2c], 2
je 0x4c3570
mov edx, dword [ebx + 0x30]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov ecx, dword [edx]
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [esp + 8], edi
call dword [ecx + 0x14]
sub esp, 0x10
test eax, eax
mov edx, eax
mov edi, dword [ebp - 0x1c]
jne 0x4c33c0
test edi, edi
je 0x4c34de
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 4]
sub esp, 4
mov eax, dword [ebx + 8]
test eax, eax
je 0x4c34f0
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
movzx eax, byte [ebx + 0xd]
mov dword [ebx + 8], edi
mov dword [ebx + 0x10], 0xffffffff
test al, al
je 0x4c3511
movzx eax, byte [esi + 0xe]
test al, al
je 0x4c3511
movzx eax, byte [esi + 0xd]
xor eax, 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [esi + 4]
mov byte [ebx + 0xf], al
mov eax, dword [esi]
mov byte [ebx + 0xe], 1
test ecx, ecx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
jne 0x4c3531
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x4c3590
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x18]
mov edi, dword [ebp - 0x1c]
sub esp, 8
mov edx, eax
test edi, edi
je 0x4c33d9
jmp 0x4c33c8
add edx, 4
mov dword [ebx + 0x20], edx
sub dword [ebx + 0x24], 1
jmp 0x4c343b
movzx ecx, byte [ebx + 0xc]
mov dword [ebp - 0x2c], ecx
jmp 0x4c349b
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x28]
cmp eax, dword [edx + 0xe0]
jae 0x4c35aa
mov edx, dword [edx + 0xdc]
cmp byte [edx + eax], 0
jne 0x4c3531
cmp byte [esi + 0xd], 0
mov eax, 2
cmovne eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
jmp 0x4c3531
Function at 0x4dca20
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov ebx, eax
mov esi, ecx
sub esp, 0x5c
mov eax, dword [eax]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x74a2be
mov edi, dword [esp + 0x70]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Path:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ecx, ebx
mov dword [esp], ebp
call fcn.004758b0
sub esp, 4
mov dword [esp], eax
call fcn.00475870
test edi, edi
je 0x4dcb20
lea ebp, [esp + 0x10]
mov ecx, ebp
call reloc.msvcrt.dll_wcsncpy
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004dc890
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x74a2be
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Size:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fputs
mov dword [esp], ebx
call fcn.00475870
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4dcb20
mov dword [esp], eax
call fcn.006febd0
test esi, esi
je 0x4dcb40
lea edi, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004e2670
test al, al
jne 0x4dcb50
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x74a2be
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Modified:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], ebx
call fcn.00475870
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4e20a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e20d2
mov eax, dword [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x74a82c
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea ebx, [ebp - 0x24]
test esi, esi
je 0x4e2102
mov eax, dword [esi]
mov dword [esp + 8], 0x43
mov dword [esp + 4], 1
mov dword [esp], str._Y_es____N_o____A_lways____S_kip_all___A_u_to_rename_all____Q_uit_
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ecx, esi
call fcn.00475840
mov ecx, ebx
call reloc.msvcrt.dll_wcsncpy
mov dword [esp], ebx
mov ecx, 0x86bb8c
call fcn.004e24c0
sub esp, 4
test al, al
je 0x4e2220
mov eax, dword [0x86bb8c]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x4e2220
mov ecx, ebx
call fcn.00473160
mov ecx, ebx
call fcn.00473100
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e21a0
cmp eax, 1
mov edx, dword [ebp - 0x24]
je 0x4e2170
test edx, edx
je 0x4e20d5
mov dword [esp], edx
call fcn.006febd0
test esi, esi
jne 0x4e20d9
jmp 0x4e2102
movzx eax, byte [edx]
lea ecx, [eax + 0x20]
lea edi, [eax - 0x41]
mov byte [ebp - 0x29], cl
mov ecx, edi
cmp cl, 0x1a
movzx ecx, byte [ebp - 0x29]
cmovb eax, ecx
sub eax, 0x61
cmp al, 0x18
ja case.0x4e2192.1
movzx eax, al
jmp dword [eax*4 + 0x74a874]
mov eax, dword [0x86bb8c]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
jne 0x4e2236
mov eax, dword [ebp - 0x20]
jmp 0x4e214b
xor ebx, ebx
mov dword [esp], edx
call fcn.006febd0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 2
jmp 0x4e21c2
mov ebx, 1
jmp 0x4e21c2
mov ebx, 5
jmp 0x4e21c2
mov ebx, 3
jmp 0x4e21c2
mov ebx, 4
jmp 0x4e21c2
mov edx, dword [ebp - 0x24]
mov ebx, 7
test edx, edx
jne 0x4e21c2
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x24]
mov ebx, 6
jmp 0x4e2228
Function at 0x4ea230
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
je 0x4ea266
test edx, edx
mov dword [eax], 0
mov dword [eax + 8], 0x74af29
je 0x4ea252
jmp fcn.004e8890
mov dword [eax], 2
mov dword [eax + 8], str.null_VP8Io_passed_to_VP8GetHeaders__
mov dword [eax + 4], 0
xor eax, eax
ret
Function at 0x50ee9e
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 8]
mov dword [esp + 4], eax
mov eax, dword [0x72cb64]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
add esp, 0x1c
ret

Function at 0x50eebc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, ecx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], eax
mov eax, dword [0x72cb64]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebx + 8], eax
mov eax, dword [0x72cb64]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x50fad7
Capabilities:
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x50]
call fcn.00618a4c
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
sub esp, 0x18
mov ebx, eax
call fcn.004e34b3
mov ebp, eax
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp ebx, 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], ebp
je 0x50fb85
cmp edi, 0x17
lea edi, [esp + 0x28]
jne 0x50fb71
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 0x29
mov dword [esp], ebx
call dword [sym.imp.WSOCK32.DLL_setsockopt]
sub esp, 0x14
mov ecx, edi
call fcn.00630950
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi], eax
mov dword [esi + 4], edx
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x50fb8f
Capabilities:
Resolve dns

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
test ebx, ebx
je 0x50fba7
cmp byte [ebx], 0
jne 0x50fba7
xor ebx, ebx
test esi, esi
je 0x50fbb2
cmp byte [esi], 0
jne 0x50fbb2
xor esi, esi
call fcn.00618a4c
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
sub esp, 0x10
mov dword [esp], eax
call fcn.00618a64
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], edx
add esp, 0x14
pop ebx
pop esi
ret