joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb830
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4eb913
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4eb8ae
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4eb900
shl edx, 0x10
cmp edi, 2
jne 0x4eb8bf
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4eb8ed
lea edx, [edi + 0x3c]
jmp 0x4eb8fa
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4eb850
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x4fed00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x4fed19
mov edi, ebx
mov ebx, eax
jmp 0x4fed1b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x4fed31
push eax
push esi
call fcn.004a49d0
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4fed4d
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4fed38
cmp eax, dword [edi + 4]
jge 0x4fed62
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4fed52
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x4fed86
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x4fed86
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x4fed75
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x506780
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2098
call fcn.005890e0
mov eax, dword [0x65ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00510460
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x1010], 0
push 0xfff
push 0
lea eax, [ebp - 0x100f]
push eax
call fcn.00588e50
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
call fcn.00592453
add esp, 0x10
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x1050], 0
push 0x3f
push 0
lea eax, [ebp - 0x104f]
push eax
call fcn.00588e50
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
call fcn.005179c0
add esp, 4
lea eax, [ebp - 0x1058]
push eax
call fcn.0055fa00
add esp, 4
push eax
push str._Y__m__d__X
push 0x40
lea ecx, [ebp - 0x1050]
push ecx
call fcn.00589f87
add esp, 0x10
mov byte [ebp - 0x2058], 0
push 0xfff
push 0
lea eax, [ebp - 0x2057]
push eax
call fcn.00588e50
add esp, 0xc
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1050]
push ecx
push str.__s____s__r_n
lea edx, [ebp - 0x2058]
push edx
call fcn.0058900d
add esp, 0x10
lea eax, [ebp - 0x2058]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xc]
call fcn.005104a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058845d
mov esp, ebp
pop ebp
ret
Function at 0x506fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.005071e0
movzx eax, al
test eax, eax
je 0x506fc2
xor al, al
jmp 0x507144
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 4]
call fcn.00507190
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
add ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], ecx
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x511ea0
push 0
push 0
call fcn.0058db7c
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00507150
add esp, 4
movzx edx, al
test edx, edx
je 0x5070ad
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00507150
add esp, 4
movzx edx, al
test edx, edx
je 0x5070ad
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x24]
test ecx, ecx
jne 0x5070ab
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00506ac0
add esp, 8
movzx eax, al
test eax, eax
je 0x5070ab
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x14]
call eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0xc]
call eax
jmp 0x50705a
jmp 0x5070db
cmp dword [ebp + 0xc], 0
je 0x5070db
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x5070d4
push 1
mov ecx, dword [ebp - 0x54]
call fcn.00506ba0
mov dword [ebp - 0x58], eax
jmp 0x5070db
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 4]
call fcn.00506b00
movzx eax, al
test eax, eax
je 0x5070fe
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x24]
test edx, edx
je 0x5070fe
mov dword [ebp - 0x58], 1
jmp 0x507105
mov dword [ebp - 0x58], 0
mov al, byte [ebp - 0x58]
mov byte [ebp - 5], al
mov ecx, dword [ebp - 4]
add ecx, 8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00507150
add esp, 4
movzx edx, al
test edx, edx
je 0x507141
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00507170
add esp, 4
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x509a00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0498
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x65ee20]
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
push 1
push 0x66535c
lea ecx, [ebp - 0x18]
call fcn.00508690
mov dword [ebp - 4], 0
movzx eax, byte [0x66551d]
test eax, eax
je 0x509a73
mov dword [ebp - 0x200], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508710
mov eax, dword [ebp - 0x200]
jmp 0x509b30
mov eax, 2
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x1b0]
push eax
movzx ecx, word [ebp - 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x509ab8
mov dword [ebp - 0x1fc], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508710
mov eax, dword [ebp - 0x1fc]
jmp 0x509b30
movzx eax, word [ebp - 0x1b0]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x509af3
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x1f8], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508710
mov eax, dword [ebp - 0x1f8]
jmp 0x509b30
cmp dword [ebp + 8], 0
je 0x509b0a
mov eax, dword [ebp + 8]
push eax
push 0x665520
call fcn.00589110
add esp, 8
mov byte [0x66551d], 1
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508710
mov eax, dword [ebp - 0x1f4]
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.0058845d
mov esp, ebp
pop ebp
ret 4
Function at 0x50a110
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0
xor eax, eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x50a15c
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x5c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x50a165
xor eax, eax
xor edx, edx
jmp 0x50a1f9
push 0x62be08
push 0x5fe68c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x50a1a7
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a1a5
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x50a1f9
jmp 0x50a1f5
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50a1f5
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
xor edx, edx
jmp 0x50a1f9
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5158b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00515430
mov ecx, dword [ebp - 4]
call fcn.00515380
movzx eax, al
test eax, eax
jne 0x5158da
xor al, al
jmp 0x51596e
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x515902
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x515902
xor al, al
jmp 0x51596e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0x1c], edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x29]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 4
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
call fcn.00515470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5177c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jmp 0x5177e5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00508180
cmp dword [ebp - 0xc], eax
jge 0x517837
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.005081c0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x517820
mov ecx, dword [ebp - 8]
call fcn.0050b5e0
cmp eax, 8
jne 0x517824
jmp 0x5177dc
mov eax, dword [ebp - 4]
mov dword [eax + 0x103c], 0
xor al, al
jmp 0x517870
mov eax, dword [ebp - 4]
cmp dword [eax + 0x103c], 0
jne 0x517854
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x103c], eax
jmp 0x51786e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x103c]
cmp eax, 0xea60
jbe 0x51786e
mov al, 1
jmp 0x517870
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5186a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b138c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x65ee20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0052d170
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00411740
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00411740
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00411740
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.00411740
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.00411740
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.00411740
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.00411740
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.00411740
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.00411740
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.00510990
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.00510990
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.00510990
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 2], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
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 0x519ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.005120c0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax + 0x1014]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x6d4]
test ecx, ecx
jne 0x519cdb
cmp dword [ebp - 0xc], 0x14
jle 0x519d9b
mov eax, dword [ebp - 4]
mov byte [eax + 0x6d4], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xff8]
cdq
sub eax, edx
sar eax, 1
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
jne 0x519d29
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.005519b0
push 0
push 0
mov ecx, dword [ebp - 4]
call fcn.005175b0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
je 0x519d49
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00552210
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0xd], cl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x519d78
mov eax, dword [ebp - 4]
add eax, 0x710
push eax
mov ecx, dword [ebp - 4]
call fcn.00515dc0
jmp 0x519d8d
mov ecx, dword [ebp - 4]
add ecx, 0x710
call fcn.00411010
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.005120c0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1014], eax
mov ecx, dword [ebp - 4]
call fcn.00517970
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax + 0x1048]
mov edx, dword [ebp - 0x14]
sbb edx, dword [eax + 0x104c]
push edx
push ecx
call fcn.005147b0
add esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
jl 0x519e06
jg 0x519ddc
cmp dword [ebp - 0x60], 6
jb 0x519e06
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00519e10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xff8]
cdq
sub eax, edx
sar eax, 1
add eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xff8], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51b5d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.005890e0
mov eax, dword [0x65ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [0x66531c], 0
je 0x51b612
push 2
push 2
push str.Download_Restarted..
mov eax, dword [0x66531c]
mov ecx, dword [eax]
mov edx, dword [0x66531c]
push edx
mov eax, dword [ecx + 8]
call eax
push 1
mov ecx, dword [ebp - 8]
call fcn.00506990
movzx eax, al
test eax, eax
jne 0x51b62d
mov eax, 0xffffff95
jmp 0x51b7be
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588e50
add esp, 0xc
mov byte [ebp - 0x2008], 0
push 0xfff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.00588e50
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00588e50
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588e50
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 3
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x58]
call eax
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x51b76c
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589110
add esp, 8
push 0x5eae84
lea eax, [ebp - 0x2008]
push eax
call fcn.00589120
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588e50
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.00589110
add esp, 8
push str..ssinfo
lea eax, [ebp - 0x2008]
push eax
call fcn.00589120
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x62bdd0
lea eax, [ebp - 0x2008]
push eax
call fcn.00589120
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x710
call fcn.00411010
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x178
call fcn.005127a0
mov ecx, dword [ebp - 8]
add ecx, 0x318
call fcn.005127a0
push 1
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x80]
call eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058845d
mov esp, ebp
pop ebp
ret
Function at 0x51e100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b138c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x65ee20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.0054b370
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.0054b370
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.0054b370
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.00411660
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.00411660
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.00411660
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.00411660
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.00411660
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.00411660
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00411660
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00411660
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00411660
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.005233c0
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 0x5228a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x65ee20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0x23
push 1
push 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0051e330
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x522901
push 0x14
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x38
push ecx
call fcn.0058c780
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x5229ce
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00588e50
add esp, 0xc
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [0x665518]
mov dword [ebp - 0x14], eax
movzx eax, word [0x65e908]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 0x38
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.00588e50
add esp, 0xc
mov eax, dword [0x666528]
mov dword [ebp - 0x4c], eax
movzx eax, word [0x666524]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x48], ax
mov dword [ebp - 0x44], 1
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb24
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0058c780
add esp, 0xc
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb38
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0058c780
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x38
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [0x665510]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x5229ce
call fcn.00514d70
call fcn.00508e40
xor al, al
jmp 0x5229d0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058845d
mov esp, ebp
pop ebp
ret 4