joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb560
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 0x4eb643
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4eb5de
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 0x4eb630
shl edx, 0x10
cmp edi, 2
jne 0x4eb5ef
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 0x4eb61d
lea edx, [edi + 0x3c]
jmp 0x4eb62a
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 0x4eb580
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret

Function at 0x4fea30
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 0x4fea49
mov edi, ebx
mov ebx, eax
jmp 0x4fea4b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x4fea61
push eax
push esi
call fcn.004a4700
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4fea7d
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 0x4fea68
cmp eax, dword [edi + 4]
jge 0x4fea92
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 0x4fea82
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x4feab6
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x4feab6
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x4feaa5
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x5064b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2098
call fcn.005890a0
mov eax, dword [0x632e20]
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.00510190
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.00588e10
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.00592413
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.00588e10
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
call fcn.005176e0
add esp, 4
lea eax, [ebp - 0x1058]
push eax
call fcn.00560480
add esp, 4
push eax
push str._Y__m__d__X
push 0x40
lea ecx, [ebp - 0x1050]
push ecx
call fcn.00589f47
add esp, 0x10
mov byte [ebp - 0x2058], 0
push 0xfff
push 0
lea eax, [ebp - 0x2057]
push eax
call fcn.00588e10
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.00588fcd
add esp, 0x10
lea eax, [ebp - 0x2058]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xc]
call fcn.005101d0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058841d
mov esp, ebp
pop ebp
ret
Function at 0x506cd0
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.00506f10
movzx eax, al
test eax, eax
je 0x506cf2
xor al, al
jmp 0x506e74
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.00506ec0
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 0x511bf0
push 0
push 0
call fcn.0058db3c
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.00506e80
add esp, 4
movzx edx, al
test edx, edx
je 0x506ddd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00506e80
add esp, 4
movzx edx, al
test edx, edx
je 0x506ddd
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 0x506ddb
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.005067f0
add esp, 8
movzx eax, al
test eax, eax
je 0x506ddb
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 0x506d8a
jmp 0x506e0b
cmp dword [ebp + 0xc], 0
je 0x506e0b
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 0x506e04
push 1
mov ecx, dword [ebp - 0x54]
call fcn.005068d0
mov dword [ebp - 0x58], eax
jmp 0x506e0b
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 4]
call fcn.00506830
movzx eax, al
test eax, eax
je 0x506e2e
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x24]
test edx, edx
je 0x506e2e
mov dword [ebp - 0x58], 1
jmp 0x506e35
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.00506e80
add esp, 4
movzx edx, al
test edx, edx
je 0x506e71
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00506ea0
add esp, 4
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x509730
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b03d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x632e20]
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 0x6392ac
lea ecx, [ebp - 0x18]
call fcn.005083c0
mov dword [ebp - 4], 0
movzx eax, byte [0x63946d]
test eax, eax
je 0x5097a3
mov dword [ebp - 0x200], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508440
mov eax, dword [ebp - 0x200]
jmp 0x509860
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 0x5097e8
mov dword [ebp - 0x1fc], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508440
mov eax, dword [ebp - 0x1fc]
jmp 0x509860
movzx eax, word [ebp - 0x1b0]
and eax, 0xff
movzx ecx, al
cmp ecx, 2
je 0x509823
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x1f8], 0xffffff9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508440
mov eax, dword [ebp - 0x1f8]
jmp 0x509860
cmp dword [ebp + 8], 0
je 0x50983a
mov eax, dword [ebp + 8]
push eax
push 0x639470
call fcn.005890d0
add esp, 8
mov byte [0x63946d], 1
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00508440
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.0058841d
mov esp, ebp
pop ebp
ret 4
Function at 0x509e40
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 0x509e8c
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 0x509e95
xor eax, eax
xor edx, edx
jmp 0x509f29
push 0x5ffd88
push 0x5d260c
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 0x509ed7
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 0x509ed5
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x509f29
jmp 0x509f25
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 0x509f25
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
xor edx, edx
jmp 0x509f29
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5155d0
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.00515150
mov ecx, dword [ebp - 4]
call fcn.005150a0
movzx eax, al
test eax, eax
jne 0x5155fa
xor al, al
jmp 0x51568e
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 0x515622
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x515622
xor al, al
jmp 0x51568e
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.00515190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5174e0
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 0x517505
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00507eb0
cmp dword [ebp - 0xc], eax
jge 0x517557
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x7dc
call fcn.00507ef0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x517540
mov ecx, dword [ebp - 8]
call fcn.0050b310
cmp eax, 8
jne 0x517544
jmp 0x5174fc
mov eax, dword [ebp - 4]
mov dword [eax + 0x103c], 0
xor al, al
jmp 0x517590
mov eax, dword [ebp - 4]
cmp dword [eax + 0x103c], 0
jne 0x517574
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x103c], eax
jmp 0x51758e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
sub eax, dword [ecx + 0x103c]
cmp eax, 0xea60
jbe 0x51758e
mov al, 1
jmp 0x517590
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5183c0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b139c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x632e20]
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.0051cd00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00411800
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00411800
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00411800
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.00411800
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.00411800
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.00411800
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.00411800
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.00411800
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.00411800
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.005106c0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.005106c0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
add ecx, 0x16c
call fcn.005106c0
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 0x5199c0
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.00511e10
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 0x5199fb
cmp dword [ebp - 0xc], 0x14
jle 0x519abb
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 0x519a49
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00552470
push 0
push 0
mov ecx, dword [ebp - 4]
call fcn.005172d0
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0xff2]
test ecx, ecx
je 0x519a69
push 1
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc80]
call fcn.00552cd0
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 0x519a98
mov eax, dword [ebp - 4]
add eax, 0x710
push eax
mov ecx, dword [ebp - 4]
call fcn.00515ae0
jmp 0x519aad
mov ecx, dword [ebp - 4]
add ecx, 0x710
call fcn.004110d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00511e10
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1014], eax
mov ecx, dword [ebp - 4]
call fcn.00517690
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.005144d0
add esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
jl 0x519b26
jg 0x519afc
cmp dword [ebp - 0x60], 6
jb 0x519b26
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00519b30
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 0x51b2f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2048
call fcn.005890a0
mov eax, dword [0x632e20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [0x63926c], 0
je 0x51b332
push 2
push 2
push str.Download_Restarted..
mov eax, dword [0x63926c]
mov ecx, dword [eax]
mov edx, dword [0x63926c]
push edx
mov eax, dword [ecx + 8]
call eax
push 1
mov ecx, dword [ebp - 8]
call fcn.005066c0
movzx eax, al
test eax, eax
jne 0x51b34d
mov eax, 0xffffff95
jmp 0x51b4de
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00588e10
add esp, 0xc
mov byte [ebp - 0x2008], 0
push 0xfff
push 0
lea eax, [ebp - 0x2007]
push eax
call fcn.00588e10
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00588e10
add esp, 0xc
push 0x1000
push 0
lea eax, [ebp - 0x2008]
push eax
call fcn.00588e10
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 0x51b48c
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.005890d0
add esp, 8
push 0x5c9e00
lea eax, [ebp - 0x2008]
push eax
call fcn.005890e0
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.00588e10
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2008]
push ecx
call fcn.005890d0
add esp, 8
push str..ssinfo
lea eax, [ebp - 0x2008]
push eax
call fcn.005890e0
add esp, 8
lea eax, [ebp - 0x2008]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5ffd50
lea eax, [ebp - 0x2008]
push eax
call fcn.005890e0
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.004110d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 8]
add ecx, 0x178
call fcn.005124f0
mov ecx, dword [ebp - 8]
add ecx, 0x318
call fcn.005124f0
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.0058841d
mov esp, ebp
pop ebp
ret
Function at 0x51dfa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b139c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x632e20]
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.005107c0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x14c
call fcn.005107c0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x12c
call fcn.005107c0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x110
call fcn.00411720
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
call fcn.00411720
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0xd8
call fcn.00411720
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.00411720
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xa0
call fcn.00411720
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.00411720
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00411720
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00411720
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00411720
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0052f1d0
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 0x522740
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x632e20]
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.0051e1d0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x5227a1
push 0x14
mov eax, dword [ebp + 8]
add eax, 0x24
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x38
push ecx
call fcn.0058c740
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x52286e
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00588e10
add esp, 0xc
mov eax, 2
mov word [ebp - 0x18], ax
mov eax, dword [0x639468]
mov dword [ebp - 0x14], eax
movzx eax, word [0x632908]
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.00588e10
add esp, 0xc
mov eax, dword [0x63a478]
mov dword [ebp - 0x4c], eax
movzx eax, word [0x63a474]
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.0058c740
add esp, 0xc
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xb38
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0058c740
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push 0x38
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [0x639460]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x52286e
call fcn.00514a90
call fcn.00508b70
xor al, al
jmp 0x522870
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058841d
mov esp, ebp
pop ebp
ret 4